/****************************************************************************
** Meta object code from reading C++ file 'activitymodel.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.17)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include <memory>
#include "../../../../../kactivities-5.116.0/src/imports/activitymodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'activitymodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.17. 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_KActivities__Imports__ActivityModel_t {
    QByteArrayData data[42];
    char stringdata0[603];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KActivities__Imports__ActivityModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KActivities__Imports__ActivityModel_t qt_meta_stringdata_KActivities__Imports__ActivityModel = {
    {
QT_MOC_LITERAL(0, 0, 35), // "KActivities::Imports::Activit..."
QT_MOC_LITERAL(1, 36, 18), // "shownStatesChanged"
QT_MOC_LITERAL(2, 55, 0), // ""
QT_MOC_LITERAL(3, 56, 5), // "state"
QT_MOC_LITERAL(4, 62, 15), // "setActivityName"
QT_MOC_LITERAL(5, 78, 2), // "id"
QT_MOC_LITERAL(6, 81, 4), // "name"
QT_MOC_LITERAL(7, 86, 8), // "QJSValue"
QT_MOC_LITERAL(8, 95, 8), // "callback"
QT_MOC_LITERAL(9, 104, 22), // "setActivityDescription"
QT_MOC_LITERAL(10, 127, 11), // "description"
QT_MOC_LITERAL(11, 139, 15), // "setActivityIcon"
QT_MOC_LITERAL(12, 155, 4), // "icon"
QT_MOC_LITERAL(13, 160, 18), // "setCurrentActivity"
QT_MOC_LITERAL(14, 179, 11), // "addActivity"
QT_MOC_LITERAL(15, 191, 14), // "removeActivity"
QT_MOC_LITERAL(16, 206, 12), // "stopActivity"
QT_MOC_LITERAL(17, 219, 13), // "startActivity"
QT_MOC_LITERAL(18, 233, 14), // "setShownStates"
QT_MOC_LITERAL(19, 248, 6), // "states"
QT_MOC_LITERAL(20, 255, 11), // "shownStates"
QT_MOC_LITERAL(21, 267, 21), // "onActivityNameChanged"
QT_MOC_LITERAL(22, 289, 28), // "onActivityDescriptionChanged"
QT_MOC_LITERAL(23, 318, 21), // "onActivityIconChanged"
QT_MOC_LITERAL(24, 340, 22), // "onActivityStateChanged"
QT_MOC_LITERAL(25, 363, 24), // "KActivities::Info::State"
QT_MOC_LITERAL(26, 388, 17), // "replaceActivities"
QT_MOC_LITERAL(27, 406, 10), // "activities"
QT_MOC_LITERAL(28, 417, 15), // "onActivityAdded"
QT_MOC_LITERAL(29, 433, 13), // "notifyClients"
QT_MOC_LITERAL(30, 447, 17), // "onActivityRemoved"
QT_MOC_LITERAL(31, 465, 24), // "onCurrentActivityChanged"
QT_MOC_LITERAL(32, 490, 16), // "setServiceStatus"
QT_MOC_LITERAL(33, 507, 36), // "KActivities::Consumer::Servic..."
QT_MOC_LITERAL(34, 544, 6), // "status"
QT_MOC_LITERAL(35, 551, 5), // "State"
QT_MOC_LITERAL(36, 557, 3), // "All"
QT_MOC_LITERAL(37, 561, 7), // "Invalid"
QT_MOC_LITERAL(38, 569, 7), // "Running"
QT_MOC_LITERAL(39, 577, 8), // "Starting"
QT_MOC_LITERAL(40, 586, 7), // "Stopped"
QT_MOC_LITERAL(41, 594, 8) // "Stopping"

    },
    "KActivities::Imports::ActivityModel\0"
    "shownStatesChanged\0\0state\0setActivityName\0"
    "id\0name\0QJSValue\0callback\0"
    "setActivityDescription\0description\0"
    "setActivityIcon\0icon\0setCurrentActivity\0"
    "addActivity\0removeActivity\0stopActivity\0"
    "startActivity\0setShownStates\0states\0"
    "shownStates\0onActivityNameChanged\0"
    "onActivityDescriptionChanged\0"
    "onActivityIconChanged\0onActivityStateChanged\0"
    "KActivities::Info::State\0replaceActivities\0"
    "activities\0onActivityAdded\0notifyClients\0"
    "onActivityRemoved\0onCurrentActivityChanged\0"
    "setServiceStatus\0KActivities::Consumer::ServiceStatus\0"
    "status\0State\0All\0Invalid\0Running\0"
    "Starting\0Stopped\0Stopping"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KActivities__Imports__ActivityModel[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      21,   14, // methods
       1,  204, // properties
       1,  208, // enums/sets
       0,    0, // constructors
       0,       // flags
       1,       // signalCount

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

 // slots: name, argc, parameters, tag, flags
       4,    3,  122,    2, 0x0a /* Public */,
       9,    3,  129,    2, 0x0a /* Public */,
      11,    3,  136,    2, 0x0a /* Public */,
      13,    2,  143,    2, 0x0a /* Public */,
      14,    2,  148,    2, 0x0a /* Public */,
      15,    2,  153,    2, 0x0a /* Public */,
      16,    2,  158,    2, 0x0a /* Public */,
      17,    2,  163,    2, 0x0a /* Public */,
      18,    1,  168,    2, 0x0a /* Public */,
      20,    0,  171,    2, 0x0a /* Public */,
      21,    1,  172,    2, 0x08 /* Private */,
      22,    1,  175,    2, 0x08 /* Private */,
      23,    1,  178,    2, 0x08 /* Private */,
      24,    1,  181,    2, 0x08 /* Private */,
      26,    1,  184,    2, 0x08 /* Private */,
      28,    2,  187,    2, 0x08 /* Private */,
      28,    1,  192,    2, 0x28 /* Private | MethodCloned */,
      30,    1,  195,    2, 0x08 /* Private */,
      31,    1,  198,    2, 0x08 /* Private */,
      32,    1,  201,    2, 0x08 /* Private */,

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

 // slots: parameters
    QMetaType::Void, QMetaType::QString, QMetaType::QString, 0x80000000 | 7,    5,    6,    8,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, 0x80000000 | 7,    5,   10,    8,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, 0x80000000 | 7,    5,   12,    8,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 7,    5,    8,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 7,    6,    8,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 7,    5,    8,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 7,    5,    8,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 7,    5,    8,
    QMetaType::Void, QMetaType::QString,   19,
    QMetaType::QString,
    QMetaType::Void, QMetaType::QString,    6,
    QMetaType::Void, QMetaType::QString,   10,
    QMetaType::Void, QMetaType::QString,   12,
    QMetaType::Void, 0x80000000 | 25,    3,
    QMetaType::Void, QMetaType::QStringList,   27,
    QMetaType::Void, QMetaType::QString, QMetaType::Bool,    5,   29,
    QMetaType::Void, QMetaType::QString,    5,
    QMetaType::Void, QMetaType::QString,    5,
    QMetaType::Void, QMetaType::QString,    5,
    QMetaType::Void, 0x80000000 | 33,   34,

 // properties: name, type, flags
      20, QMetaType::QString, 0x00495103,

 // properties: notify_signal_id
       0,

 // enums: name, alias, flags, count, data
      35,   35, 0x0,    6,  213,

 // enum data: key, value
      36, uint(KActivities::Imports::ActivityModel::All),
      37, uint(KActivities::Imports::ActivityModel::Invalid),
      38, uint(KActivities::Imports::ActivityModel::Running),
      39, uint(KActivities::Imports::ActivityModel::Starting),
      40, uint(KActivities::Imports::ActivityModel::Stopped),
      41, uint(KActivities::Imports::ActivityModel::Stopping),

       0        // eod
};

void KActivities::Imports::ActivityModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<ActivityModel *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->shownStatesChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 1: _t->setActivityName((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QJSValue(*)>(_a[3]))); break;
        case 2: _t->setActivityDescription((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QJSValue(*)>(_a[3]))); break;
        case 3: _t->setActivityIcon((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QJSValue(*)>(_a[3]))); break;
        case 4: _t->setCurrentActivity((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QJSValue(*)>(_a[2]))); break;
        case 5: _t->addActivity((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QJSValue(*)>(_a[2]))); break;
        case 6: _t->removeActivity((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QJSValue(*)>(_a[2]))); break;
        case 7: _t->stopActivity((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QJSValue(*)>(_a[2]))); break;
        case 8: _t->startActivity((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QJSValue(*)>(_a[2]))); break;
        case 9: _t->setShownStates((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 10: { QString _r = _t->shownStates();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 11: _t->onActivityNameChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 12: _t->onActivityDescriptionChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 13: _t->onActivityIconChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 14: _t->onActivityStateChanged((*reinterpret_cast< KActivities::Info::State(*)>(_a[1]))); break;
        case 15: _t->replaceActivities((*reinterpret_cast< const QStringList(*)>(_a[1]))); break;
        case 16: _t->onActivityAdded((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 17: _t->onActivityAdded((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 18: _t->onActivityRemoved((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 19: _t->onCurrentActivityChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 20: _t->setServiceStatus((*reinterpret_cast< KActivities::Consumer::ServiceStatus(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 2:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QJSValue >(); break;
            }
            break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 2:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QJSValue >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 2:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QJSValue >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QJSValue >(); break;
            }
            break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QJSValue >(); break;
            }
            break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QJSValue >(); break;
            }
            break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QJSValue >(); break;
            }
            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< QJSValue >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (ActivityModel::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ActivityModel::shownStatesChanged)) {
                *result = 0;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<ActivityModel *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = _t->shownStates(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<ActivityModel *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setShownStates(*reinterpret_cast< QString*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject KActivities::Imports::ActivityModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractListModel::staticMetaObject>(),
    qt_meta_stringdata_KActivities__Imports__ActivityModel.data,
    qt_meta_data_KActivities__Imports__ActivityModel,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *KActivities::Imports::ActivityModel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_KActivities__Imports__ActivityModel.stringdata0))
        return static_cast<void*>(this);
    return QAbstractListModel::qt_metacast(_clname);
}

int KActivities::Imports::ActivityModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractListModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 21)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 21;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 21)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 21;
    }
#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 KActivities::Imports::ActivityModel::shownStatesChanged(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
