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

#include "../src/libkdegames-15.04.3/libkdegamesprivate/kgame/kmessageserver.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kmessageserver.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.4.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
struct qt_meta_stringdata_KMessageServer_t {
    QByteArrayData data[20];
    char stringdata[217];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KMessageServer_t, stringdata) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KMessageServer_t qt_meta_stringdata_KMessageServer = {
    {
QT_MOC_LITERAL(0, 0, 14), // "KMessageServer"
QT_MOC_LITERAL(1, 15, 15), // "clientConnected"
QT_MOC_LITERAL(2, 31, 0), // ""
QT_MOC_LITERAL(3, 32, 11), // "KMessageIO*"
QT_MOC_LITERAL(4, 44, 6), // "client"
QT_MOC_LITERAL(5, 51, 14), // "connectionLost"
QT_MOC_LITERAL(6, 66, 15), // "messageReceived"
QT_MOC_LITERAL(7, 82, 4), // "data"
QT_MOC_LITERAL(8, 87, 8), // "clientID"
QT_MOC_LITERAL(9, 96, 5), // "bool&"
QT_MOC_LITERAL(10, 102, 7), // "unknown"
QT_MOC_LITERAL(11, 110, 9), // "addClient"
QT_MOC_LITERAL(12, 120, 12), // "removeClient"
QT_MOC_LITERAL(13, 133, 2), // "io"
QT_MOC_LITERAL(14, 136, 6), // "broken"
QT_MOC_LITERAL(15, 143, 13), // "deleteClients"
QT_MOC_LITERAL(16, 157, 18), // "removeBrokenClient"
QT_MOC_LITERAL(17, 176, 18), // "getReceivedMessage"
QT_MOC_LITERAL(18, 195, 3), // "msg"
QT_MOC_LITERAL(19, 199, 17) // "processOneMessage"

    },
    "KMessageServer\0clientConnected\0\0"
    "KMessageIO*\0client\0connectionLost\0"
    "messageReceived\0data\0clientID\0bool&\0"
    "unknown\0addClient\0removeClient\0io\0"
    "broken\0deleteClients\0removeBrokenClient\0"
    "getReceivedMessage\0msg\0processOneMessage"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KMessageServer[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   59,    2, 0x06 /* Public */,
       5,    1,   62,    2, 0x06 /* Public */,
       6,    3,   65,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      11,    1,   72,    2, 0x0a /* Public */,
      12,    2,   75,    2, 0x0a /* Public */,
      15,    0,   80,    2, 0x0a /* Public */,
      16,    0,   81,    2, 0x08 /* Private */,
      17,    1,   82,    2, 0x09 /* Protected */,
      19,    0,   85,    2, 0x09 /* Protected */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, QMetaType::QByteArray, QMetaType::UInt, 0x80000000 | 9,    7,    8,   10,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 3,    2,
    QMetaType::Void, 0x80000000 | 3, QMetaType::Bool,   13,   14,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QByteArray,   18,
    QMetaType::Void,

       0        // eod
};

void KMessageServer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KMessageServer *_t = static_cast<KMessageServer *>(_o);
        switch (_id) {
        case 0: _t->clientConnected((*reinterpret_cast< KMessageIO*(*)>(_a[1]))); break;
        case 1: _t->connectionLost((*reinterpret_cast< KMessageIO*(*)>(_a[1]))); break;
        case 2: _t->messageReceived((*reinterpret_cast< const QByteArray(*)>(_a[1])),(*reinterpret_cast< quint32(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3]))); break;
        case 3: _t->addClient((*reinterpret_cast< KMessageIO*(*)>(_a[1]))); break;
        case 4: _t->removeClient((*reinterpret_cast< KMessageIO*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 5: _t->deleteClients(); break;
        case 6: _t->removeBrokenClient(); break;
        case 7: _t->getReceivedMessage((*reinterpret_cast< const QByteArray(*)>(_a[1]))); break;
        case 8: _t->processOneMessage(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (KMessageServer::*_t)(KMessageIO * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KMessageServer::clientConnected)) {
                *result = 0;
            }
        }
        {
            typedef void (KMessageServer::*_t)(KMessageIO * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KMessageServer::connectionLost)) {
                *result = 1;
            }
        }
        {
            typedef void (KMessageServer::*_t)(const QByteArray & , quint32 , bool & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KMessageServer::messageReceived)) {
                *result = 2;
            }
        }
    }
}

const QMetaObject KMessageServer::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KMessageServer.data,
      qt_meta_data_KMessageServer,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *KMessageServer::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_KMessageServer.stringdata))
        return static_cast<void*>(const_cast< KMessageServer*>(this));
    return QObject::qt_metacast(_clname);
}

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

// SIGNAL 0
void KMessageServer::clientConnected(KMessageIO * _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void KMessageServer::connectionLost(KMessageIO * _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void KMessageServer::messageReceived(const QByteArray & _t1, quint32 _t2, bool & _t3)
{
    void *_a[] = { Q_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, 2, _a);
}
QT_END_MOC_NAMESPACE
