/****************************************************************************
** Meta object code from reading C++ file 'client.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/client/client.h"
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'client.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_ZN8Avogadro9MoleQueue6ClientE_t {};
} // unnamed namespace

template <> constexpr inline auto Avogadro::MoleQueue::Client::qt_create_metaobjectdata<qt_meta_tag_ZN8Avogadro9MoleQueue6ClientE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Avogadro::MoleQueue::Client",
        "connectionStateChanged",
        "",
        "queueListReceived",
        "QJsonObject",
        "queues",
        "submitJobResponse",
        "localId",
        "moleQueueId",
        "lookupJobResponse",
        "jobInfo",
        "cancelJobResponse",
        "jobStateChanged",
        "oldState",
        "newState",
        "registerOpenWithResponse",
        "listOpenWithNamesResponse",
        "QJsonArray",
        "handlerNames",
        "unregisterOpenWithResponse",
        "errorReceived",
        "errorCode",
        "errorMessage",
        "QJsonValue",
        "errorData",
        "connectToServer",
        "serverName",
        "requestQueueList",
        "submitJob",
        "JobObject",
        "job",
        "lookupJob",
        "cancelJob",
        "registerOpenWith",
        "name",
        "executable",
        "QList<QRegularExpression>",
        "filePatterns",
        "rpcServer",
        "rpcMethod",
        "listOpenWithNames",
        "unregisterOpenWith",
        "handlerName",
        "flush",
        "processResult",
        "response",
        "processNotification",
        "notification",
        "processError"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'connectionStateChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'queueListReceived'
        QtMocHelpers::SignalData<void(QJsonObject)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Signal 'submitJobResponse'
        QtMocHelpers::SignalData<void(int, unsigned int)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 7 }, { QMetaType::UInt, 8 },
        }}),
        // Signal 'lookupJobResponse'
        QtMocHelpers::SignalData<void(int, QJsonObject)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 7 }, { 0x80000000 | 4, 10 },
        }}),
        // Signal 'cancelJobResponse'
        QtMocHelpers::SignalData<void(unsigned int)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 8 },
        }}),
        // Signal 'jobStateChanged'
        QtMocHelpers::SignalData<void(unsigned int, QString, QString)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 8 }, { QMetaType::QString, 13 }, { QMetaType::QString, 14 },
        }}),
        // Signal 'registerOpenWithResponse'
        QtMocHelpers::SignalData<void(int)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 7 },
        }}),
        // Signal 'listOpenWithNamesResponse'
        QtMocHelpers::SignalData<void(int, QJsonArray)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 7 }, { 0x80000000 | 17, 18 },
        }}),
        // Signal 'unregisterOpenWithResponse'
        QtMocHelpers::SignalData<void(int)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 7 },
        }}),
        // Signal 'errorReceived'
        QtMocHelpers::SignalData<void(int, int, QString, QJsonValue)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 7 }, { QMetaType::Int, 21 }, { QMetaType::QString, 22 }, { 0x80000000 | 23, 24 },
        }}),
        // Slot 'connectToServer'
        QtMocHelpers::SlotData<bool(const QString &)>(25, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 26 },
        }}),
        // Slot 'connectToServer'
        QtMocHelpers::SlotData<bool()>(25, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool),
        // Slot 'requestQueueList'
        QtMocHelpers::SlotData<int()>(27, 2, QMC::AccessPublic, QMetaType::Int),
        // Slot 'submitJob'
        QtMocHelpers::SlotData<int(const JobObject &)>(28, 2, QMC::AccessPublic, QMetaType::Int, {{
            { 0x80000000 | 29, 30 },
        }}),
        // Slot 'lookupJob'
        QtMocHelpers::SlotData<int(unsigned int)>(31, 2, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::UInt, 8 },
        }}),
        // Slot 'cancelJob'
        QtMocHelpers::SlotData<int(unsigned int)>(32, 2, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::UInt, 8 },
        }}),
        // Slot 'registerOpenWith'
        QtMocHelpers::SlotData<int(const QString &, const QString &, const QList<QRegularExpression> &)>(33, 2, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::QString, 34 }, { QMetaType::QString, 35 }, { 0x80000000 | 36, 37 },
        }}),
        // Slot 'registerOpenWith'
        QtMocHelpers::SlotData<int(const QString &, const QString &, const QString &, const QList<QRegularExpression> &)>(33, 2, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::QString, 34 }, { QMetaType::QString, 38 }, { QMetaType::QString, 39 }, { 0x80000000 | 36, 37 },
        }}),
        // Slot 'listOpenWithNames'
        QtMocHelpers::SlotData<int()>(40, 2, QMC::AccessPublic, QMetaType::Int),
        // Slot 'unregisterOpenWith'
        QtMocHelpers::SlotData<int(const QString &)>(41, 2, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::QString, 42 },
        }}),
        // Slot 'flush'
        QtMocHelpers::SlotData<void()>(43, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'processResult'
        QtMocHelpers::SlotData<void(const QJsonObject &)>(44, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 4, 45 },
        }}),
        // Slot 'processNotification'
        QtMocHelpers::SlotData<void(const QJsonObject &)>(46, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 4, 47 },
        }}),
        // Slot 'processError'
        QtMocHelpers::SlotData<void(const QJsonObject &)>(48, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 4, 47 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Client, qt_meta_tag_ZN8Avogadro9MoleQueue6ClientE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Avogadro::MoleQueue::Client::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9MoleQueue6ClientE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9MoleQueue6ClientE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Avogadro9MoleQueue6ClientE_t>.metaTypes,
    nullptr
} };

void Avogadro::MoleQueue::Client::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Client *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->connectionStateChanged(); break;
        case 1: _t->queueListReceived((*reinterpret_cast<std::add_pointer_t<QJsonObject>>(_a[1]))); break;
        case 2: _t->submitJobResponse((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<uint>>(_a[2]))); break;
        case 3: _t->lookupJobResponse((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QJsonObject>>(_a[2]))); break;
        case 4: _t->cancelJobResponse((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1]))); break;
        case 5: _t->jobStateChanged((*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->registerOpenWithResponse((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 7: _t->listOpenWithNamesResponse((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QJsonArray>>(_a[2]))); break;
        case 8: _t->unregisterOpenWithResponse((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 9: _t->errorReceived((*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;
        case 10: { bool _r = _t->connectToServer((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 11: { bool _r = _t->connectToServer();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 12: { int _r = _t->requestQueueList();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 13: { int _r = _t->submitJob((*reinterpret_cast<std::add_pointer_t<JobObject>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 14: { int _r = _t->lookupJob((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 15: { int _r = _t->cancelJob((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 16: { int _r = _t->registerOpenWith((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QList<QRegularExpression>>>(_a[3])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 17: { int _r = _t->registerOpenWith((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QList<QRegularExpression>>>(_a[4])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 18: { int _r = _t->listOpenWithNames();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 19: { int _r = _t->unregisterOpenWith((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 20: _t->flush(); break;
        case 21: _t->processResult((*reinterpret_cast<std::add_pointer_t<QJsonObject>>(_a[1]))); break;
        case 22: _t->processNotification((*reinterpret_cast<std::add_pointer_t<QJsonObject>>(_a[1]))); break;
        case 23: _t->processError((*reinterpret_cast<std::add_pointer_t<QJsonObject>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 16:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 2:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<QRegularExpression> >(); break;
            }
            break;
        case 17:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 3:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<QRegularExpression> >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Client::*)()>(_a, &Client::connectionStateChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Client::*)(QJsonObject )>(_a, &Client::queueListReceived, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Client::*)(int , unsigned int )>(_a, &Client::submitJobResponse, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Client::*)(int , QJsonObject )>(_a, &Client::lookupJobResponse, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Client::*)(unsigned int )>(_a, &Client::cancelJobResponse, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Client::*)(unsigned int , QString , QString )>(_a, &Client::jobStateChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (Client::*)(int )>(_a, &Client::registerOpenWithResponse, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (Client::*)(int , QJsonArray )>(_a, &Client::listOpenWithNamesResponse, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (Client::*)(int )>(_a, &Client::unregisterOpenWithResponse, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (Client::*)(int , int , QString , QJsonValue )>(_a, &Client::errorReceived, 9))
            return;
    }
}

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

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

int Avogadro::MoleQueue::Client::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 < 24)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 24;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 24)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 24;
    }
    return _id;
}

// SIGNAL 0
void Avogadro::MoleQueue::Client::connectionStateChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void Avogadro::MoleQueue::Client::queueListReceived(QJsonObject _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Avogadro::MoleQueue::Client::submitJobResponse(int _t1, unsigned int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}

// SIGNAL 3
void Avogadro::MoleQueue::Client::lookupJobResponse(int _t1, QJsonObject _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1, _t2);
}

// SIGNAL 4
void Avogadro::MoleQueue::Client::cancelJobResponse(unsigned int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void Avogadro::MoleQueue::Client::jobStateChanged(unsigned int _t1, QString _t2, QString _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1, _t2, _t3);
}

// SIGNAL 6
void Avogadro::MoleQueue::Client::registerOpenWithResponse(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

// SIGNAL 7
void Avogadro::MoleQueue::Client::listOpenWithNamesResponse(int _t1, QJsonArray _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1, _t2);
}

// SIGNAL 8
void Avogadro::MoleQueue::Client::unregisterOpenWithResponse(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}

// SIGNAL 9
void Avogadro::MoleQueue::Client::errorReceived(int _t1, int _t2, QString _t3, QJsonValue _t4)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 9, nullptr, _t1, _t2, _t3, _t4);
}
QT_WARNING_POP
