/****************************************************************************
** Meta object code from reading C++ file 'TransferThreadAsync.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.18)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include <memory>
#include "plugins/CopyEngine/Ultracopier-Spec/async/TransferThreadAsync.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'TransferThreadAsync.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.18. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_TransferThreadAsync_t {
    QByteArrayData data[37];
    char stringdata0[486];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_TransferThreadAsync_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_TransferThreadAsync_t qt_meta_stringdata_TransferThreadAsync = {
    {
QT_MOC_LITERAL(0, 0, 19), // "TransferThreadAsync"
QT_MOC_LITERAL(1, 20, 36), // "internalStartResumeAfterError..."
QT_MOC_LITERAL(2, 57, 0), // ""
QT_MOC_LITERAL(3, 58, 26), // "internalStartPostOperation"
QT_MOC_LITERAL(4, 85, 8), // "openRead"
QT_MOC_LITERAL(5, 94, 11), // "std::string"
QT_MOC_LITERAL(6, 106, 4), // "file"
QT_MOC_LITERAL(7, 111, 21), // "Ultracopier::CopyMode"
QT_MOC_LITERAL(8, 133, 4), // "mode"
QT_MOC_LITERAL(9, 138, 9), // "openWrite"
QT_MOC_LITERAL(10, 148, 8), // "uint64_t"
QT_MOC_LITERAL(11, 157, 9), // "startSize"
QT_MOC_LITERAL(12, 167, 23), // "setFileExistsActionSend"
QT_MOC_LITERAL(13, 191, 16), // "FileExistsAction"
QT_MOC_LITERAL(14, 208, 6), // "action"
QT_MOC_LITERAL(15, 215, 12), // "preOperation"
QT_MOC_LITERAL(16, 228, 13), // "postOperation"
QT_MOC_LITERAL(17, 242, 24), // "internalStartTheTransfer"
QT_MOC_LITERAL(18, 267, 10), // "read_error"
QT_MOC_LITERAL(19, 278, 18), // "read_readIsStopped"
QT_MOC_LITERAL(20, 297, 11), // "read_closed"
QT_MOC_LITERAL(21, 309, 11), // "write_error"
QT_MOC_LITERAL(22, 321, 12), // "write_closed"
QT_MOC_LITERAL(23, 334, 11), // "read_opened"
QT_MOC_LITERAL(24, 346, 12), // "write_opened"
QT_MOC_LITERAL(25, 359, 16), // "startTheTransfer"
QT_MOC_LITERAL(26, 376, 4), // "stop"
QT_MOC_LITERAL(27, 381, 4), // "skip"
QT_MOC_LITERAL(28, 386, 10), // "copiedSize"
QT_MOC_LITERAL(29, 397, 7), // "int64_t"
QT_MOC_LITERAL(30, 405, 11), // "putAtBottom"
QT_MOC_LITERAL(31, 417, 8), // "setFiles"
QT_MOC_LITERAL(32, 426, 6), // "source"
QT_MOC_LITERAL(33, 433, 4), // "size"
QT_MOC_LITERAL(34, 438, 11), // "destination"
QT_MOC_LITERAL(35, 450, 19), // "setFileExistsAction"
QT_MOC_LITERAL(36, 470, 15) // "retryAfterError"

    },
    "TransferThreadAsync\0"
    "internalStartResumeAfterErrorAndSeek\0"
    "\0internalStartPostOperation\0openRead\0"
    "std::string\0file\0Ultracopier::CopyMode\0"
    "mode\0openWrite\0uint64_t\0startSize\0"
    "setFileExistsActionSend\0FileExistsAction\0"
    "action\0preOperation\0postOperation\0"
    "internalStartTheTransfer\0read_error\0"
    "read_readIsStopped\0read_closed\0"
    "write_error\0write_closed\0read_opened\0"
    "write_opened\0startTheTransfer\0stop\0"
    "skip\0copiedSize\0int64_t\0putAtBottom\0"
    "setFiles\0source\0size\0destination\0"
    "setFileExistsAction\0retryAfterError"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_TransferThreadAsync[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      23,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       5,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,  129,    2, 0x06 /* Public */,
       3,    0,  130,    2, 0x06 /* Public */,
       4,    2,  131,    2, 0x06 /* Public */,
       9,    2,  136,    2, 0x06 /* Public */,
      12,    1,  141,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      15,    0,  144,    2, 0x08 /* Private */,
      16,    0,  145,    2, 0x08 /* Private */,
      17,    0,  146,    2, 0x08 /* Private */,
      18,    0,  147,    2, 0x08 /* Private */,
      19,    0,  148,    2, 0x08 /* Private */,
      20,    0,  149,    2, 0x08 /* Private */,
      21,    0,  150,    2, 0x08 /* Private */,
      22,    0,  151,    2, 0x08 /* Private */,
      23,    0,  152,    2, 0x08 /* Private */,
      24,    0,  153,    2, 0x08 /* Private */,
      25,    0,  154,    2, 0x0a /* Public */,
      26,    0,  155,    2, 0x0a /* Public */,
      27,    0,  156,    2, 0x0a /* Public */,
      28,    0,  157,    2, 0x0a /* Public */,
      30,    0,  158,    2, 0x0a /* Public */,
      31,    4,  159,    2, 0x0a /* Public */,
      35,    1,  168,    2, 0x0a /* Public */,
      36,    0,  171,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 5, 0x80000000 | 7,    6,    8,
    QMetaType::Void, 0x80000000 | 5, 0x80000000 | 10,    6,   11,
    QMetaType::Void, 0x80000000 | 13,   14,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    0x80000000 | 29,
    QMetaType::Void,
    QMetaType::Bool, 0x80000000 | 5, 0x80000000 | 29, 0x80000000 | 5, 0x80000000 | 7,   32,   33,   34,    8,
    QMetaType::Void, 0x80000000 | 13,   14,
    QMetaType::Void,

       0        // eod
};

void TransferThreadAsync::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<TransferThreadAsync *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->internalStartResumeAfterErrorAndSeek(); break;
        case 1: _t->internalStartPostOperation(); break;
        case 2: _t->openRead((*reinterpret_cast< const std::string(*)>(_a[1])),(*reinterpret_cast< const Ultracopier::CopyMode(*)>(_a[2]))); break;
        case 3: _t->openWrite((*reinterpret_cast< const std::string(*)>(_a[1])),(*reinterpret_cast< const uint64_t(*)>(_a[2]))); break;
        case 4: _t->setFileExistsActionSend((*reinterpret_cast< const FileExistsAction(*)>(_a[1]))); break;
        case 5: _t->preOperation(); break;
        case 6: _t->postOperation(); break;
        case 7: _t->internalStartTheTransfer(); break;
        case 8: _t->read_error(); break;
        case 9: _t->read_readIsStopped(); break;
        case 10: _t->read_closed(); break;
        case 11: _t->write_error(); break;
        case 12: _t->write_closed(); break;
        case 13: _t->read_opened(); break;
        case 14: _t->write_opened(); break;
        case 15: _t->startTheTransfer(); break;
        case 16: _t->stop(); break;
        case 17: _t->skip(); break;
        case 18: { int64_t _r = _t->copiedSize();
            if (_a[0]) *reinterpret_cast< int64_t*>(_a[0]) = std::move(_r); }  break;
        case 19: _t->putAtBottom(); break;
        case 20: { bool _r = _t->setFiles((*reinterpret_cast< const std::string(*)>(_a[1])),(*reinterpret_cast< const int64_t(*)>(_a[2])),(*reinterpret_cast< const std::string(*)>(_a[3])),(*reinterpret_cast< const Ultracopier::CopyMode(*)>(_a[4])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 21: _t->setFileExistsAction((*reinterpret_cast< const FileExistsAction(*)>(_a[1]))); break;
        case 22: _t->retryAfterError(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (TransferThreadAsync::*)() const;
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TransferThreadAsync::internalStartResumeAfterErrorAndSeek)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (TransferThreadAsync::*)() const;
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TransferThreadAsync::internalStartPostOperation)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (TransferThreadAsync::*)(const std::string & , const Ultracopier::CopyMode & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TransferThreadAsync::openRead)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (TransferThreadAsync::*)(const std::string & , const uint64_t & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TransferThreadAsync::openWrite)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (TransferThreadAsync::*)(const FileExistsAction & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TransferThreadAsync::setFileExistsActionSend)) {
                *result = 4;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject TransferThreadAsync::staticMetaObject = { {
    QMetaObject::SuperData::link<TransferThread::staticMetaObject>(),
    qt_meta_stringdata_TransferThreadAsync.data,
    qt_meta_data_TransferThreadAsync,
    qt_static_metacall,
    nullptr,
    nullptr
} };


const QMetaObject *TransferThreadAsync::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *TransferThreadAsync::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_TransferThreadAsync.stringdata0))
        return static_cast<void*>(this);
    return TransferThread::qt_metacast(_clname);
}

int TransferThreadAsync::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = TransferThread::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 23)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 23;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 23)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 23;
    }
    return _id;
}

// SIGNAL 0
void TransferThreadAsync::internalStartResumeAfterErrorAndSeek()const
{
    QMetaObject::activate(const_cast< TransferThreadAsync *>(this), &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void TransferThreadAsync::internalStartPostOperation()const
{
    QMetaObject::activate(const_cast< TransferThreadAsync *>(this), &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void TransferThreadAsync::openRead(const std::string & _t1, const Ultracopier::CopyMode & _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void TransferThreadAsync::openWrite(const std::string & _t1, const uint64_t & _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void TransferThreadAsync::setFileExistsActionSend(const FileExistsAction & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
