/****************************************************************************
** Meta object code from reading C++ file 'kmessageclient.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 "../../../../../libkdegames-26.04.2/src/private/kgame/kmessageclient.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 'kmessageclient.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_ZN14KMessageClientE_t {};
} // unnamed namespace

template <> constexpr inline auto KMessageClient::qt_create_metaobjectdata<qt_meta_tag_ZN14KMessageClientE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KMessageClient",
        "broadcastReceived",
        "",
        "msg",
        "senderID",
        "forwardReceived",
        "QList<quint32>",
        "receivers",
        "connectionBroken",
        "aboutToDisconnect",
        "id",
        "adminStatusChanged",
        "isAdmin",
        "eventClientConnected",
        "clientID",
        "eventClientDisconnected",
        "broken",
        "serverMessageReceived",
        "bool&",
        "unknown",
        "processIncomingMessage",
        "processFirstMessage",
        "removeBrokenConnection",
        "removeBrokenConnection2"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'broadcastReceived'
        QtMocHelpers::SignalData<void(const QByteArray &, quint32)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 3 }, { QMetaType::UInt, 4 },
        }}),
        // Signal 'forwardReceived'
        QtMocHelpers::SignalData<void(const QByteArray &, quint32, const QList<quint32> &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 3 }, { QMetaType::UInt, 4 }, { 0x80000000 | 6, 7 },
        }}),
        // Signal 'connectionBroken'
        QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'aboutToDisconnect'
        QtMocHelpers::SignalData<void(quint32)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 10 },
        }}),
        // Signal 'adminStatusChanged'
        QtMocHelpers::SignalData<void(bool)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 12 },
        }}),
        // Signal 'eventClientConnected'
        QtMocHelpers::SignalData<void(quint32)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 14 },
        }}),
        // Signal 'eventClientDisconnected'
        QtMocHelpers::SignalData<void(quint32, bool)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 14 }, { QMetaType::Bool, 16 },
        }}),
        // Signal 'serverMessageReceived'
        QtMocHelpers::SignalData<void(const QByteArray &, bool &)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 3 }, { 0x80000000 | 18, 19 },
        }}),
        // Slot 'processIncomingMessage'
        QtMocHelpers::SlotData<void(const QByteArray &)>(20, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::QByteArray, 3 },
        }}),
        // Slot 'processFirstMessage'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'removeBrokenConnection'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'removeBrokenConnection2'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessProtected, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<KMessageClient, qt_meta_tag_ZN14KMessageClientE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KMessageClient::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14KMessageClientE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14KMessageClientE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN14KMessageClientE_t>.metaTypes,
    nullptr
} };

void KMessageClient::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KMessageClient *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->broadcastReceived((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[2]))); break;
        case 1: _t->forwardReceived((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QList<quint32>>>(_a[3]))); break;
        case 2: _t->connectionBroken(); break;
        case 3: _t->aboutToDisconnect((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1]))); break;
        case 4: _t->adminStatusChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 5: _t->eventClientConnected((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1]))); break;
        case 6: _t->eventClientDisconnected((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 7: _t->serverMessageReceived((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool&>>(_a[2]))); break;
        case 8: _t->processIncomingMessage((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 9: _t->processFirstMessage(); break;
        case 10: _t->removeBrokenConnection(); break;
        case 11: _t->removeBrokenConnection2(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 2:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<quint32> >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (KMessageClient::*)(const QByteArray & , quint32 )>(_a, &KMessageClient::broadcastReceived, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (KMessageClient::*)(const QByteArray & , quint32 , const QList<quint32> & )>(_a, &KMessageClient::forwardReceived, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (KMessageClient::*)()>(_a, &KMessageClient::connectionBroken, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (KMessageClient::*)(quint32 )>(_a, &KMessageClient::aboutToDisconnect, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (KMessageClient::*)(bool )>(_a, &KMessageClient::adminStatusChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (KMessageClient::*)(quint32 )>(_a, &KMessageClient::eventClientConnected, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (KMessageClient::*)(quint32 , bool )>(_a, &KMessageClient::eventClientDisconnected, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (KMessageClient::*)(const QByteArray & , bool & )>(_a, &KMessageClient::serverMessageReceived, 7))
            return;
    }
}

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

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

int KMessageClient::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)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    return _id;
}

// SIGNAL 0
void KMessageClient::broadcastReceived(const QByteArray & _t1, quint32 _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void KMessageClient::forwardReceived(const QByteArray & _t1, quint32 _t2, const QList<quint32> & _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2, _t3);
}

// SIGNAL 2
void KMessageClient::connectionBroken()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void KMessageClient::aboutToDisconnect(quint32 _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void KMessageClient::adminStatusChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void KMessageClient::eventClientConnected(quint32 _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void KMessageClient::eventClientDisconnected(quint32 _t1, bool _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1, _t2);
}

// SIGNAL 7
void KMessageClient::serverMessageReceived(const QByteArray & _t1, bool & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1, _t2);
}
QT_WARNING_POP
