/****************************************************************************
** Meta object code from reading C++ file 'server.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/plasma-workspace-5.8.8/ksmserver/server.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'server.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_KSMServer_t {
    QByteArrayData data[44];
    char stringdata0[652];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KSMServer_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KSMServer_t qt_meta_stringdata_KSMServer = {
    {
QT_MOC_LITERAL(0, 0, 9), // "KSMServer"
QT_MOC_LITERAL(1, 10, 16), // "subSessionClosed"
QT_MOC_LITERAL(2, 27, 0), // ""
QT_MOC_LITERAL(3, 28, 23), // "subSessionCloseCanceled"
QT_MOC_LITERAL(4, 52, 16), // "subSessionOpened"
QT_MOC_LITERAL(5, 69, 7), // "cleanUp"
QT_MOC_LITERAL(6, 77, 13), // "newConnection"
QT_MOC_LITERAL(7, 91, 6), // "socket"
QT_MOC_LITERAL(8, 98, 11), // "processData"
QT_MOC_LITERAL(9, 110, 17), // "protectionTimeout"
QT_MOC_LITERAL(10, 128, 11), // "timeoutQuit"
QT_MOC_LITERAL(11, 140, 13), // "timeoutWMQuit"
QT_MOC_LITERAL(12, 154, 16), // "kcmPhase1Timeout"
QT_MOC_LITERAL(13, 171, 16), // "kcmPhase2Timeout"
QT_MOC_LITERAL(14, 188, 22), // "pendingShutdownTimeout"
QT_MOC_LITERAL(15, 211, 10), // "autoStart0"
QT_MOC_LITERAL(16, 222, 10), // "autoStart1"
QT_MOC_LITERAL(17, 233, 10), // "autoStart2"
QT_MOC_LITERAL(18, 244, 14), // "tryRestoreNext"
QT_MOC_LITERAL(19, 259, 21), // "startupSuspendTimeout"
QT_MOC_LITERAL(20, 281, 15), // "wmProcessChange"
QT_MOC_LITERAL(21, 297, 14), // "autoStart0Done"
QT_MOC_LITERAL(22, 312, 14), // "autoStart1Done"
QT_MOC_LITERAL(23, 327, 14), // "autoStart2Done"
QT_MOC_LITERAL(24, 342, 13), // "kcmPhase1Done"
QT_MOC_LITERAL(25, 356, 13), // "kcmPhase2Done"
QT_MOC_LITERAL(26, 370, 13), // "defaultLogout"
QT_MOC_LITERAL(27, 384, 25), // "logoutWithoutConfirmation"
QT_MOC_LITERAL(28, 410, 23), // "haltWithoutConfirmation"
QT_MOC_LITERAL(29, 434, 25), // "rebootWithoutConfirmation"
QT_MOC_LITERAL(30, 460, 6), // "logout"
QT_MOC_LITERAL(31, 467, 11), // "canShutdown"
QT_MOC_LITERAL(32, 479, 14), // "isShuttingDown"
QT_MOC_LITERAL(33, 494, 14), // "currentSession"
QT_MOC_LITERAL(34, 509, 18), // "saveCurrentSession"
QT_MOC_LITERAL(35, 528, 20), // "saveCurrentSessionAs"
QT_MOC_LITERAL(36, 549, 11), // "sessionList"
QT_MOC_LITERAL(37, 561, 9), // "wmChanged"
QT_MOC_LITERAL(38, 571, 14), // "saveSubSession"
QT_MOC_LITERAL(39, 586, 4), // "name"
QT_MOC_LITERAL(40, 591, 12), // "saveAndClose"
QT_MOC_LITERAL(41, 604, 8), // "saveOnly"
QT_MOC_LITERAL(42, 613, 17), // "restoreSubSession"
QT_MOC_LITERAL(43, 631, 20) // "openSwitchUserDialog"

    },
    "KSMServer\0subSessionClosed\0\0"
    "subSessionCloseCanceled\0subSessionOpened\0"
    "cleanUp\0newConnection\0socket\0processData\0"
    "protectionTimeout\0timeoutQuit\0"
    "timeoutWMQuit\0kcmPhase1Timeout\0"
    "kcmPhase2Timeout\0pendingShutdownTimeout\0"
    "autoStart0\0autoStart1\0autoStart2\0"
    "tryRestoreNext\0startupSuspendTimeout\0"
    "wmProcessChange\0autoStart0Done\0"
    "autoStart1Done\0autoStart2Done\0"
    "kcmPhase1Done\0kcmPhase2Done\0defaultLogout\0"
    "logoutWithoutConfirmation\0"
    "haltWithoutConfirmation\0"
    "rebootWithoutConfirmation\0logout\0"
    "canShutdown\0isShuttingDown\0currentSession\0"
    "saveCurrentSession\0saveCurrentSessionAs\0"
    "sessionList\0wmChanged\0saveSubSession\0"
    "name\0saveAndClose\0saveOnly\0restoreSubSession\0"
    "openSwitchUserDialog"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KSMServer[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,  209,    2, 0x06 /* Public */,
       3,    0,  210,    2, 0x06 /* Public */,
       4,    0,  211,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       5,    0,  212,    2, 0x0a /* Public */,
       6,    1,  213,    2, 0x08 /* Private */,
       8,    1,  216,    2, 0x08 /* Private */,
       9,    0,  219,    2, 0x08 /* Private */,
      10,    0,  220,    2, 0x08 /* Private */,
      11,    0,  221,    2, 0x08 /* Private */,
      12,    0,  222,    2, 0x08 /* Private */,
      13,    0,  223,    2, 0x08 /* Private */,
      14,    0,  224,    2, 0x08 /* Private */,
      15,    0,  225,    2, 0x08 /* Private */,
      16,    0,  226,    2, 0x08 /* Private */,
      17,    0,  227,    2, 0x08 /* Private */,
      18,    0,  228,    2, 0x08 /* Private */,
      19,    0,  229,    2, 0x08 /* Private */,
      20,    0,  230,    2, 0x08 /* Private */,
      21,    0,  231,    2, 0x08 /* Private */,
      22,    0,  232,    2, 0x08 /* Private */,
      23,    0,  233,    2, 0x08 /* Private */,
      24,    0,  234,    2, 0x08 /* Private */,
      25,    0,  235,    2, 0x08 /* Private */,
      26,    0,  236,    2, 0x08 /* Private */,
      27,    0,  237,    2, 0x08 /* Private */,
      28,    0,  238,    2, 0x08 /* Private */,
      29,    0,  239,    2, 0x08 /* Private */,
      30,    3,  240,    2, 0x0a /* Public */,
      31,    0,  247,    2, 0x0a /* Public */,
      32,    0,  248,    2, 0x0a /* Public */,
      33,    0,  249,    2, 0x0a /* Public */,
      34,    0,  250,    2, 0x0a /* Public */,
      35,    1,  251,    2, 0x0a /* Public */,
      36,    0,  254,    2, 0x0a /* Public */,
      37,    0,  255,    2, 0x0a /* Public */,
      38,    3,  256,    2, 0x0a /* Public */,
      38,    2,  263,    2, 0x2a /* Public | MethodCloned */,
      42,    1,  268,    2, 0x0a /* Public */,
      43,    0,  271,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,    7,
    QMetaType::Void, QMetaType::Int,    7,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int,    2,    2,    2,
    QMetaType::Bool,
    QMetaType::Bool,
    QMetaType::QString,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,    2,
    QMetaType::QStringList,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString, QMetaType::QStringList, QMetaType::QStringList,   39,   40,   41,
    QMetaType::Void, QMetaType::QString, QMetaType::QStringList,   39,   40,
    QMetaType::Void, QMetaType::QString,   39,
    QMetaType::Void,

       0        // eod
};

void KSMServer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KSMServer *_t = static_cast<KSMServer *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->subSessionClosed(); break;
        case 1: _t->subSessionCloseCanceled(); break;
        case 2: _t->subSessionOpened(); break;
        case 3: _t->cleanUp(); break;
        case 4: _t->newConnection((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 5: _t->processData((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 6: _t->protectionTimeout(); break;
        case 7: _t->timeoutQuit(); break;
        case 8: _t->timeoutWMQuit(); break;
        case 9: _t->kcmPhase1Timeout(); break;
        case 10: _t->kcmPhase2Timeout(); break;
        case 11: _t->pendingShutdownTimeout(); break;
        case 12: _t->autoStart0(); break;
        case 13: _t->autoStart1(); break;
        case 14: _t->autoStart2(); break;
        case 15: _t->tryRestoreNext(); break;
        case 16: _t->startupSuspendTimeout(); break;
        case 17: _t->wmProcessChange(); break;
        case 18: _t->autoStart0Done(); break;
        case 19: _t->autoStart1Done(); break;
        case 20: _t->autoStart2Done(); break;
        case 21: _t->kcmPhase1Done(); break;
        case 22: _t->kcmPhase2Done(); break;
        case 23: _t->defaultLogout(); break;
        case 24: _t->logoutWithoutConfirmation(); break;
        case 25: _t->haltWithoutConfirmation(); break;
        case 26: _t->rebootWithoutConfirmation(); break;
        case 27: _t->logout((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 28: { bool _r = _t->canShutdown();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 29: { bool _r = _t->isShuttingDown();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 30: { QString _r = _t->currentSession();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 31: _t->saveCurrentSession(); break;
        case 32: _t->saveCurrentSessionAs((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 33: { QStringList _r = _t->sessionList();
            if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = std::move(_r); }  break;
        case 34: _t->wmChanged(); break;
        case 35: _t->saveSubSession((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< QStringList(*)>(_a[2])),(*reinterpret_cast< QStringList(*)>(_a[3]))); break;
        case 36: _t->saveSubSession((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< QStringList(*)>(_a[2]))); break;
        case 37: _t->restoreSubSession((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 38: _t->openSwitchUserDialog(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (KSMServer::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KSMServer::subSessionClosed)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (KSMServer::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KSMServer::subSessionCloseCanceled)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (KSMServer::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KSMServer::subSessionOpened)) {
                *result = 2;
                return;
            }
        }
    }
}

const QMetaObject KSMServer::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KSMServer.data,
      qt_meta_data_KSMServer,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

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

// SIGNAL 1
void KSMServer::subSessionCloseCanceled()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void KSMServer::subSessionOpened()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
