/****************************************************************************
** Meta object code from reading C++ file 'switcherbackend.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/plasma-desktop-5.8.9/imports/activitymanager/switcherbackend.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'switcherbackend.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_SwitcherBackend_t {
    QByteArrayData data[22];
    char stringdata0[379];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_SwitcherBackend_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_SwitcherBackend_t qt_meta_stringdata_SwitcherBackend = {
    {
QT_MOC_LITERAL(0, 0, 15), // "SwitcherBackend"
QT_MOC_LITERAL(1, 16, 22), // "showSwitchNotification"
QT_MOC_LITERAL(2, 39, 0), // ""
QT_MOC_LITERAL(3, 40, 2), // "id"
QT_MOC_LITERAL(4, 43, 4), // "name"
QT_MOC_LITERAL(5, 48, 4), // "icon"
QT_MOC_LITERAL(6, 53, 25), // "shouldShowSwitcherChanged"
QT_MOC_LITERAL(7, 79, 5), // "value"
QT_MOC_LITERAL(8, 85, 4), // "init"
QT_MOC_LITERAL(9, 90, 18), // "shouldShowSwitcher"
QT_MOC_LITERAL(10, 109, 21), // "setShouldShowSwitcher"
QT_MOC_LITERAL(11, 131, 22), // "runningActivitiesModel"
QT_MOC_LITERAL(12, 154, 19), // "QAbstractItemModel*"
QT_MOC_LITERAL(13, 174, 22), // "stoppedActivitiesModel"
QT_MOC_LITERAL(14, 197, 18), // "setCurrentActivity"
QT_MOC_LITERAL(15, 216, 8), // "activity"
QT_MOC_LITERAL(16, 225, 12), // "stopActivity"
QT_MOC_LITERAL(17, 238, 25), // "keybdSwitchToNextActivity"
QT_MOC_LITERAL(18, 264, 29), // "keybdSwitchToPreviousActivity"
QT_MOC_LITERAL(19, 294, 30), // "keybdSwitchedToAnotherActivity"
QT_MOC_LITERAL(20, 325, 28), // "showActivitySwitcherIfNeeded"
QT_MOC_LITERAL(21, 354, 24) // "onCurrentActivityChanged"

    },
    "SwitcherBackend\0showSwitchNotification\0"
    "\0id\0name\0icon\0shouldShowSwitcherChanged\0"
    "value\0init\0shouldShowSwitcher\0"
    "setShouldShowSwitcher\0runningActivitiesModel\0"
    "QAbstractItemModel*\0stoppedActivitiesModel\0"
    "setCurrentActivity\0activity\0stopActivity\0"
    "keybdSwitchToNextActivity\0"
    "keybdSwitchToPreviousActivity\0"
    "keybdSwitchedToAnotherActivity\0"
    "showActivitySwitcherIfNeeded\0"
    "onCurrentActivityChanged"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_SwitcherBackend[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    3,   84,    2, 0x06 /* Public */,
       6,    1,   91,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       8,    0,   94,    2, 0x0a /* Public */,
       9,    0,   95,    2, 0x0a /* Public */,
      10,    1,   96,    2, 0x0a /* Public */,
      11,    0,   99,    2, 0x0a /* Public */,
      13,    0,  100,    2, 0x0a /* Public */,
      14,    1,  101,    2, 0x0a /* Public */,
      16,    1,  104,    2, 0x0a /* Public */,
      17,    0,  107,    2, 0x08 /* Private */,
      18,    0,  108,    2, 0x08 /* Private */,
      19,    0,  109,    2, 0x08 /* Private */,
      20,    0,  110,    2, 0x08 /* Private */,
      21,    1,  111,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString,    3,    4,    5,
    QMetaType::Void, QMetaType::Bool,    7,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Bool,
    QMetaType::Void, QMetaType::Bool,    9,
    0x80000000 | 12,
    0x80000000 | 12,
    QMetaType::Void, QMetaType::QString,   15,
    QMetaType::Void, QMetaType::QString,   15,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,    3,

 // properties: name, type, flags
       9, QMetaType::Bool, 0x00495103,

 // properties: notify_signal_id
       1,

       0        // eod
};

void SwitcherBackend::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        SwitcherBackend *_t = static_cast<SwitcherBackend *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->showSwitchNotification((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        case 1: _t->shouldShowSwitcherChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 2: _t->init(); break;
        case 3: { bool _r = _t->shouldShowSwitcher();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 4: _t->setShouldShowSwitcher((*reinterpret_cast< const bool(*)>(_a[1]))); break;
        case 5: { QAbstractItemModel* _r = _t->runningActivitiesModel();
            if (_a[0]) *reinterpret_cast< QAbstractItemModel**>(_a[0]) = std::move(_r); }  break;
        case 6: { QAbstractItemModel* _r = _t->stoppedActivitiesModel();
            if (_a[0]) *reinterpret_cast< QAbstractItemModel**>(_a[0]) = std::move(_r); }  break;
        case 7: _t->setCurrentActivity((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 8: _t->stopActivity((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 9: _t->keybdSwitchToNextActivity(); break;
        case 10: _t->keybdSwitchToPreviousActivity(); break;
        case 11: _t->keybdSwitchedToAnotherActivity(); break;
        case 12: _t->showActivitySwitcherIfNeeded(); break;
        case 13: _t->onCurrentActivityChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (SwitcherBackend::*_t)(const QString & , const QString & , const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SwitcherBackend::showSwitchNotification)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (SwitcherBackend::*_t)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SwitcherBackend::shouldShowSwitcherChanged)) {
                *result = 1;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        SwitcherBackend *_t = static_cast<SwitcherBackend *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->shouldShowSwitcher(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        SwitcherBackend *_t = static_cast<SwitcherBackend *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setShouldShowSwitcher(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject SwitcherBackend::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_SwitcherBackend.data,
      qt_meta_data_SwitcherBackend,  qt_static_metacall, nullptr, nullptr}
};


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

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

int SwitcherBackend::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 < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 14)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 14;
    }
#ifndef QT_NO_PROPERTIES
   else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 1;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void SwitcherBackend::showSwitchNotification(const QString & _t1, const QString & _t2, const QString & _t3)
{
    void *_a[] = { 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)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void SwitcherBackend::shouldShowSwitcherChanged(bool _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
