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

#include "../../../src/kactivities-5.12.0/src/imports/resourcemodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'resourcemodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.4.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
struct qt_meta_stringdata_KActivities__Imports__ResourceModel_t {
    QByteArrayData data[40];
    char stringdata[585];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KActivities__Imports__ResourceModel_t, stringdata) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KActivities__Imports__ResourceModel_t qt_meta_stringdata_KActivities__Imports__ResourceModel = {
    {
QT_MOC_LITERAL(0, 0, 35), // "KActivities::Imports::Resourc..."
QT_MOC_LITERAL(1, 36, 22), // "shownActivitiesChanged"
QT_MOC_LITERAL(2, 59, 0), // ""
QT_MOC_LITERAL(3, 60, 18), // "shownAgentsChanged"
QT_MOC_LITERAL(4, 79, 22), // "linkResourceToActivity"
QT_MOC_LITERAL(5, 102, 8), // "resource"
QT_MOC_LITERAL(6, 111, 8), // "QJSValue"
QT_MOC_LITERAL(7, 120, 8), // "callback"
QT_MOC_LITERAL(8, 129, 8), // "activity"
QT_MOC_LITERAL(9, 138, 5), // "agent"
QT_MOC_LITERAL(10, 144, 26), // "unlinkResourceFromActivity"
QT_MOC_LITERAL(11, 171, 6), // "agents"
QT_MOC_LITERAL(12, 178, 10), // "activities"
QT_MOC_LITERAL(13, 189, 26), // "isResourceLinkedToActivity"
QT_MOC_LITERAL(14, 216, 18), // "setShownActivities"
QT_MOC_LITERAL(15, 235, 15), // "shownActivities"
QT_MOC_LITERAL(16, 251, 14), // "setShownAgents"
QT_MOC_LITERAL(17, 266, 11), // "shownAgents"
QT_MOC_LITERAL(18, 278, 18), // "defaultItemsConfig"
QT_MOC_LITERAL(19, 297, 21), // "setDefaultItemsConfig"
QT_MOC_LITERAL(20, 319, 8), // "setOrder"
QT_MOC_LITERAL(21, 328, 9), // "resources"
QT_MOC_LITERAL(22, 338, 4), // "move"
QT_MOC_LITERAL(23, 343, 10), // "sourceItem"
QT_MOC_LITERAL(24, 354, 15), // "destinationItem"
QT_MOC_LITERAL(25, 370, 9), // "sortItems"
QT_MOC_LITERAL(26, 380, 13), // "Qt::SortOrder"
QT_MOC_LITERAL(27, 394, 9), // "sortOrder"
QT_MOC_LITERAL(28, 404, 6), // "config"
QT_MOC_LITERAL(29, 411, 12), // "KConfigGroup"
QT_MOC_LITERAL(30, 424, 5), // "count"
QT_MOC_LITERAL(31, 430, 9), // "displayAt"
QT_MOC_LITERAL(32, 440, 3), // "row"
QT_MOC_LITERAL(33, 444, 10), // "resourceAt"
QT_MOC_LITERAL(34, 455, 24), // "onCurrentActivityChanged"
QT_MOC_LITERAL(35, 480, 26), // "onResourceLinkedToActivity"
QT_MOC_LITERAL(36, 507, 15), // "initiatingAgent"
QT_MOC_LITERAL(37, 523, 17), // "targettedResource"
QT_MOC_LITERAL(38, 541, 12), // "usedActivity"
QT_MOC_LITERAL(39, 554, 30) // "onResourceUnlinkedFromActivity"

    },
    "KActivities::Imports::ResourceModel\0"
    "shownActivitiesChanged\0\0shownAgentsChanged\0"
    "linkResourceToActivity\0resource\0"
    "QJSValue\0callback\0activity\0agent\0"
    "unlinkResourceFromActivity\0agents\0"
    "activities\0isResourceLinkedToActivity\0"
    "setShownActivities\0shownActivities\0"
    "setShownAgents\0shownAgents\0"
    "defaultItemsConfig\0setDefaultItemsConfig\0"
    "setOrder\0resources\0move\0sourceItem\0"
    "destinationItem\0sortItems\0Qt::SortOrder\0"
    "sortOrder\0config\0KConfigGroup\0count\0"
    "displayAt\0row\0resourceAt\0"
    "onCurrentActivityChanged\0"
    "onResourceLinkedToActivity\0initiatingAgent\0"
    "targettedResource\0usedActivity\0"
    "onResourceUnlinkedFromActivity"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KActivities__Imports__ResourceModel[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,  159,    2, 0x06 /* Public */,
       3,    0,  160,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       4,    2,  161,    2, 0x0a /* Public */,
       4,    3,  166,    2, 0x0a /* Public */,
       4,    4,  173,    2, 0x0a /* Public */,
      10,    2,  182,    2, 0x0a /* Public */,
      10,    3,  187,    2, 0x0a /* Public */,
      10,    4,  194,    2, 0x0a /* Public */,
      10,    4,  203,    2, 0x0a /* Public */,
      13,    1,  212,    2, 0x0a /* Public */,
      13,    2,  215,    2, 0x0a /* Public */,
      13,    3,  220,    2, 0x0a /* Public */,
      13,    3,  227,    2, 0x0a /* Public */,
      14,    1,  234,    2, 0x0a /* Public */,
      15,    0,  237,    2, 0x0a /* Public */,
      16,    1,  238,    2, 0x0a /* Public */,
      17,    0,  241,    2, 0x0a /* Public */,
      18,    0,  242,    2, 0x0a /* Public */,
      19,    1,  243,    2, 0x0a /* Public */,
      20,    1,  246,    2, 0x0a /* Public */,
      22,    2,  249,    2, 0x0a /* Public */,
      25,    1,  254,    2, 0x0a /* Public */,
      28,    0,  257,    2, 0x0a /* Public */,
      30,    0,  258,    2, 0x0a /* Public */,
      31,    1,  259,    2, 0x0a /* Public */,
      33,    1,  262,    2, 0x0a /* Public */,
      34,    1,  265,    2, 0x08 /* Private */,
      35,    3,  268,    2, 0x08 /* Private */,
      39,    3,  275,    2, 0x08 /* Private */,

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

 // slots: parameters
    QMetaType::Void, QMetaType::QString, 0x80000000 | 6,    5,    7,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, 0x80000000 | 6,    5,    8,    7,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString, 0x80000000 | 6,    9,    5,    8,    7,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 6,    5,    7,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, 0x80000000 | 6,    5,    8,    7,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString, 0x80000000 | 6,    9,    5,    8,    7,
    QMetaType::Void, QMetaType::QStringList, QMetaType::QString, QMetaType::QStringList, 0x80000000 | 6,   11,    5,   12,    7,
    QMetaType::Bool, QMetaType::QString,    5,
    QMetaType::Bool, QMetaType::QString, QMetaType::QString,    5,    8,
    QMetaType::Bool, QMetaType::QString, QMetaType::QString, QMetaType::QString,    9,    5,    8,
    QMetaType::Bool, QMetaType::QStringList, QMetaType::QString, QMetaType::QStringList,   11,    5,   12,
    QMetaType::Void, QMetaType::QString,   12,
    QMetaType::QString,
    QMetaType::Void, QMetaType::QString,   11,
    QMetaType::QString,
    QMetaType::QString,
    QMetaType::Void, QMetaType::QString,   18,
    QMetaType::Void, QMetaType::QStringList,   21,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,   23,   24,
    QMetaType::Void, 0x80000000 | 26,   27,
    0x80000000 | 29,
    QMetaType::Int,
    QMetaType::QString, QMetaType::Int,   32,
    QMetaType::QString, QMetaType::Int,   32,
    QMetaType::Void, QMetaType::QString,    8,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString,   36,   37,   38,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString,   36,   37,   38,

 // properties: name, type, flags
      15, QMetaType::QString, 0x00495103,
      17, QMetaType::QString, 0x00495103,
      18, QMetaType::QString, 0x00095103,

 // properties: notify_signal_id
       0,
       1,
       0,

       0        // eod
};

void KActivities::Imports::ResourceModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        ResourceModel *_t = static_cast<ResourceModel *>(_o);
        switch (_id) {
        case 0: _t->shownActivitiesChanged(); break;
        case 1: _t->shownAgentsChanged(); break;
        case 2: _t->linkResourceToActivity((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QJSValue(*)>(_a[2]))); break;
        case 3: _t->linkResourceToActivity((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QJSValue(*)>(_a[3]))); break;
        case 4: _t->linkResourceToActivity((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3])),(*reinterpret_cast< const QJSValue(*)>(_a[4]))); break;
        case 5: _t->unlinkResourceFromActivity((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QJSValue(*)>(_a[2]))); break;
        case 6: _t->unlinkResourceFromActivity((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QJSValue(*)>(_a[3]))); break;
        case 7: _t->unlinkResourceFromActivity((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3])),(*reinterpret_cast< const QJSValue(*)>(_a[4]))); break;
        case 8: _t->unlinkResourceFromActivity((*reinterpret_cast< const QStringList(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QStringList(*)>(_a[3])),(*reinterpret_cast< const QJSValue(*)>(_a[4]))); break;
        case 9: { bool _r = _t->isResourceLinkedToActivity((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 10: { bool _r = _t->isResourceLinkedToActivity((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 11: { bool _r = _t->isResourceLinkedToActivity((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 12: { bool _r = _t->isResourceLinkedToActivity((*reinterpret_cast< const QStringList(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QStringList(*)>(_a[3])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 13: _t->setShownActivities((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 14: { QString _r = _t->shownActivities();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
        case 15: _t->setShownAgents((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 16: { QString _r = _t->shownAgents();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
        case 17: { QString _r = _t->defaultItemsConfig();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
        case 18: _t->setDefaultItemsConfig((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 19: _t->setOrder((*reinterpret_cast< const QStringList(*)>(_a[1]))); break;
        case 20: _t->move((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 21: _t->sortItems((*reinterpret_cast< Qt::SortOrder(*)>(_a[1]))); break;
        case 22: { KConfigGroup _r = _t->config();
            if (_a[0]) *reinterpret_cast< KConfigGroup*>(_a[0]) = _r; }  break;
        case 23: { int _r = _t->count();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; }  break;
        case 24: { QString _r = _t->displayAt((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
        case 25: { QString _r = _t->resourceAt((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
        case 26: _t->onCurrentActivityChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 27: _t->onResourceLinkedToActivity((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        case 28: _t->onResourceUnlinkedFromActivity((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 2:
            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 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 3:
                *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 2:
                *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 3:
                *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 3:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QJSValue >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (ResourceModel::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ResourceModel::shownActivitiesChanged)) {
                *result = 0;
            }
        }
        {
            typedef void (ResourceModel::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ResourceModel::shownAgentsChanged)) {
                *result = 1;
            }
        }
    }
}

const QMetaObject KActivities::Imports::ResourceModel::staticMetaObject = {
    { &QSortFilterProxyModel::staticMetaObject, qt_meta_stringdata_KActivities__Imports__ResourceModel.data,
      qt_meta_data_KActivities__Imports__ResourceModel,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *KActivities::Imports::ResourceModel::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_KActivities__Imports__ResourceModel.stringdata))
        return static_cast<void*>(const_cast< ResourceModel*>(this));
    return QSortFilterProxyModel::qt_metacast(_clname);
}

int KActivities::Imports::ResourceModel::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 < 29)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 29;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 29)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 29;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = shownActivities(); break;
        case 1: *reinterpret_cast< QString*>(_v) = shownAgents(); break;
        case 2: *reinterpret_cast< QString*>(_v) = defaultItemsConfig(); break;
        default: break;
        }
        _id -= 3;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: setShownActivities(*reinterpret_cast< QString*>(_v)); break;
        case 1: setShownAgents(*reinterpret_cast< QString*>(_v)); break;
        case 2: setDefaultItemsConfig(*reinterpret_cast< QString*>(_v)); break;
        default: break;
        }
        _id -= 3;
    } else if (_c == QMetaObject::ResetProperty) {
        _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;
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        if (_id < 3)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 3;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void KActivities::Imports::ResourceModel::shownActivitiesChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
}

// SIGNAL 1
void KActivities::Imports::ResourceModel::shownAgentsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE
