/****************************************************************************
** Meta object code from reading C++ file 'sessioncontroller.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/kdevplatform-5.0.3/shell/sessioncontroller.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'sessioncontroller.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_KDevelop__SessionController_t {
    QByteArrayData data[16];
    char stringdata0[230];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KDevelop__SessionController_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KDevelop__SessionController_t qt_meta_stringdata_KDevelop__SessionController = {
    {
QT_MOC_LITERAL(0, 0, 27), // "KDevelop::SessionController"
QT_MOC_LITERAL(1, 28, 15), // "D-Bus Interface"
QT_MOC_LITERAL(2, 44, 30), // "org.kdevelop.SessionController"
QT_MOC_LITERAL(3, 75, 13), // "sessionLoaded"
QT_MOC_LITERAL(4, 89, 0), // ""
QT_MOC_LITERAL(5, 90, 9), // "ISession*"
QT_MOC_LITERAL(6, 100, 14), // "sessionDeleted"
QT_MOC_LITERAL(7, 115, 2), // "id"
QT_MOC_LITERAL(8, 118, 11), // "quitSession"
QT_MOC_LITERAL(9, 130, 11), // "sessionName"
QT_MOC_LITERAL(10, 142, 10), // "sessionDir"
QT_MOC_LITERAL(11, 153, 10), // "newSession"
QT_MOC_LITERAL(12, 164, 20), // "deleteCurrentSession"
QT_MOC_LITERAL(13, 185, 13), // "renameSession"
QT_MOC_LITERAL(14, 199, 21), // "loadSessionFromAction"
QT_MOC_LITERAL(15, 221, 8) // "QAction*"

    },
    "KDevelop::SessionController\0D-Bus Interface\0"
    "org.kdevelop.SessionController\0"
    "sessionLoaded\0\0ISession*\0sessionDeleted\0"
    "id\0quitSession\0sessionName\0sessionDir\0"
    "newSession\0deleteCurrentSession\0"
    "renameSession\0loadSessionFromAction\0"
    "QAction*"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KDevelop__SessionController[] = {

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

 // classinfo: key, value
       1,    2,

 // signals: name, argc, parameters, tag, flags
       3,    1,   61,    4, 0x06 /* Public */,
       6,    1,   64,    4, 0x06 /* Public */,
       8,    0,   67,    4, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       9,    0,   68,    4, 0x4a /* Public | isScriptable */,
      10,    0,   69,    4, 0x4a /* Public | isScriptable */,
      11,    0,   70,    4, 0x08 /* Private */,
      12,    0,   71,    4, 0x08 /* Private */,
      13,    0,   72,    4, 0x08 /* Private */,
      14,    1,   73,    4, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 5,    4,
    QMetaType::Void, QMetaType::QString,    7,
    QMetaType::Void,

 // slots: parameters
    QMetaType::QString,
    QMetaType::QString,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 15,    4,

       0        // eod
};

void KDevelop::SessionController::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        SessionController *_t = static_cast<SessionController *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->sessionLoaded((*reinterpret_cast< ISession*(*)>(_a[1]))); break;
        case 1: _t->sessionDeleted((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 2: _t->quitSession(); break;
        case 3: { QString _r = _t->sessionName();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
        case 4: { QString _r = _t->sessionDir();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
        case 5: _t->d->newSession(); break;
        case 6: _t->d->deleteCurrentSession(); break;
        case 7: _t->d->renameSession(); break;
        case 8: _t->d->loadSessionFromAction((*reinterpret_cast< QAction*(*)>(_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 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< ISession* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (SessionController::*_t)(ISession * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SessionController::sessionLoaded)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (SessionController::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SessionController::sessionDeleted)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (SessionController::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SessionController::quitSession)) {
                *result = 2;
                return;
            }
        }
    }
}

const QMetaObject KDevelop::SessionController::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KDevelop__SessionController.data,
      qt_meta_data_KDevelop__SessionController,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *KDevelop::SessionController::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_KDevelop__SessionController.stringdata0))
        return static_cast<void*>(const_cast< SessionController*>(this));
    if (!strcmp(_clname, "KXMLGUIClient"))
        return static_cast< KXMLGUIClient*>(const_cast< SessionController*>(this));
    return QObject::qt_metacast(_clname);
}

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

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

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

// SIGNAL 2
void KDevelop::SessionController::quitSession()
{
    QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE
