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

#include "plugins/CopyEngine/Ultracopier-Spec/async/TransferThreadAsync.h"
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'TransferThreadAsync.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN19TransferThreadAsyncE_t {};
} // unnamed namespace

template <> constexpr inline auto TransferThreadAsync::qt_create_metaobjectdata<qt_meta_tag_ZN19TransferThreadAsyncE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "TransferThreadAsync",
        "internalStartResumeAfterErrorAndSeek",
        "",
        "internalStartPostOperation",
        "openRead",
        "std::string",
        "file",
        "Ultracopier::CopyMode",
        "mode",
        "openWrite",
        "uint64_t",
        "startSize",
        "setFileExistsActionSend",
        "FileExistsAction",
        "action",
        "preOperation",
        "postOperation",
        "internalStartTheTransfer",
        "read_error",
        "read_readIsStopped",
        "read_closed",
        "write_error",
        "write_closed",
        "read_opened",
        "write_opened",
        "startTheTransfer",
        "stop",
        "skip",
        "copiedSize",
        "int64_t",
        "putAtBottom",
        "setFiles",
        "source",
        "size",
        "destination",
        "setFileExistsAction",
        "setProgression",
        "pos",
        "retryAfterError"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'internalStartResumeAfterErrorAndSeek'
        QtMocHelpers::SignalData<void() const>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'internalStartPostOperation'
        QtMocHelpers::SignalData<void() const>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'openRead'
        QtMocHelpers::SignalData<void(const std::string &, const Ultracopier::CopyMode &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 }, { 0x80000000 | 7, 8 },
        }}),
        // Signal 'openWrite'
        QtMocHelpers::SignalData<void(const std::string &, const uint64_t &)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 }, { 0x80000000 | 10, 11 },
        }}),
        // Signal 'setFileExistsActionSend'
        QtMocHelpers::SignalData<void(const FileExistsAction &)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 13, 14 },
        }}),
        // Slot 'preOperation'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'postOperation'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'internalStartTheTransfer'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'read_error'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'read_readIsStopped'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'read_closed'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'write_error'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'write_closed'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'read_opened'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'write_opened'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'startTheTransfer'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'stop'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'skip'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'copiedSize'
        QtMocHelpers::SlotData<int64_t()>(28, 2, QMC::AccessPublic, 0x80000000 | 29),
        // Slot 'putAtBottom'
        QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setFiles'
        QtMocHelpers::SlotData<bool(const std::string &, const int64_t &, const std::string &, const Ultracopier::CopyMode &)>(31, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 5, 32 }, { 0x80000000 | 29, 33 }, { 0x80000000 | 5, 34 }, { 0x80000000 | 7, 8 },
        }}),
        // Slot 'setFileExistsAction'
        QtMocHelpers::SlotData<void(const FileExistsAction &)>(35, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 13, 14 },
        }}),
        // Slot 'setProgression'
        QtMocHelpers::SlotData<void(const uint64_t &, const uint64_t &)>(36, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 37 }, { 0x80000000 | 10, 33 },
        }}),
        // Slot 'retryAfterError'
        QtMocHelpers::SlotData<void()>(38, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<TransferThreadAsync, qt_meta_tag_ZN19TransferThreadAsyncE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject TransferThreadAsync::staticMetaObject = { {
    QMetaObject::SuperData::link<TransferThread::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN19TransferThreadAsyncE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN19TransferThreadAsyncE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN19TransferThreadAsyncE_t>.metaTypes,
    nullptr
} };

void TransferThreadAsync::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<TransferThreadAsync *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->internalStartResumeAfterErrorAndSeek(); break;
        case 1: _t->internalStartPostOperation(); break;
        case 2: _t->openRead((*reinterpret_cast<std::add_pointer_t<std::string>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Ultracopier::CopyMode>>(_a[2]))); break;
        case 3: _t->openWrite((*reinterpret_cast<std::add_pointer_t<std::string>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<uint64_t>>(_a[2]))); break;
        case 4: _t->setFileExistsActionSend((*reinterpret_cast<std::add_pointer_t<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<std::add_pointer_t<std::string>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int64_t>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<std::string>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<Ultracopier::CopyMode>>(_a[4])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 21: _t->setFileExistsAction((*reinterpret_cast<std::add_pointer_t<FileExistsAction>>(_a[1]))); break;
        case 22: _t->setProgression((*reinterpret_cast<std::add_pointer_t<uint64_t>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<uint64_t>>(_a[2]))); break;
        case 23: _t->retryAfterError(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (TransferThreadAsync::*)() const>(_a, &TransferThreadAsync::internalStartResumeAfterErrorAndSeek, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (TransferThreadAsync::*)() const>(_a, &TransferThreadAsync::internalStartPostOperation, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (TransferThreadAsync::*)(const std::string & , const Ultracopier::CopyMode & )>(_a, &TransferThreadAsync::openRead, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (TransferThreadAsync::*)(const std::string & , const uint64_t & )>(_a, &TransferThreadAsync::openWrite, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (TransferThreadAsync::*)(const FileExistsAction & )>(_a, &TransferThreadAsync::setFileExistsActionSend, 4))
            return;
    }
}

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_staticMetaObjectStaticContent<qt_meta_tag_ZN19TransferThreadAsyncE_t>.strings))
        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 < 24)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 24;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 24)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 24;
    }
    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)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}

// SIGNAL 3
void TransferThreadAsync::openWrite(const std::string & _t1, const uint64_t & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1, _t2);
}

// SIGNAL 4
void TransferThreadAsync::setFileExistsActionSend(const FileExistsAction & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
