/****************************************************************************
** Meta object code from reading C++ file 'kmessageio.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/libkdegames-17.08.3/libkdegamesprivate/kgame/kmessageio.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kmessageio.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_KMessageIO_t {
    QByteArrayData data[6];
    char stringdata0[47];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KMessageIO_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KMessageIO_t qt_meta_stringdata_KMessageIO = {
    {
QT_MOC_LITERAL(0, 0, 10), // "KMessageIO"
QT_MOC_LITERAL(1, 11, 8), // "received"
QT_MOC_LITERAL(2, 20, 0), // ""
QT_MOC_LITERAL(3, 21, 3), // "msg"
QT_MOC_LITERAL(4, 25, 16), // "connectionBroken"
QT_MOC_LITERAL(5, 42, 4) // "send"

    },
    "KMessageIO\0received\0\0msg\0connectionBroken\0"
    "send"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KMessageIO[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   29,    2, 0x06 /* Public */,
       4,    0,   32,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       5,    1,   33,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::QByteArray,    3,
    QMetaType::Void,

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

       0        // eod
};

void KMessageIO::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KMessageIO *_t = static_cast<KMessageIO *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->received((*reinterpret_cast< const QByteArray(*)>(_a[1]))); break;
        case 1: _t->connectionBroken(); break;
        case 2: _t->send((*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 (KMessageIO::*_t)(const QByteArray & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KMessageIO::received)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (KMessageIO::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KMessageIO::connectionBroken)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject KMessageIO::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KMessageIO.data,
      qt_meta_data_KMessageIO,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

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

// SIGNAL 1
void KMessageIO::connectionBroken()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
struct qt_meta_stringdata_KMessageSocket_t {
    QByteArrayData data[3];
    char stringdata0[31];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KMessageSocket_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KMessageSocket_t qt_meta_stringdata_KMessageSocket = {
    {
QT_MOC_LITERAL(0, 0, 14), // "KMessageSocket"
QT_MOC_LITERAL(1, 15, 14), // "processNewData"
QT_MOC_LITERAL(2, 30, 0) // ""

    },
    "KMessageSocket\0processNewData\0"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KMessageSocket[] = {

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

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

 // slots: parameters
    QMetaType::Void,

       0        // eod
};

void KMessageSocket::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KMessageSocket *_t = static_cast<KMessageSocket *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->processNewData(); break;
        default: ;
        }
    }
    Q_UNUSED(_a);
}

const QMetaObject KMessageSocket::staticMetaObject = {
    { &KMessageIO::staticMetaObject, qt_meta_stringdata_KMessageSocket.data,
      qt_meta_data_KMessageSocket,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KMessageSocket::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = KMessageIO::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 1)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 1)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 1;
    }
    return _id;
}
struct qt_meta_stringdata_KMessageDirect_t {
    QByteArrayData data[1];
    char stringdata0[15];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KMessageDirect_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KMessageDirect_t qt_meta_stringdata_KMessageDirect = {
    {
QT_MOC_LITERAL(0, 0, 14) // "KMessageDirect"

    },
    "KMessageDirect"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KMessageDirect[] = {

 // 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 KMessageDirect::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 KMessageDirect::staticMetaObject = {
    { &KMessageIO::staticMetaObject, qt_meta_stringdata_KMessageDirect.data,
      qt_meta_data_KMessageDirect,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KMessageDirect::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = KMessageIO::qt_metacall(_c, _id, _a);
    return _id;
}
struct qt_meta_stringdata_KMessageProcess_t {
    QByteArrayData data[8];
    char stringdata0[119];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KMessageProcess_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KMessageProcess_t qt_meta_stringdata_KMessageProcess = {
    {
QT_MOC_LITERAL(0, 0, 15), // "KMessageProcess"
QT_MOC_LITERAL(1, 16, 20), // "signalReceivedStderr"
QT_MOC_LITERAL(2, 37, 0), // ""
QT_MOC_LITERAL(3, 38, 3), // "msg"
QT_MOC_LITERAL(4, 42, 18), // "slotReceivedStdout"
QT_MOC_LITERAL(5, 61, 18), // "slotReceivedStderr"
QT_MOC_LITERAL(6, 80, 17), // "slotProcessExited"
QT_MOC_LITERAL(7, 98, 20) // "QProcess::ExitStatus"

    },
    "KMessageProcess\0signalReceivedStderr\0"
    "\0msg\0slotReceivedStdout\0slotReceivedStderr\0"
    "slotProcessExited\0QProcess::ExitStatus"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KMessageProcess[] = {

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

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

 // slots: name, argc, parameters, tag, flags
       4,    0,   37,    2, 0x0a /* Public */,
       5,    0,   38,    2, 0x0a /* Public */,
       6,    2,   39,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::QString,    3,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, 0x80000000 | 7,    2,    2,

       0        // eod
};

void KMessageProcess::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KMessageProcess *_t = static_cast<KMessageProcess *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->signalReceivedStderr((*reinterpret_cast< QString(*)>(_a[1]))); break;
        case 1: _t->slotReceivedStdout(); break;
        case 2: _t->slotReceivedStderr(); break;
        case 3: _t->slotProcessExited((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QProcess::ExitStatus(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (KMessageProcess::*_t)(QString );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KMessageProcess::signalReceivedStderr)) {
                *result = 0;
                return;
            }
        }
    }
}

const QMetaObject KMessageProcess::staticMetaObject = {
    { &KMessageIO::staticMetaObject, qt_meta_stringdata_KMessageProcess.data,
      qt_meta_data_KMessageProcess,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KMessageProcess::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = KMessageIO::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 KMessageProcess::signalReceivedStderr(QString _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
