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

#include "../src/libkdegames-17.04.3/libkdegamesprivate/kgame/kplayer.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kplayer.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.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_KPlayer_t {
    QByteArrayData data[17];
    char stringdata0[164];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlayer_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlayer_t qt_meta_stringdata_KPlayer = {
    {
QT_MOC_LITERAL(0, 0, 7), // "KPlayer"
QT_MOC_LITERAL(1, 8, 17), // "signalNetworkData"
QT_MOC_LITERAL(2, 26, 0), // ""
QT_MOC_LITERAL(3, 27, 5), // "msgid"
QT_MOC_LITERAL(4, 33, 6), // "buffer"
QT_MOC_LITERAL(5, 40, 6), // "sender"
QT_MOC_LITERAL(6, 47, 8), // "KPlayer*"
QT_MOC_LITERAL(7, 56, 2), // "me"
QT_MOC_LITERAL(8, 59, 21), // "signalPropertyChanged"
QT_MOC_LITERAL(9, 81, 18), // "KGamePropertyBase*"
QT_MOC_LITERAL(10, 100, 8), // "property"
QT_MOC_LITERAL(11, 109, 12), // "sendProperty"
QT_MOC_LITERAL(12, 122, 12), // "QDataStream&"
QT_MOC_LITERAL(13, 135, 6), // "stream"
QT_MOC_LITERAL(14, 142, 5), // "bool*"
QT_MOC_LITERAL(15, 148, 4), // "sent"
QT_MOC_LITERAL(16, 153, 10) // "emitSignal"

    },
    "KPlayer\0signalNetworkData\0\0msgid\0"
    "buffer\0sender\0KPlayer*\0me\0"
    "signalPropertyChanged\0KGamePropertyBase*\0"
    "property\0sendProperty\0QDataStream&\0"
    "stream\0bool*\0sent\0emitSignal"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlayer[] = {

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

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

 // slots: name, argc, parameters, tag, flags
      11,    3,   48,    2, 0x09 /* Protected */,
      16,    1,   55,    2, 0x09 /* Protected */,

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

 // slots: parameters
    QMetaType::Void, QMetaType::Int, 0x80000000 | 12, 0x80000000 | 14,    3,   13,   15,
    QMetaType::Void, 0x80000000 | 9,    7,

       0        // eod
};

void KPlayer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KPlayer *_t = static_cast<KPlayer *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->signalNetworkData((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QByteArray(*)>(_a[2])),(*reinterpret_cast< quint32(*)>(_a[3])),(*reinterpret_cast< KPlayer*(*)>(_a[4]))); break;
        case 1: _t->signalPropertyChanged((*reinterpret_cast< KGamePropertyBase*(*)>(_a[1])),(*reinterpret_cast< KPlayer*(*)>(_a[2]))); break;
        case 2: _t->sendProperty((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QDataStream(*)>(_a[2])),(*reinterpret_cast< bool*(*)>(_a[3]))); break;
        case 3: _t->emitSignal((*reinterpret_cast< KGamePropertyBase*(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 3:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< KPlayer* >(); break;
            }
            break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< KPlayer* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (KPlayer::*_t)(int , const QByteArray & , quint32 , KPlayer * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KPlayer::signalNetworkData)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (KPlayer::*_t)(KGamePropertyBase * , KPlayer * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KPlayer::signalPropertyChanged)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject KPlayer::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KPlayer.data,
      qt_meta_data_KPlayer,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

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

// SIGNAL 0
void KPlayer::signalNetworkData(int _t1, const QByteArray & _t2, quint32 _t3, KPlayer * _t4)
{
    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)), const_cast<void*>(reinterpret_cast<const void*>(&_t4)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

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