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

template <> constexpr inline auto KGame::qt_create_metaobjectdata<qt_meta_tag_ZN5KGameE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KGame",
        "signalReplacePlayerIO",
        "",
        "KPlayer*",
        "player",
        "bool*",
        "remove",
        "signalLoadPrePlayers",
        "QDataStream&",
        "stream",
        "signalLoad",
        "signalSavePrePlayers",
        "signalSave",
        "signalLoadError",
        "network",
        "cookie",
        "bool&",
        "result",
        "signalNetworkData",
        "msgid",
        "buffer",
        "receiver",
        "sender",
        "signalMessageUpdate",
        "signalPlayerLeftGame",
        "signalPlayerJoinedGame",
        "signalPropertyChanged",
        "KGamePropertyBase*",
        "property",
        "KGame*",
        "me",
        "signalGameOver",
        "status",
        "current",
        "signalClientJoinedGame",
        "clientid",
        "signalClientLeftGame",
        "clientID",
        "oldgamestatus",
        "sendProperty",
        "sent",
        "emitSignal",
        "slotClientConnected",
        "clientId",
        "slotClientDisconnected",
        "broken",
        "slotServerDisconnected"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'signalReplacePlayerIO'
        QtMocHelpers::SignalData<void(KPlayer *, bool *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 5, 6 },
        }}),
        // Signal 'signalLoadPrePlayers'
        QtMocHelpers::SignalData<void(QDataStream &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Signal 'signalLoad'
        QtMocHelpers::SignalData<void(QDataStream &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Signal 'signalSavePrePlayers'
        QtMocHelpers::SignalData<void(QDataStream &)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Signal 'signalSave'
        QtMocHelpers::SignalData<void(QDataStream &)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Signal 'signalLoadError'
        QtMocHelpers::SignalData<void(QDataStream &, bool, int, bool &)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 }, { QMetaType::Bool, 14 }, { QMetaType::Int, 15 }, { 0x80000000 | 16, 17 },
        }}),
        // Signal 'signalNetworkData'
        QtMocHelpers::SignalData<void(int, const QByteArray &, quint32, quint32)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 19 }, { QMetaType::QByteArray, 20 }, { QMetaType::UInt, 21 }, { QMetaType::UInt, 22 },
        }}),
        // Signal 'signalMessageUpdate'
        QtMocHelpers::SignalData<void(int, quint32, quint32)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 19 }, { QMetaType::UInt, 21 }, { QMetaType::UInt, 22 },
        }}),
        // Signal 'signalPlayerLeftGame'
        QtMocHelpers::SignalData<void(KPlayer *)>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'signalPlayerJoinedGame'
        QtMocHelpers::SignalData<void(KPlayer *)>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'signalPropertyChanged'
        QtMocHelpers::SignalData<void(KGamePropertyBase *, KGame *)>(26, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 27, 28 }, { 0x80000000 | 29, 30 },
        }}),
        // Signal 'signalGameOver'
        QtMocHelpers::SignalData<void(int, KPlayer *, KGame *)>(31, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 32 }, { 0x80000000 | 3, 33 }, { 0x80000000 | 29, 30 },
        }}),
        // Signal 'signalClientJoinedGame'
        QtMocHelpers::SignalData<void(quint32, KGame *)>(34, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 35 }, { 0x80000000 | 29, 30 },
        }}),
        // Signal 'signalClientLeftGame'
        QtMocHelpers::SignalData<void(int, int, KGame *)>(36, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 37 }, { QMetaType::Int, 38 }, { 0x80000000 | 29, 30 },
        }}),
        // Slot 'sendProperty'
        QtMocHelpers::SlotData<void(int, QDataStream &, bool *)>(39, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::Int, 19 }, { 0x80000000 | 8, 9 }, { 0x80000000 | 5, 40 },
        }}),
        // Slot 'emitSignal'
        QtMocHelpers::SlotData<void(KGamePropertyBase *)>(41, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 27, 30 },
        }}),
        // Slot 'slotClientConnected'
        QtMocHelpers::SlotData<void(quint32)>(42, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::UInt, 43 },
        }}),
        // Slot 'slotClientDisconnected'
        QtMocHelpers::SlotData<void(quint32, bool)>(44, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::UInt, 43 }, { QMetaType::Bool, 45 },
        }}),
        // Slot 'slotServerDisconnected'
        QtMocHelpers::SlotData<void()>(46, 2, QMC::AccessProtected, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<KGame, qt_meta_tag_ZN5KGameE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KGame::staticMetaObject = { {
    QMetaObject::SuperData::link<KGameNetwork::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5KGameE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5KGameE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN5KGameE_t>.metaTypes,
    nullptr
} };

void KGame::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KGame *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->signalReplacePlayerIO((*reinterpret_cast<std::add_pointer_t<KPlayer*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool*>>(_a[2]))); break;
        case 1: _t->signalLoadPrePlayers((*reinterpret_cast<std::add_pointer_t<QDataStream&>>(_a[1]))); break;
        case 2: _t->signalLoad((*reinterpret_cast<std::add_pointer_t<QDataStream&>>(_a[1]))); break;
        case 3: _t->signalSavePrePlayers((*reinterpret_cast<std::add_pointer_t<QDataStream&>>(_a[1]))); break;
        case 4: _t->signalSave((*reinterpret_cast<std::add_pointer_t<QDataStream&>>(_a[1]))); break;
        case 5: _t->signalLoadError((*reinterpret_cast<std::add_pointer_t<QDataStream&>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<bool&>>(_a[4]))); break;
        case 6: _t->signalNetworkData((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[4]))); break;
        case 7: _t->signalMessageUpdate((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[3]))); break;
        case 8: _t->signalPlayerLeftGame((*reinterpret_cast<std::add_pointer_t<KPlayer*>>(_a[1]))); break;
        case 9: _t->signalPlayerJoinedGame((*reinterpret_cast<std::add_pointer_t<KPlayer*>>(_a[1]))); break;
        case 10: _t->signalPropertyChanged((*reinterpret_cast<std::add_pointer_t<KGamePropertyBase*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<KGame*>>(_a[2]))); break;
        case 11: _t->signalGameOver((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<KPlayer*>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<KGame*>>(_a[3]))); break;
        case 12: _t->signalClientJoinedGame((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<KGame*>>(_a[2]))); break;
        case 13: _t->signalClientLeftGame((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<KGame*>>(_a[3]))); break;
        case 14: _t->sendProperty((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QDataStream&>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool*>>(_a[3]))); break;
        case 15: _t->emitSignal((*reinterpret_cast<std::add_pointer_t<KGamePropertyBase*>>(_a[1]))); break;
        case 16: _t->slotClientConnected((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1]))); break;
        case 17: _t->slotClientDisconnected((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 18: _t->slotServerDisconnected(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 10:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< KGame* >(); break;
            }
            break;
        case 11:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 2:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< KGame* >(); break;
            }
            break;
        case 12:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< KGame* >(); break;
            }
            break;
        case 13:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 2:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< KGame* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (KGame::*)(KPlayer * , bool * )>(_a, &KGame::signalReplacePlayerIO, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (KGame::*)(QDataStream & )>(_a, &KGame::signalLoadPrePlayers, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (KGame::*)(QDataStream & )>(_a, &KGame::signalLoad, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (KGame::*)(QDataStream & )>(_a, &KGame::signalSavePrePlayers, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (KGame::*)(QDataStream & )>(_a, &KGame::signalSave, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (KGame::*)(QDataStream & , bool , int , bool & )>(_a, &KGame::signalLoadError, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (KGame::*)(int , const QByteArray & , quint32 , quint32 )>(_a, &KGame::signalNetworkData, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (KGame::*)(int , quint32 , quint32 )>(_a, &KGame::signalMessageUpdate, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (KGame::*)(KPlayer * )>(_a, &KGame::signalPlayerLeftGame, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (KGame::*)(KPlayer * )>(_a, &KGame::signalPlayerJoinedGame, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (KGame::*)(KGamePropertyBase * , KGame * )>(_a, &KGame::signalPropertyChanged, 10))
            return;
        if (QtMocHelpers::indexOfMethod<void (KGame::*)(int , KPlayer * , KGame * )>(_a, &KGame::signalGameOver, 11))
            return;
        if (QtMocHelpers::indexOfMethod<void (KGame::*)(quint32 , KGame * )>(_a, &KGame::signalClientJoinedGame, 12))
            return;
        if (QtMocHelpers::indexOfMethod<void (KGame::*)(int , int , KGame * )>(_a, &KGame::signalClientLeftGame, 13))
            return;
    }
}

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

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

int KGame::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = KGameNetwork::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 19)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 19;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 19)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 19;
    }
    return _id;
}

// SIGNAL 0
void KGame::signalReplacePlayerIO(KPlayer * _t1, bool * _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void KGame::signalLoadPrePlayers(QDataStream & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void KGame::signalLoad(QDataStream & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void KGame::signalSavePrePlayers(QDataStream & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void KGame::signalSave(QDataStream & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void KGame::signalLoadError(QDataStream & _t1, bool _t2, int _t3, bool & _t4)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1, _t2, _t3, _t4);
}

// SIGNAL 6
void KGame::signalNetworkData(int _t1, const QByteArray & _t2, quint32 _t3, quint32 _t4)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1, _t2, _t3, _t4);
}

// SIGNAL 7
void KGame::signalMessageUpdate(int _t1, quint32 _t2, quint32 _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1, _t2, _t3);
}

// SIGNAL 8
void KGame::signalPlayerLeftGame(KPlayer * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}

// SIGNAL 9
void KGame::signalPlayerJoinedGame(KPlayer * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 9, nullptr, _t1);
}

// SIGNAL 10
void KGame::signalPropertyChanged(KGamePropertyBase * _t1, KGame * _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 10, nullptr, _t1, _t2);
}

// SIGNAL 11
void KGame::signalGameOver(int _t1, KPlayer * _t2, KGame * _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 11, nullptr, _t1, _t2, _t3);
}

// SIGNAL 12
void KGame::signalClientJoinedGame(quint32 _t1, KGame * _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 12, nullptr, _t1, _t2);
}

// SIGNAL 13
void KGame::signalClientLeftGame(int _t1, int _t2, KGame * _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 13, nullptr, _t1, _t2, _t3);
}
QT_WARNING_POP
