/****************************************************************************
** Meta object code from reading C++ file 'sortedactivitiesmodel.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-desktop-5.8.8/imports/activitymanager/sortedactivitiesmodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QVector>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'sortedactivitiesmodel.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_SortedActivitiesModel_t {
    QByteArrayData data[28];
    char stringdata0[393];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_SortedActivitiesModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_SortedActivitiesModel_t qt_meta_stringdata_SortedActivitiesModel = {
    {
QT_MOC_LITERAL(0, 0, 21), // "SortedActivitiesModel"
QT_MOC_LITERAL(1, 22, 21), // "inhibitUpdatesChanged"
QT_MOC_LITERAL(2, 44, 0), // ""
QT_MOC_LITERAL(3, 45, 14), // "inhibitUpdates"
QT_MOC_LITERAL(4, 60, 17), // "setInhibitUpdates"
QT_MOC_LITERAL(5, 78, 18), // "sortByLastUsedTime"
QT_MOC_LITERAL(6, 97, 20), // "onBackgroundsUpdated"
QT_MOC_LITERAL(7, 118, 18), // "changedBackgrounds"
QT_MOC_LITERAL(8, 137, 24), // "onCurrentActivityChanged"
QT_MOC_LITERAL(9, 162, 15), // "currentActivity"
QT_MOC_LITERAL(10, 178, 16), // "activityIdForRow"
QT_MOC_LITERAL(11, 195, 3), // "row"
QT_MOC_LITERAL(12, 199, 18), // "activityIdForIndex"
QT_MOC_LITERAL(13, 218, 5), // "index"
QT_MOC_LITERAL(14, 224, 16), // "rowForActivityId"
QT_MOC_LITERAL(15, 241, 8), // "activity"
QT_MOC_LITERAL(16, 250, 10), // "rowChanged"
QT_MOC_LITERAL(17, 261, 12), // "QVector<int>"
QT_MOC_LITERAL(18, 274, 5), // "roles"
QT_MOC_LITERAL(19, 280, 13), // "onWindowAdded"
QT_MOC_LITERAL(20, 294, 3), // "WId"
QT_MOC_LITERAL(21, 298, 6), // "window"
QT_MOC_LITERAL(22, 305, 15), // "onWindowRemoved"
QT_MOC_LITERAL(23, 321, 15), // "onWindowChanged"
QT_MOC_LITERAL(24, 337, 15), // "NET::Properties"
QT_MOC_LITERAL(25, 353, 10), // "properties"
QT_MOC_LITERAL(26, 364, 16), // "NET::Properties2"
QT_MOC_LITERAL(27, 381, 11) // "properties2"

    },
    "SortedActivitiesModel\0inhibitUpdatesChanged\0"
    "\0inhibitUpdates\0setInhibitUpdates\0"
    "sortByLastUsedTime\0onBackgroundsUpdated\0"
    "changedBackgrounds\0onCurrentActivityChanged\0"
    "currentActivity\0activityIdForRow\0row\0"
    "activityIdForIndex\0index\0rowForActivityId\0"
    "activity\0rowChanged\0QVector<int>\0roles\0"
    "onWindowAdded\0WId\0window\0onWindowRemoved\0"
    "onWindowChanged\0NET::Properties\0"
    "properties\0NET::Properties2\0properties2"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_SortedActivitiesModel[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   74,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       3,    0,   77,    2, 0x0a /* Public */,
       4,    1,   78,    2, 0x0a /* Public */,
       6,    1,   81,    2, 0x0a /* Public */,
       8,    1,   84,    2, 0x0a /* Public */,
      10,    1,   87,    2, 0x0a /* Public */,
      12,    1,   90,    2, 0x0a /* Public */,
      14,    1,   93,    2, 0x0a /* Public */,
      16,    2,   96,    2, 0x0a /* Public */,
      19,    1,  101,    2, 0x0a /* Public */,
      22,    1,  104,    2, 0x0a /* Public */,
      23,    3,  107,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::Bool,    3,

 // slots: parameters
    QMetaType::Bool,
    QMetaType::Void, QMetaType::Bool,    5,
    QMetaType::Void, QMetaType::QStringList,    7,
    QMetaType::Void, QMetaType::QString,    9,
    QMetaType::QString, QMetaType::Int,   11,
    QMetaType::QString, QMetaType::QModelIndex,   13,
    QMetaType::Int, QMetaType::QString,   15,
    QMetaType::Void, QMetaType::Int, 0x80000000 | 17,   11,   18,
    QMetaType::Void, 0x80000000 | 20,   21,
    QMetaType::Void, 0x80000000 | 20,   21,
    QMetaType::Void, 0x80000000 | 20, 0x80000000 | 24, 0x80000000 | 26,   21,   25,   27,

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

 // properties: notify_signal_id
       0,

       0        // eod
};

void SortedActivitiesModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        SortedActivitiesModel *_t = static_cast<SortedActivitiesModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->inhibitUpdatesChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 1: { bool _r = _t->inhibitUpdates();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 2: _t->setInhibitUpdates((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 3: _t->onBackgroundsUpdated((*reinterpret_cast< const QStringList(*)>(_a[1]))); break;
        case 4: _t->onCurrentActivityChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 5: { QString _r = _t->activityIdForRow((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 6: { QString _r = _t->activityIdForIndex((*reinterpret_cast< const QModelIndex(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 7: { int _r = _t->rowForActivityId((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 8: _t->rowChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QVector<int>(*)>(_a[2]))); break;
        case 9: _t->onWindowAdded((*reinterpret_cast< WId(*)>(_a[1]))); break;
        case 10: _t->onWindowRemoved((*reinterpret_cast< WId(*)>(_a[1]))); break;
        case 11: _t->onWindowChanged((*reinterpret_cast< WId(*)>(_a[1])),(*reinterpret_cast< NET::Properties(*)>(_a[2])),(*reinterpret_cast< NET::Properties2(*)>(_a[3]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QVector<int> >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (SortedActivitiesModel::*_t)(bool );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SortedActivitiesModel::inhibitUpdatesChanged)) {
                *result = 0;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        SortedActivitiesModel *_t = static_cast<SortedActivitiesModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->inhibitUpdates(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        SortedActivitiesModel *_t = static_cast<SortedActivitiesModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setInhibitUpdates(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject SortedActivitiesModel::staticMetaObject = {
    { &QSortFilterProxyModel::staticMetaObject, qt_meta_stringdata_SortedActivitiesModel.data,
      qt_meta_data_SortedActivitiesModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

int SortedActivitiesModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QSortFilterProxyModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
#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 SortedActivitiesModel::inhibitUpdatesChanged(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
