/****************************************************************************
** Meta object code from reading C++ file 'virtualdesktops.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/kwin-5.4.3/virtualdesktops.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'virtualdesktops.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_KWin__VirtualDesktopManager_t {
    QByteArrayData data[30];
    char stringdata0[370];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KWin__VirtualDesktopManager_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KWin__VirtualDesktopManager_t qt_meta_stringdata_KWin__VirtualDesktopManager = {
    {
QT_MOC_LITERAL(0, 0, 27), // "KWin::VirtualDesktopManager"
QT_MOC_LITERAL(1, 28, 12), // "countChanged"
QT_MOC_LITERAL(2, 41, 0), // ""
QT_MOC_LITERAL(3, 42, 13), // "previousCount"
QT_MOC_LITERAL(4, 56, 8), // "newCount"
QT_MOC_LITERAL(5, 65, 15), // "desktopsRemoved"
QT_MOC_LITERAL(6, 81, 14), // "currentChanged"
QT_MOC_LITERAL(7, 96, 15), // "previousDesktop"
QT_MOC_LITERAL(8, 112, 10), // "newDesktop"
QT_MOC_LITERAL(9, 123, 13), // "layoutChanged"
QT_MOC_LITERAL(10, 137, 7), // "columns"
QT_MOC_LITERAL(11, 145, 4), // "rows"
QT_MOC_LITERAL(12, 150, 31), // "navigationWrappingAroundChanged"
QT_MOC_LITERAL(13, 182, 8), // "setCount"
QT_MOC_LITERAL(14, 191, 5), // "count"
QT_MOC_LITERAL(15, 197, 10), // "setCurrent"
QT_MOC_LITERAL(16, 208, 7), // "current"
QT_MOC_LITERAL(17, 216, 12), // "updateLayout"
QT_MOC_LITERAL(18, 229, 27), // "setNavigationWrappingAround"
QT_MOC_LITERAL(19, 257, 7), // "enabled"
QT_MOC_LITERAL(20, 265, 4), // "load"
QT_MOC_LITERAL(21, 270, 4), // "save"
QT_MOC_LITERAL(22, 275, 12), // "slotSwitchTo"
QT_MOC_LITERAL(23, 288, 8), // "slotNext"
QT_MOC_LITERAL(24, 297, 12), // "slotPrevious"
QT_MOC_LITERAL(25, 310, 9), // "slotRight"
QT_MOC_LITERAL(26, 320, 8), // "slotLeft"
QT_MOC_LITERAL(27, 329, 6), // "slotUp"
QT_MOC_LITERAL(28, 336, 8), // "slotDown"
QT_MOC_LITERAL(29, 345, 24) // "navigationWrappingAround"

    },
    "KWin::VirtualDesktopManager\0countChanged\0"
    "\0previousCount\0newCount\0desktopsRemoved\0"
    "currentChanged\0previousDesktop\0"
    "newDesktop\0layoutChanged\0columns\0rows\0"
    "navigationWrappingAroundChanged\0"
    "setCount\0count\0setCurrent\0current\0"
    "updateLayout\0setNavigationWrappingAround\0"
    "enabled\0load\0save\0slotSwitchTo\0slotNext\0"
    "slotPrevious\0slotRight\0slotLeft\0slotUp\0"
    "slotDown\0navigationWrappingAround"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KWin__VirtualDesktopManager[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    2,  104,    2, 0x06 /* Public */,
       5,    1,  109,    2, 0x06 /* Public */,
       6,    2,  112,    2, 0x06 /* Public */,
       9,    2,  117,    2, 0x06 /* Public */,
      12,    0,  122,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      13,    1,  123,    2, 0x0a /* Public */,
      15,    1,  126,    2, 0x0a /* Public */,
      17,    0,  129,    2, 0x0a /* Public */,
      18,    1,  130,    2, 0x0a /* Public */,
      20,    0,  133,    2, 0x0a /* Public */,
      21,    0,  134,    2, 0x0a /* Public */,
      22,    0,  135,    2, 0x08 /* Private */,
      23,    0,  136,    2, 0x08 /* Private */,
      24,    0,  137,    2, 0x08 /* Private */,
      25,    0,  138,    2, 0x08 /* Private */,
      26,    0,  139,    2, 0x08 /* Private */,
      27,    0,  140,    2, 0x08 /* Private */,
      28,    0,  141,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::UInt, QMetaType::UInt,    3,    4,
    QMetaType::Void, QMetaType::UInt,    3,
    QMetaType::Void, QMetaType::UInt, QMetaType::UInt,    7,    8,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,   10,   11,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, QMetaType::UInt,   14,
    QMetaType::Bool, QMetaType::UInt,   16,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   19,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

 // properties: name, type, flags
      14, QMetaType::UInt, 0x00495103,
      16, QMetaType::UInt, 0x00495103,
      29, QMetaType::Bool, 0x00495103,

 // properties: notify_signal_id
       0,
       2,
       4,

       0        // eod
};

void KWin::VirtualDesktopManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        VirtualDesktopManager *_t = static_cast<VirtualDesktopManager *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->countChanged((*reinterpret_cast< uint(*)>(_a[1])),(*reinterpret_cast< uint(*)>(_a[2]))); break;
        case 1: _t->desktopsRemoved((*reinterpret_cast< uint(*)>(_a[1]))); break;
        case 2: _t->currentChanged((*reinterpret_cast< uint(*)>(_a[1])),(*reinterpret_cast< uint(*)>(_a[2]))); break;
        case 3: _t->layoutChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 4: _t->navigationWrappingAroundChanged(); break;
        case 5: _t->setCount((*reinterpret_cast< uint(*)>(_a[1]))); break;
        case 6: { bool _r = _t->setCurrent((*reinterpret_cast< uint(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 7: _t->updateLayout(); break;
        case 8: _t->setNavigationWrappingAround((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 9: _t->load(); break;
        case 10: _t->save(); break;
        case 11: _t->slotSwitchTo(); break;
        case 12: _t->slotNext(); break;
        case 13: _t->slotPrevious(); break;
        case 14: _t->slotRight(); break;
        case 15: _t->slotLeft(); break;
        case 16: _t->slotUp(); break;
        case 17: _t->slotDown(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (VirtualDesktopManager::*_t)(uint , uint );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&VirtualDesktopManager::countChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (VirtualDesktopManager::*_t)(uint );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&VirtualDesktopManager::desktopsRemoved)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (VirtualDesktopManager::*_t)(uint , uint );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&VirtualDesktopManager::currentChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (VirtualDesktopManager::*_t)(int , int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&VirtualDesktopManager::layoutChanged)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (VirtualDesktopManager::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&VirtualDesktopManager::navigationWrappingAroundChanged)) {
                *result = 4;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        VirtualDesktopManager *_t = static_cast<VirtualDesktopManager *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< uint*>(_v) = _t->count(); break;
        case 1: *reinterpret_cast< uint*>(_v) = _t->current(); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->isNavigationWrappingAround(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        VirtualDesktopManager *_t = static_cast<VirtualDesktopManager *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setCount(*reinterpret_cast< uint*>(_v)); break;
        case 1: _t->setCurrent(*reinterpret_cast< uint*>(_v)); break;
        case 2: _t->setNavigationWrappingAround(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject KWin::VirtualDesktopManager::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KWin__VirtualDesktopManager.data,
      qt_meta_data_KWin__VirtualDesktopManager,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KWin::VirtualDesktopManager::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 < 18)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 18;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 18)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 18;
    }
#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 -= 3;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 3;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void KWin::VirtualDesktopManager::countChanged(uint _t1, uint _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void KWin::VirtualDesktopManager::desktopsRemoved(uint _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void KWin::VirtualDesktopManager::currentChanged(uint _t1, uint _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void KWin::VirtualDesktopManager::layoutChanged(int _t1, int _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void KWin::VirtualDesktopManager::navigationWrappingAroundChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
