/****************************************************************************
** Meta object code from reading C++ file 'WriteThread.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/WriteThread.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 'WriteThread.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_ZN11WriteThreadE_t {};
} // unnamed namespace

template <> constexpr inline auto WriteThread::qt_create_metaobjectdata<qt_meta_tag_ZN11WriteThreadE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "WriteThread",
        "error",
        "",
        "opened",
        "reopened",
        "writeIsStarted",
        "writeIsStopped",
        "flushedAndSeekedToZero",
        "closed",
        "internalStartOpen",
        "internalStartWrite",
        "internalStartClose",
        "internalStartEndOfFile",
        "internalStartFlushAndSeekToZero",
        "openWriteSend",
        "std::string",
        "file",
        "uint64_t",
        "startSize",
        "debugInformation",
        "Ultracopier::DebugLevel",
        "level",
        "fonction",
        "text",
        "ligne",
        "postOperation",
        "flushBuffer",
        "endIsDetected",
        "flushAndSeekToZero",
        "setDeletePartiallyTransferredFiles",
        "deletePartiallyTransferredFiles",
        "timeOfTheBlockCopyFinished",
        "resumeNotStarted",
        "internalOpen",
        "internalWrite",
        "internalCloseSlot",
        "internalClose",
        "emitSignal",
        "internalEndOfFile",
        "internalFlushAndSeekToZero",
        "openWriteInternal"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'error'
        QtMocHelpers::SignalData<void() const>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'opened'
        QtMocHelpers::SignalData<void() const>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'reopened'
        QtMocHelpers::SignalData<void() const>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'writeIsStarted'
        QtMocHelpers::SignalData<void() const>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'writeIsStopped'
        QtMocHelpers::SignalData<void() const>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'flushedAndSeekedToZero'
        QtMocHelpers::SignalData<void() const>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'closed'
        QtMocHelpers::SignalData<void() const>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'internalStartOpen'
        QtMocHelpers::SignalData<void() const>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'internalStartWrite'
        QtMocHelpers::SignalData<void() const>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'internalStartClose'
        QtMocHelpers::SignalData<void() const>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'internalStartEndOfFile'
        QtMocHelpers::SignalData<void() const>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'internalStartFlushAndSeekToZero'
        QtMocHelpers::SignalData<void() const>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'openWriteSend'
        QtMocHelpers::SignalData<void(const std::string &, const uint64_t &)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 16 }, { 0x80000000 | 17, 18 },
        }}),
        // Signal 'debugInformation'
        QtMocHelpers::SignalData<void(const Ultracopier::DebugLevel &, const std::string &, const std::string &, const std::string &, const int &) const>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 20, 21 }, { 0x80000000 | 15, 22 }, { 0x80000000 | 15, 23 }, { 0x80000000 | 15, 16 },
            { QMetaType::Int, 24 },
        }}),
        // Slot 'postOperation'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'flushBuffer'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'endIsDetected'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'flushAndSeekToZero'
        QtMocHelpers::SlotData<void()>(28, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setDeletePartiallyTransferredFiles'
        QtMocHelpers::SlotData<void(const bool &)>(29, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 30 },
        }}),
        // Slot 'timeOfTheBlockCopyFinished'
        QtMocHelpers::SlotData<void()>(31, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'resumeNotStarted'
        QtMocHelpers::SlotData<void()>(32, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'internalOpen'
        QtMocHelpers::SlotData<bool()>(33, 2, QMC::AccessPrivate, QMetaType::Bool),
        // Slot 'internalWrite'
        QtMocHelpers::SlotData<void()>(34, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'internalCloseSlot'
        QtMocHelpers::SlotData<void()>(35, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'internalClose'
        QtMocHelpers::SlotData<void(bool)>(36, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 37 },
        }}),
        // Slot 'internalClose'
        QtMocHelpers::SlotData<void()>(36, 2, QMC::AccessPrivate | QMC::MethodCloned, QMetaType::Void),
        // Slot 'internalEndOfFile'
        QtMocHelpers::SlotData<void()>(38, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'internalFlushAndSeekToZero'
        QtMocHelpers::SlotData<void()>(39, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'openWriteInternal'
        QtMocHelpers::SlotData<void(const std::string &, const uint64_t &)>(40, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 15, 16 }, { 0x80000000 | 17, 18 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<WriteThread, qt_meta_tag_ZN11WriteThreadE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject WriteThread::staticMetaObject = { {
    QMetaObject::SuperData::link<QThread::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11WriteThreadE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11WriteThreadE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11WriteThreadE_t>.metaTypes,
    nullptr
} };

void WriteThread::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<WriteThread *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->error(); break;
        case 1: _t->opened(); break;
        case 2: _t->reopened(); break;
        case 3: _t->writeIsStarted(); break;
        case 4: _t->writeIsStopped(); break;
        case 5: _t->flushedAndSeekedToZero(); break;
        case 6: _t->closed(); break;
        case 7: _t->internalStartOpen(); break;
        case 8: _t->internalStartWrite(); break;
        case 9: _t->internalStartClose(); break;
        case 10: _t->internalStartEndOfFile(); break;
        case 11: _t->internalStartFlushAndSeekToZero(); break;
        case 12: _t->openWriteSend((*reinterpret_cast<std::add_pointer_t<std::string>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<uint64_t>>(_a[2]))); break;
        case 13: _t->debugInformation((*reinterpret_cast<std::add_pointer_t<Ultracopier::DebugLevel>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<std::string>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<std::string>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<std::string>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[5]))); break;
        case 14: _t->postOperation(); break;
        case 15: _t->flushBuffer(); break;
        case 16: _t->endIsDetected(); break;
        case 17: _t->flushAndSeekToZero(); break;
        case 18: _t->setDeletePartiallyTransferredFiles((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 19: _t->timeOfTheBlockCopyFinished(); break;
        case 20: _t->resumeNotStarted(); break;
        case 21: { bool _r = _t->internalOpen();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 22: _t->internalWrite(); break;
        case 23: _t->internalCloseSlot(); break;
        case 24: _t->internalClose((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 25: _t->internalClose(); break;
        case 26: _t->internalEndOfFile(); break;
        case 27: _t->internalFlushAndSeekToZero(); break;
        case 28: _t->openWriteInternal((*reinterpret_cast<std::add_pointer_t<std::string>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<uint64_t>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (WriteThread::*)() const>(_a, &WriteThread::error, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (WriteThread::*)() const>(_a, &WriteThread::opened, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (WriteThread::*)() const>(_a, &WriteThread::reopened, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (WriteThread::*)() const>(_a, &WriteThread::writeIsStarted, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (WriteThread::*)() const>(_a, &WriteThread::writeIsStopped, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (WriteThread::*)() const>(_a, &WriteThread::flushedAndSeekedToZero, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (WriteThread::*)() const>(_a, &WriteThread::closed, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (WriteThread::*)() const>(_a, &WriteThread::internalStartOpen, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (WriteThread::*)() const>(_a, &WriteThread::internalStartWrite, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (WriteThread::*)() const>(_a, &WriteThread::internalStartClose, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (WriteThread::*)() const>(_a, &WriteThread::internalStartEndOfFile, 10))
            return;
        if (QtMocHelpers::indexOfMethod<void (WriteThread::*)() const>(_a, &WriteThread::internalStartFlushAndSeekToZero, 11))
            return;
        if (QtMocHelpers::indexOfMethod<void (WriteThread::*)(const std::string & , const uint64_t & )>(_a, &WriteThread::openWriteSend, 12))
            return;
        if (QtMocHelpers::indexOfMethod<void (WriteThread::*)(const Ultracopier::DebugLevel & , const std::string & , const std::string & , const std::string & , const int & ) const>(_a, &WriteThread::debugInformation, 13))
            return;
    }
}

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

void *WriteThread::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11WriteThreadE_t>.strings))
        return static_cast<void*>(this);
    return QThread::qt_metacast(_clname);
}

int WriteThread::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QThread::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 29)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 29;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 29)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 29;
    }
    return _id;
}

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

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

// SIGNAL 2
void WriteThread::reopened()const
{
    QMetaObject::activate(const_cast< WriteThread *>(this), &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void WriteThread::writeIsStarted()const
{
    QMetaObject::activate(const_cast< WriteThread *>(this), &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void WriteThread::writeIsStopped()const
{
    QMetaObject::activate(const_cast< WriteThread *>(this), &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void WriteThread::flushedAndSeekedToZero()const
{
    QMetaObject::activate(const_cast< WriteThread *>(this), &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void WriteThread::closed()const
{
    QMetaObject::activate(const_cast< WriteThread *>(this), &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void WriteThread::internalStartOpen()const
{
    QMetaObject::activate(const_cast< WriteThread *>(this), &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void WriteThread::internalStartWrite()const
{
    QMetaObject::activate(const_cast< WriteThread *>(this), &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void WriteThread::internalStartClose()const
{
    QMetaObject::activate(const_cast< WriteThread *>(this), &staticMetaObject, 9, nullptr);
}

// SIGNAL 10
void WriteThread::internalStartEndOfFile()const
{
    QMetaObject::activate(const_cast< WriteThread *>(this), &staticMetaObject, 10, nullptr);
}

// SIGNAL 11
void WriteThread::internalStartFlushAndSeekToZero()const
{
    QMetaObject::activate(const_cast< WriteThread *>(this), &staticMetaObject, 11, nullptr);
}

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

// SIGNAL 13
void WriteThread::debugInformation(const Ultracopier::DebugLevel & _t1, const std::string & _t2, const std::string & _t3, const std::string & _t4, const int & _t5)const
{
    QMetaObject::activate<void>(const_cast< WriteThread *>(this), &staticMetaObject, 13, nullptr, _t1, _t2, _t3, _t4, _t5);
}
QT_WARNING_POP
