/****************************************************************************
** Meta object code from reading C++ file 'setup.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/akonadi-17.12.3/autotests/libs/testrunner/setup.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'setup.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_SetupTest_t {
    QByteArrayData data[20];
    char stringdata0[297];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_SetupTest_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_SetupTest_t qt_meta_stringdata_SetupTest = {
    {
QT_MOC_LITERAL(0, 0, 9), // "SetupTest"
QT_MOC_LITERAL(1, 10, 15), // "D-Bus Interface"
QT_MOC_LITERAL(2, 26, 26), // "org.kde.Akonadi.Testrunner"
QT_MOC_LITERAL(3, 53, 9), // "setupDone"
QT_MOC_LITERAL(4, 63, 0), // ""
QT_MOC_LITERAL(5, 64, 12), // "serverExited"
QT_MOC_LITERAL(6, 77, 8), // "exitCode"
QT_MOC_LITERAL(7, 86, 8), // "shutdown"
QT_MOC_LITERAL(8, 95, 14), // "shutdownHarder"
QT_MOC_LITERAL(9, 110, 20), // "restartAkonadiServer"
QT_MOC_LITERAL(10, 131, 19), // "trackAkonadiProcess"
QT_MOC_LITERAL(11, 151, 5), // "track"
QT_MOC_LITERAL(12, 157, 18), // "serverStateChanged"
QT_MOC_LITERAL(13, 176, 29), // "Akonadi::ServerManager::State"
QT_MOC_LITERAL(14, 206, 5), // "state"
QT_MOC_LITERAL(15, 212, 32), // "slotAkonadiDaemonProcessFinished"
QT_MOC_LITERAL(16, 245, 19), // "agentCreationResult"
QT_MOC_LITERAL(17, 265, 5), // "KJob*"
QT_MOC_LITERAL(18, 271, 3), // "job"
QT_MOC_LITERAL(19, 275, 21) // "synchronizationResult"

    },
    "SetupTest\0D-Bus Interface\0"
    "org.kde.Akonadi.Testrunner\0setupDone\0"
    "\0serverExited\0exitCode\0shutdown\0"
    "shutdownHarder\0restartAkonadiServer\0"
    "trackAkonadiProcess\0track\0serverStateChanged\0"
    "Akonadi::ServerManager::State\0state\0"
    "slotAkonadiDaemonProcessFinished\0"
    "agentCreationResult\0KJob*\0job\0"
    "synchronizationResult"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_SetupTest[] = {

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

 // classinfo: key, value
       1,    2,

 // signals: name, argc, parameters, tag, flags
       3,    0,   66,    4, 0x06 /* Public */,
       5,    1,   67,    4, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       7,    0,   70,    4, 0x4a /* Public | isScriptable */,
       8,    0,   71,    4, 0x4a /* Public | isScriptable */,
       9,    0,   72,    4, 0x4a /* Public | isScriptable */,
      10,    1,   73,    4, 0x4a /* Public | isScriptable */,
      12,    1,   76,    4, 0x08 /* Private */,
      15,    1,   79,    4, 0x08 /* Private */,
      16,    1,   82,    4, 0x08 /* Private */,
      19,    1,   85,    4, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,    6,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   11,
    QMetaType::Void, 0x80000000 | 13,   14,
    QMetaType::Void, QMetaType::Int,    6,
    QMetaType::Void, 0x80000000 | 17,   18,
    QMetaType::Void, 0x80000000 | 17,   18,

       0        // eod
};

void SetupTest::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        SetupTest *_t = static_cast<SetupTest *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->setupDone(); break;
        case 1: _t->serverExited((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 2: _t->shutdown(); break;
        case 3: _t->shutdownHarder(); break;
        case 4: _t->restartAkonadiServer(); break;
        case 5: _t->trackAkonadiProcess((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 6: _t->serverStateChanged((*reinterpret_cast< Akonadi::ServerManager::State(*)>(_a[1]))); break;
        case 7: _t->slotAkonadiDaemonProcessFinished((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 8: _t->agentCreationResult((*reinterpret_cast< KJob*(*)>(_a[1]))); break;
        case 9: _t->synchronizationResult((*reinterpret_cast< KJob*(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Akonadi::ServerManager::State >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (SetupTest::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SetupTest::setupDone)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (SetupTest::*_t)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SetupTest::serverExited)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject SetupTest::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_SetupTest.data,
      qt_meta_data_SetupTest,  qt_static_metacall, nullptr, nullptr}
};


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

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

int SetupTest::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 < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    return _id;
}

// SIGNAL 0
void SetupTest::setupDone()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void SetupTest::serverExited(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
