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

#include "../../../../../avogadrolibs/avogadro/molequeue/batchjob.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 'batchjob.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.0. 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_ZN8Avogadro9MoleQueue8BatchJobE_t {};
} // unnamed namespace

template <> constexpr inline auto Avogadro::MoleQueue::BatchJob::qt_create_metaobjectdata<qt_meta_tag_ZN8Avogadro9MoleQueue8BatchJobE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Avogadro::MoleQueue::BatchJob",
        "jobUpdated",
        "",
        "Avogadro::MoleQueue::BatchJob::BatchId",
        "batchId",
        "success",
        "jobCompleted",
        "Avogadro::MoleQueue::BatchJob::JobState",
        "status",
        "submitNextJob",
        "BatchId",
        "Core::Molecule",
        "mol",
        "lookupJob",
        "handleSubmissionReply",
        "requestId",
        "serverId",
        "handleJobStateChange",
        "oldState",
        "newState",
        "handleLookupJobReply",
        "QJsonObject",
        "jobInfo",
        "handleErrorResponse",
        "errorCode",
        "errorMessage",
        "QJsonValue",
        "errorData"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'jobUpdated'
        QtMocHelpers::SignalData<void(Avogadro::MoleQueue::BatchJob::BatchId, bool)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { QMetaType::Bool, 5 },
        }}),
        // Signal 'jobCompleted'
        QtMocHelpers::SignalData<void(Avogadro::MoleQueue::BatchJob::BatchId, Avogadro::MoleQueue::BatchJob::JobState)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 7, 8 },
        }}),
        // Slot 'submitNextJob'
        QtMocHelpers::SlotData<BatchId(const Core::Molecule &)>(9, 2, QMC::AccessPublic, 0x80000000 | 10, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Slot 'lookupJob'
        QtMocHelpers::SlotData<bool(BatchId)>(13, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 10, 4 },
        }}),
        // Slot 'handleSubmissionReply'
        QtMocHelpers::SlotData<void(int, unsigned int)>(14, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 15 }, { QMetaType::UInt, 16 },
        }}),
        // Slot 'handleJobStateChange'
        QtMocHelpers::SlotData<void(unsigned int, const QString &, const QString &)>(17, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::UInt, 16 }, { QMetaType::QString, 18 }, { QMetaType::QString, 19 },
        }}),
        // Slot 'handleLookupJobReply'
        QtMocHelpers::SlotData<void(int, const QJsonObject &)>(20, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 15 }, { 0x80000000 | 21, 22 },
        }}),
        // Slot 'handleErrorResponse'
        QtMocHelpers::SlotData<void(int, int, const QString &, const QJsonValue &)>(23, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 15 }, { QMetaType::Int, 24 }, { QMetaType::QString, 25 }, { 0x80000000 | 26, 27 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<BatchJob, qt_meta_tag_ZN8Avogadro9MoleQueue8BatchJobE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Avogadro::MoleQueue::BatchJob::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9MoleQueue8BatchJobE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9MoleQueue8BatchJobE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Avogadro9MoleQueue8BatchJobE_t>.metaTypes,
    nullptr
} };

void Avogadro::MoleQueue::BatchJob::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<BatchJob *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->jobUpdated((*reinterpret_cast<std::add_pointer_t<Avogadro::MoleQueue::BatchJob::BatchId>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 1: _t->jobCompleted((*reinterpret_cast<std::add_pointer_t<Avogadro::MoleQueue::BatchJob::BatchId>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Avogadro::MoleQueue::BatchJob::JobState>>(_a[2]))); break;
        case 2: { BatchId _r = _t->submitNextJob((*reinterpret_cast<std::add_pointer_t<Core::Molecule>>(_a[1])));
            if (_a[0]) *reinterpret_cast<BatchId*>(_a[0]) = std::move(_r); }  break;
        case 3: { bool _r = _t->lookupJob((*reinterpret_cast<std::add_pointer_t<BatchId>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 4: _t->handleSubmissionReply((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<uint>>(_a[2]))); break;
        case 5: _t->handleJobStateChange((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3]))); break;
        case 6: _t->handleLookupJobReply((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QJsonObject>>(_a[2]))); break;
        case 7: _t->handleErrorResponse((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QJsonValue>>(_a[4]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (BatchJob::*)(Avogadro::MoleQueue::BatchJob::BatchId , bool )>(_a, &BatchJob::jobUpdated, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (BatchJob::*)(Avogadro::MoleQueue::BatchJob::BatchId , Avogadro::MoleQueue::BatchJob::JobState )>(_a, &BatchJob::jobCompleted, 1))
            return;
    }
}

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

void *Avogadro::MoleQueue::BatchJob::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9MoleQueue8BatchJobE_t>.strings))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int Avogadro::MoleQueue::BatchJob::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 8;
    }
    return _id;
}

// SIGNAL 0
void Avogadro::MoleQueue::BatchJob::jobUpdated(Avogadro::MoleQueue::BatchJob::BatchId _t1, bool _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void Avogadro::MoleQueue::BatchJob::jobCompleted(Avogadro::MoleQueue::BatchJob::BatchId _t1, Avogadro::MoleQueue::BatchJob::JobState _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}
QT_WARNING_POP
