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

#include "../../src/kfourinline-17.08.3/src/kgameprocess.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kgameprocess.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.2. 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_KMessageFilePipe_t {
    QByteArrayData data[1];
    char stringdata0[17];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KMessageFilePipe_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KMessageFilePipe_t qt_meta_stringdata_KMessageFilePipe = {
    {
QT_MOC_LITERAL(0, 0, 16) // "KMessageFilePipe"

    },
    "KMessageFilePipe"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KMessageFilePipe[] = {

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

       0        // eod
};

void KMessageFilePipe::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    Q_UNUSED(_o);
    Q_UNUSED(_id);
    Q_UNUSED(_c);
    Q_UNUSED(_a);
}

const QMetaObject KMessageFilePipe::staticMetaObject = {
    { &KMessageIO::staticMetaObject, qt_meta_stringdata_KMessageFilePipe.data,
      qt_meta_data_KMessageFilePipe,  qt_static_metacall, nullptr, nullptr}
};


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

void *KMessageFilePipe::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_KMessageFilePipe.stringdata0))
        return static_cast<void*>(this);
    return KMessageIO::qt_metacast(_clname);
}

int KMessageFilePipe::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = KMessageIO::qt_metacall(_c, _id, _a);
    return _id;
}
struct qt_meta_stringdata_KGameProcess_t {
    QByteArrayData data[15];
    char stringdata0[146];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KGameProcess_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KGameProcess_t qt_meta_stringdata_KGameProcess = {
    {
QT_MOC_LITERAL(0, 0, 12), // "KGameProcess"
QT_MOC_LITERAL(1, 13, 13), // "signalCommand"
QT_MOC_LITERAL(2, 27, 0), // ""
QT_MOC_LITERAL(3, 28, 12), // "QDataStream&"
QT_MOC_LITERAL(4, 41, 11), // "inputStream"
QT_MOC_LITERAL(5, 53, 5), // "msgid"
QT_MOC_LITERAL(6, 59, 8), // "receiver"
QT_MOC_LITERAL(7, 68, 6), // "sender"
QT_MOC_LITERAL(8, 75, 10), // "signalTurn"
QT_MOC_LITERAL(9, 86, 6), // "stream"
QT_MOC_LITERAL(10, 93, 4), // "turn"
QT_MOC_LITERAL(11, 98, 10), // "signalInit"
QT_MOC_LITERAL(12, 109, 6), // "userid"
QT_MOC_LITERAL(13, 116, 15), // "receivedMessage"
QT_MOC_LITERAL(14, 132, 13) // "receiveBuffer"

    },
    "KGameProcess\0signalCommand\0\0QDataStream&\0"
    "inputStream\0msgid\0receiver\0sender\0"
    "signalTurn\0stream\0turn\0signalInit\0"
    "userid\0receivedMessage\0receiveBuffer"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KGameProcess[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    4,   34,    2, 0x06 /* Public */,
       8,    2,   43,    2, 0x06 /* Public */,
      11,    2,   48,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      13,    1,   53,    2, 0x09 /* Protected */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3, QMetaType::Int, QMetaType::Int, QMetaType::Int,    4,    5,    6,    7,
    QMetaType::Void, 0x80000000 | 3, QMetaType::Bool,    9,   10,
    QMetaType::Void, 0x80000000 | 3, QMetaType::Int,    9,   12,

 // slots: parameters
    QMetaType::Void, QMetaType::QByteArray,   14,

       0        // eod
};

void KGameProcess::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KGameProcess *_t = static_cast<KGameProcess *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->signalCommand((*reinterpret_cast< QDataStream(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4]))); break;
        case 1: _t->signalTurn((*reinterpret_cast< QDataStream(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 2: _t->signalInit((*reinterpret_cast< QDataStream(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 3: _t->receivedMessage((*reinterpret_cast< const QByteArray(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (KGameProcess::*_t)(QDataStream & , int , int , int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KGameProcess::signalCommand)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (KGameProcess::*_t)(QDataStream & , bool );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KGameProcess::signalTurn)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (KGameProcess::*_t)(QDataStream & , int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KGameProcess::signalInit)) {
                *result = 2;
                return;
            }
        }
    }
}

const QMetaObject KGameProcess::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KGameProcess.data,
      qt_meta_data_KGameProcess,  qt_static_metacall, nullptr, nullptr}
};


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

void *KGameProcess::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_KGameProcess.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int KGameProcess::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 < 4)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 4)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 4;
    }
    return _id;
}

// SIGNAL 0
void KGameProcess::signalCommand(QDataStream & _t1, int _t2, int _t3, int _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, 0, _a);
}

// SIGNAL 1
void KGameProcess::signalTurn(QDataStream & _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, 1, _a);
}

// SIGNAL 2
void KGameProcess::signalInit(QDataStream & _t1, int _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
