/****************************************************************************
** Meta object code from reading C++ file 'resourcemodel.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/ktouch-17.08.3/src/models/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.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_ResourceModel_t {
    QByteArrayData data[31];
    char stringdata0[450];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_ResourceModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_ResourceModel_t qt_meta_stringdata_ResourceModel = {
    {
QT_MOC_LITERAL(0, 0, 13), // "ResourceModel"
QT_MOC_LITERAL(1, 14, 16), // "dataIndexChanged"
QT_MOC_LITERAL(2, 31, 0), // ""
QT_MOC_LITERAL(3, 32, 22), // "onCourseAboutToBeAdded"
QT_MOC_LITERAL(4, 55, 16), // "DataIndexCourse*"
QT_MOC_LITERAL(5, 72, 6), // "course"
QT_MOC_LITERAL(6, 79, 5), // "index"
QT_MOC_LITERAL(7, 85, 25), // "onCoursesAboutToBeRemoved"
QT_MOC_LITERAL(8, 111, 5), // "first"
QT_MOC_LITERAL(9, 117, 4), // "last"
QT_MOC_LITERAL(10, 122, 30), // "onKeyboardLayoutAboutToBeAdded"
QT_MOC_LITERAL(11, 153, 24), // "DataIndexKeyboardLayout*"
QT_MOC_LITERAL(12, 178, 14), // "keyboardLayout"
QT_MOC_LITERAL(13, 193, 33), // "onKeyboardLayoutsAboutToBeRem..."
QT_MOC_LITERAL(14, 227, 15), // "onResourceAdded"
QT_MOC_LITERAL(15, 243, 17), // "onResourceRemoved"
QT_MOC_LITERAL(16, 261, 15), // "emitDataChanged"
QT_MOC_LITERAL(17, 277, 3), // "row"
QT_MOC_LITERAL(18, 281, 9), // "dataIndex"
QT_MOC_LITERAL(19, 291, 10), // "DataIndex*"
QT_MOC_LITERAL(20, 302, 17), // "ResourceItemTypes"
QT_MOC_LITERAL(21, 320, 4), // "None"
QT_MOC_LITERAL(22, 325, 10), // "CourseItem"
QT_MOC_LITERAL(23, 336, 18), // "KeyboardLayoutItem"
QT_MOC_LITERAL(24, 355, 15), // "AdditionalRoles"
QT_MOC_LITERAL(25, 371, 16), // "ResourceTypeRole"
QT_MOC_LITERAL(26, 388, 8), // "DataRole"
QT_MOC_LITERAL(27, 397, 22), // "KeyboardLayoutNameRole"
QT_MOC_LITERAL(28, 420, 8), // "PathRole"
QT_MOC_LITERAL(29, 429, 9), // "IndexRole"
QT_MOC_LITERAL(30, 439, 10) // "SourceRole"

    },
    "ResourceModel\0dataIndexChanged\0\0"
    "onCourseAboutToBeAdded\0DataIndexCourse*\0"
    "course\0index\0onCoursesAboutToBeRemoved\0"
    "first\0last\0onKeyboardLayoutAboutToBeAdded\0"
    "DataIndexKeyboardLayout*\0keyboardLayout\0"
    "onKeyboardLayoutsAboutToBeRemoved\0"
    "onResourceAdded\0onResourceRemoved\0"
    "emitDataChanged\0row\0dataIndex\0DataIndex*\0"
    "ResourceItemTypes\0None\0CourseItem\0"
    "KeyboardLayoutItem\0AdditionalRoles\0"
    "ResourceTypeRole\0DataRole\0"
    "KeyboardLayoutNameRole\0PathRole\0"
    "IndexRole\0SourceRole"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_ResourceModel[] = {

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

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

 // slots: name, argc, parameters, tag, flags
       3,    2,   55,    2, 0x08 /* Private */,
       7,    2,   60,    2, 0x08 /* Private */,
      10,    2,   65,    2, 0x08 /* Private */,
      13,    2,   70,    2, 0x08 /* Private */,
      14,    0,   75,    2, 0x08 /* Private */,
      15,    0,   76,    2, 0x08 /* Private */,
      16,    1,   77,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 4, QMetaType::Int,    5,    6,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    8,    9,
    QMetaType::Void, 0x80000000 | 11, QMetaType::Int,   12,    6,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    8,    9,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,   17,

 // properties: name, type, flags
      18, 0x80000000 | 19, 0x0049510b,

 // properties: notify_signal_id
       0,

 // enums: name, flags, count, data
      20, 0x0,    3,   92,
      24, 0x0,    6,   98,

 // enum data: key, value
      21, uint(ResourceModel::None),
      22, uint(ResourceModel::CourseItem),
      23, uint(ResourceModel::KeyboardLayoutItem),
      25, uint(ResourceModel::ResourceTypeRole),
      26, uint(ResourceModel::DataRole),
      27, uint(ResourceModel::KeyboardLayoutNameRole),
      28, uint(ResourceModel::PathRole),
      29, uint(ResourceModel::IndexRole),
      30, uint(ResourceModel::SourceRole),

       0        // eod
};

void ResourceModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        ResourceModel *_t = static_cast<ResourceModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->dataIndexChanged(); break;
        case 1: _t->onCourseAboutToBeAdded((*reinterpret_cast< DataIndexCourse*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 2: _t->onCoursesAboutToBeRemoved((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 3: _t->onKeyboardLayoutAboutToBeAdded((*reinterpret_cast< DataIndexKeyboardLayout*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 4: _t->onKeyboardLayoutsAboutToBeRemoved((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 5: _t->onResourceAdded(); break;
        case 6: _t->onResourceRemoved(); break;
        case 7: _t->emitDataChanged((*reinterpret_cast< int(*)>(_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 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< DataIndexCourse* >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< DataIndexKeyboardLayout* >(); 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::dataIndexChanged)) {
                *result = 0;
                return;
            }
        }
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< DataIndex* >(); break;
        }
    }

#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        ResourceModel *_t = static_cast<ResourceModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< DataIndex**>(_v) = _t->dataIndex(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        ResourceModel *_t = static_cast<ResourceModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setDataIndex(*reinterpret_cast< DataIndex**>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject ResourceModel::staticMetaObject = {
    { &QAbstractListModel::staticMetaObject, qt_meta_stringdata_ResourceModel.data,
      qt_meta_data_ResourceModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

int ResourceModel::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 < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
#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 ResourceModel::dataIndexChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
