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

template <> constexpr inline auto Avogadro::MoleQueue::JsonRpcClient::qt_create_metaobjectdata<qt_meta_tag_ZN8Avogadro9MoleQueue13JsonRpcClientE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Avogadro::MoleQueue::JsonRpcClient",
        "connectionStateChanged",
        "",
        "resultReceived",
        "QJsonObject",
        "message",
        "notificationReceived",
        "errorReceived",
        "badPacketReceived",
        "error",
        "newPacket",
        "packet",
        "connectToServer",
        "serverName",
        "flush",
        "emptyRequest",
        "sendRequest",
        "request",
        "readPacket",
        "readSocket"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'connectionStateChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'resultReceived'
        QtMocHelpers::SignalData<void(QJsonObject)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Signal 'notificationReceived'
        QtMocHelpers::SignalData<void(QJsonObject)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Signal 'errorReceived'
        QtMocHelpers::SignalData<void(QJsonObject)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Signal 'badPacketReceived'
        QtMocHelpers::SignalData<void(QString)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 },
        }}),
        // Signal 'newPacket'
        QtMocHelpers::SignalData<void(const QByteArray &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 11 },
        }}),
        // Slot 'connectToServer'
        QtMocHelpers::SlotData<bool(const QString &)>(12, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 13 },
        }}),
        // Slot 'flush'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'emptyRequest'
        QtMocHelpers::SlotData<QJsonObject()>(15, 2, QMC::AccessPublic, 0x80000000 | 4),
        // Slot 'sendRequest'
        QtMocHelpers::SlotData<bool(const QJsonObject &)>(16, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 4, 17 },
        }}),
        // Slot 'readPacket'
        QtMocHelpers::SlotData<void(const QByteArray)>(18, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::QByteArray, 5 },
        }}),
        // Slot 'readSocket'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessProtected, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<JsonRpcClient, qt_meta_tag_ZN8Avogadro9MoleQueue13JsonRpcClientE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Avogadro::MoleQueue::JsonRpcClient::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9MoleQueue13JsonRpcClientE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9MoleQueue13JsonRpcClientE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Avogadro9MoleQueue13JsonRpcClientE_t>.metaTypes,
    nullptr
} };

void Avogadro::MoleQueue::JsonRpcClient::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<JsonRpcClient *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->connectionStateChanged(); break;
        case 1: _t->resultReceived((*reinterpret_cast<std::add_pointer_t<QJsonObject>>(_a[1]))); break;
        case 2: _t->notificationReceived((*reinterpret_cast<std::add_pointer_t<QJsonObject>>(_a[1]))); break;
        case 3: _t->errorReceived((*reinterpret_cast<std::add_pointer_t<QJsonObject>>(_a[1]))); break;
        case 4: _t->badPacketReceived((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: _t->newPacket((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 6: { 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 7: _t->flush(); break;
        case 8: { QJsonObject _r = _t->emptyRequest();
            if (_a[0]) *reinterpret_cast<QJsonObject*>(_a[0]) = std::move(_r); }  break;
        case 9: { bool _r = _t->sendRequest((*reinterpret_cast<std::add_pointer_t<QJsonObject>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 10: _t->readPacket((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 11: _t->readSocket(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (JsonRpcClient::*)()>(_a, &JsonRpcClient::connectionStateChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (JsonRpcClient::*)(QJsonObject )>(_a, &JsonRpcClient::resultReceived, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (JsonRpcClient::*)(QJsonObject )>(_a, &JsonRpcClient::notificationReceived, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (JsonRpcClient::*)(QJsonObject )>(_a, &JsonRpcClient::errorReceived, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (JsonRpcClient::*)(QString )>(_a, &JsonRpcClient::badPacketReceived, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (JsonRpcClient::*)(const QByteArray & )>(_a, &JsonRpcClient::newPacket, 5))
            return;
    }
}

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

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

int Avogadro::MoleQueue::JsonRpcClient::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 < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 12;
    }
    return _id;
}

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

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

// SIGNAL 2
void Avogadro::MoleQueue::JsonRpcClient::notificationReceived(QJsonObject _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Avogadro::MoleQueue::JsonRpcClient::errorReceived(QJsonObject _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Avogadro::MoleQueue::JsonRpcClient::badPacketReceived(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void Avogadro::MoleQueue::JsonRpcClient::newPacket(const QByteArray & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}
QT_WARNING_POP
