/****************************************************************************
** Meta object code from reading C++ file 'kgame.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.4)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../src/libkdegames-17.12.3/libkdegamesprivate/kgame/kgame.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kgame.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.4. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_KGame_t {
    QByteArrayData data[48];
    char stringdata0[586];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KGame_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KGame_t qt_meta_stringdata_KGame = {
    {
QT_MOC_LITERAL(0, 0, 5), // "KGame"
QT_MOC_LITERAL(1, 6, 21), // "signalReplacePlayerIO"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 8), // "KPlayer*"
QT_MOC_LITERAL(4, 38, 6), // "player"
QT_MOC_LITERAL(5, 45, 5), // "bool*"
QT_MOC_LITERAL(6, 51, 6), // "remove"
QT_MOC_LITERAL(7, 58, 20), // "signalLoadPrePlayers"
QT_MOC_LITERAL(8, 79, 12), // "QDataStream&"
QT_MOC_LITERAL(9, 92, 6), // "stream"
QT_MOC_LITERAL(10, 99, 10), // "signalLoad"
QT_MOC_LITERAL(11, 110, 20), // "signalSavePrePlayers"
QT_MOC_LITERAL(12, 131, 10), // "signalSave"
QT_MOC_LITERAL(13, 142, 15), // "signalLoadError"
QT_MOC_LITERAL(14, 158, 7), // "network"
QT_MOC_LITERAL(15, 166, 6), // "cookie"
QT_MOC_LITERAL(16, 173, 5), // "bool&"
QT_MOC_LITERAL(17, 179, 6), // "result"
QT_MOC_LITERAL(18, 186, 17), // "signalNetworkData"
QT_MOC_LITERAL(19, 204, 5), // "msgid"
QT_MOC_LITERAL(20, 210, 6), // "buffer"
QT_MOC_LITERAL(21, 217, 8), // "receiver"
QT_MOC_LITERAL(22, 226, 6), // "sender"
QT_MOC_LITERAL(23, 233, 19), // "signalMessageUpdate"
QT_MOC_LITERAL(24, 253, 20), // "signalPlayerLeftGame"
QT_MOC_LITERAL(25, 274, 22), // "signalPlayerJoinedGame"
QT_MOC_LITERAL(26, 297, 21), // "signalPropertyChanged"
QT_MOC_LITERAL(27, 319, 18), // "KGamePropertyBase*"
QT_MOC_LITERAL(28, 338, 8), // "property"
QT_MOC_LITERAL(29, 347, 6), // "KGame*"
QT_MOC_LITERAL(30, 354, 2), // "me"
QT_MOC_LITERAL(31, 357, 14), // "signalGameOver"
QT_MOC_LITERAL(32, 372, 6), // "status"
QT_MOC_LITERAL(33, 379, 7), // "current"
QT_MOC_LITERAL(34, 387, 22), // "signalClientJoinedGame"
QT_MOC_LITERAL(35, 410, 8), // "clientid"
QT_MOC_LITERAL(36, 419, 20), // "signalClientLeftGame"
QT_MOC_LITERAL(37, 440, 8), // "clientID"
QT_MOC_LITERAL(38, 449, 13), // "oldgamestatus"
QT_MOC_LITERAL(39, 463, 12), // "sendProperty"
QT_MOC_LITERAL(40, 476, 4), // "sent"
QT_MOC_LITERAL(41, 481, 10), // "emitSignal"
QT_MOC_LITERAL(42, 492, 11), // "prepareNext"
QT_MOC_LITERAL(43, 504, 19), // "slotClientConnected"
QT_MOC_LITERAL(44, 524, 8), // "clientId"
QT_MOC_LITERAL(45, 533, 22), // "slotClientDisconnected"
QT_MOC_LITERAL(46, 556, 6), // "broken"
QT_MOC_LITERAL(47, 563, 22) // "slotServerDisconnected"

    },
    "KGame\0signalReplacePlayerIO\0\0KPlayer*\0"
    "player\0bool*\0remove\0signalLoadPrePlayers\0"
    "QDataStream&\0stream\0signalLoad\0"
    "signalSavePrePlayers\0signalSave\0"
    "signalLoadError\0network\0cookie\0bool&\0"
    "result\0signalNetworkData\0msgid\0buffer\0"
    "receiver\0sender\0signalMessageUpdate\0"
    "signalPlayerLeftGame\0signalPlayerJoinedGame\0"
    "signalPropertyChanged\0KGamePropertyBase*\0"
    "property\0KGame*\0me\0signalGameOver\0"
    "status\0current\0signalClientJoinedGame\0"
    "clientid\0signalClientLeftGame\0clientID\0"
    "oldgamestatus\0sendProperty\0sent\0"
    "emitSignal\0prepareNext\0slotClientConnected\0"
    "clientId\0slotClientDisconnected\0broken\0"
    "slotServerDisconnected"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KGame[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      20,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
      14,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    2,  114,    2, 0x06 /* Public */,
       7,    1,  119,    2, 0x06 /* Public */,
      10,    1,  122,    2, 0x06 /* Public */,
      11,    1,  125,    2, 0x06 /* Public */,
      12,    1,  128,    2, 0x06 /* Public */,
      13,    4,  131,    2, 0x06 /* Public */,
      18,    4,  140,    2, 0x06 /* Public */,
      23,    3,  149,    2, 0x06 /* Public */,
      24,    1,  156,    2, 0x06 /* Public */,
      25,    1,  159,    2, 0x06 /* Public */,
      26,    2,  162,    2, 0x06 /* Public */,
      31,    3,  167,    2, 0x06 /* Public */,
      34,    2,  174,    2, 0x06 /* Public */,
      36,    3,  179,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      39,    3,  186,    2, 0x09 /* Protected */,
      41,    1,  193,    2, 0x09 /* Protected */,
      42,    0,  196,    2, 0x09 /* Protected */,
      43,    1,  197,    2, 0x09 /* Protected */,
      45,    2,  200,    2, 0x09 /* Protected */,
      47,    0,  205,    2, 0x09 /* Protected */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5,    4,    6,
    QMetaType::Void, 0x80000000 | 8,    9,
    QMetaType::Void, 0x80000000 | 8,    9,
    QMetaType::Void, 0x80000000 | 8,    9,
    QMetaType::Void, 0x80000000 | 8,    9,
    QMetaType::Void, 0x80000000 | 8, QMetaType::Bool, QMetaType::Int, 0x80000000 | 16,    9,   14,   15,   17,
    QMetaType::Void, QMetaType::Int, QMetaType::QByteArray, QMetaType::UInt, QMetaType::UInt,   19,   20,   21,   22,
    QMetaType::Void, QMetaType::Int, QMetaType::UInt, QMetaType::UInt,   19,   21,   22,
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 27, 0x80000000 | 29,   28,   30,
    QMetaType::Void, QMetaType::Int, 0x80000000 | 3, 0x80000000 | 29,   32,   33,   30,
    QMetaType::Void, QMetaType::UInt, 0x80000000 | 29,   35,   30,
    QMetaType::Void, QMetaType::Int, QMetaType::Int, 0x80000000 | 29,   37,   38,   30,

 // slots: parameters
    QMetaType::Void, QMetaType::Int, 0x80000000 | 8, 0x80000000 | 5,   19,    9,   40,
    QMetaType::Void, 0x80000000 | 27,   30,
    QMetaType::Void,
    QMetaType::Void, QMetaType::UInt,   44,
    QMetaType::Void, QMetaType::UInt, QMetaType::Bool,   44,   46,
    QMetaType::Void,

       0        // eod
};

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

const QMetaObject KGame::staticMetaObject = {
    { &KGameNetwork::staticMetaObject, qt_meta_stringdata_KGame.data,
      qt_meta_data_KGame,  qt_static_metacall, nullptr, nullptr}
};


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_meta_stringdata_KGame.stringdata0))
        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 < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    }
    return _id;
}

// SIGNAL 0
void KGame::signalReplacePlayerIO(KPlayer * _t1, bool * _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void KGame::signalLoadPrePlayers(QDataStream & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void KGame::signalLoad(QDataStream & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void KGame::signalSavePrePlayers(QDataStream & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void KGame::signalSave(QDataStream & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void KGame::signalLoadError(QDataStream & _t1, bool _t2, int _t3, bool & _t4)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)), const_cast<void*>(reinterpret_cast<const void*>(&_t4)) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}

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

// SIGNAL 7
void KGame::signalMessageUpdate(int _t1, quint32 _t2, quint32 _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 7, _a);
}

// SIGNAL 8
void KGame::signalPlayerLeftGame(KPlayer * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 8, _a);
}

// SIGNAL 9
void KGame::signalPlayerJoinedGame(KPlayer * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 9, _a);
}

// SIGNAL 10
void KGame::signalPropertyChanged(KGamePropertyBase * _t1, KGame * _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 10, _a);
}

// SIGNAL 11
void KGame::signalGameOver(int _t1, KPlayer * _t2, KGame * _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 11, _a);
}

// SIGNAL 12
void KGame::signalClientJoinedGame(quint32 _t1, KGame * _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 12, _a);
}

// SIGNAL 13
void KGame::signalClientLeftGame(int _t1, int _t2, KGame * _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 13, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
