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

template <> constexpr inline auto Avogadro::MoleQueue::MoleQueueWidget::qt_create_metaobjectdata<qt_meta_tag_ZN8Avogadro9MoleQueue15MoleQueueWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Avogadro::MoleQueue::MoleQueueWidget",
        "jobSubmitted",
        "",
        "success",
        "jobFinished",
        "jobUpdated",
        "JobObject",
        "job",
        "setJobTemplate",
        "refreshPrograms",
        "submitJobRequest",
        "showAndSelectProgramHandler",
        "onLookupJobReply",
        "reqId",
        "QJsonObject",
        "result",
        "onSubmissionSuccess",
        "localId",
        "moleQueueId",
        "onSubmissionFailure",
        "error",
        "onJobStateChange",
        "mqId",
        "oldState",
        "newState"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'jobSubmitted'
        QtMocHelpers::SignalData<void(bool)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
        // Signal 'jobFinished'
        QtMocHelpers::SignalData<void(bool)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
        // Signal 'jobUpdated'
        QtMocHelpers::SignalData<void(const JobObject &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'setJobTemplate'
        QtMocHelpers::SlotData<void(const JobObject &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'refreshPrograms'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'submitJobRequest'
        QtMocHelpers::SlotData<int()>(10, 2, QMC::AccessPublic, QMetaType::Int),
        // Slot 'showAndSelectProgramHandler'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onLookupJobReply'
        QtMocHelpers::SlotData<void(int, const QJsonObject &)>(12, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 13 }, { 0x80000000 | 14, 15 },
        }}),
        // Slot 'onSubmissionSuccess'
        QtMocHelpers::SlotData<void(int, unsigned int)>(16, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 17 }, { QMetaType::UInt, 18 },
        }}),
        // Slot 'onSubmissionFailure'
        QtMocHelpers::SlotData<void(int, unsigned int, const QString &)>(19, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 17 }, { QMetaType::UInt, 2 }, { QMetaType::QString, 20 },
        }}),
        // Slot 'onJobStateChange'
        QtMocHelpers::SlotData<void(unsigned int, const QString &, const QString &)>(21, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::UInt, 22 }, { QMetaType::QString, 23 }, { QMetaType::QString, 24 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<MoleQueueWidget, qt_meta_tag_ZN8Avogadro9MoleQueue15MoleQueueWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Avogadro::MoleQueue::MoleQueueWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9MoleQueue15MoleQueueWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9MoleQueue15MoleQueueWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Avogadro9MoleQueue15MoleQueueWidgetE_t>.metaTypes,
    nullptr
} };

void Avogadro::MoleQueue::MoleQueueWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MoleQueueWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->jobSubmitted((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 1: _t->jobFinished((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 2: _t->jobUpdated((*reinterpret_cast<std::add_pointer_t<JobObject>>(_a[1]))); break;
        case 3: _t->setJobTemplate((*reinterpret_cast<std::add_pointer_t<JobObject>>(_a[1]))); break;
        case 4: _t->refreshPrograms(); break;
        case 5: { int _r = _t->submitJobRequest();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 6: _t->showAndSelectProgramHandler(); break;
        case 7: _t->onLookupJobReply((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QJsonObject>>(_a[2]))); break;
        case 8: _t->onSubmissionSuccess((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<uint>>(_a[2]))); break;
        case 9: _t->onSubmissionFailure((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<uint>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3]))); break;
        case 10: _t->onJobStateChange((*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;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (MoleQueueWidget::*)(bool )>(_a, &MoleQueueWidget::jobSubmitted, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (MoleQueueWidget::*)(bool )>(_a, &MoleQueueWidget::jobFinished, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (MoleQueueWidget::*)(const JobObject & )>(_a, &MoleQueueWidget::jobUpdated, 2))
            return;
    }
}

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

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

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

// SIGNAL 0
void Avogadro::MoleQueue::MoleQueueWidget::jobSubmitted(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Avogadro::MoleQueue::MoleQueueWidget::jobFinished(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Avogadro::MoleQueue::MoleQueueWidget::jobUpdated(const JobObject & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
QT_WARNING_POP
