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

#include "../../src/artikulate-17.04.3/src/models/coursemodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'coursemodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.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_CourseModel_t {
    QByteArrayData data[20];
    char stringdata0[285];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_CourseModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_CourseModel_t qt_meta_stringdata_CourseModel = {
    {
QT_MOC_LITERAL(0, 0, 11), // "CourseModel"
QT_MOC_LITERAL(1, 12, 13), // "courseChanged"
QT_MOC_LITERAL(2, 26, 0), // ""
QT_MOC_LITERAL(3, 27, 5), // "index"
QT_MOC_LITERAL(4, 33, 22), // "resourceManagerChanged"
QT_MOC_LITERAL(5, 56, 15), // "languageChanged"
QT_MOC_LITERAL(6, 72, 15), // "rowCountChanged"
QT_MOC_LITERAL(7, 88, 30), // "onCourseResourceAboutToBeAdded"
QT_MOC_LITERAL(8, 119, 15), // "CourseResource*"
QT_MOC_LITERAL(9, 135, 8), // "resource"
QT_MOC_LITERAL(10, 144, 21), // "onCourseResourceAdded"
QT_MOC_LITERAL(11, 166, 32), // "onCourseResourceAboutToBeRemoved"
QT_MOC_LITERAL(12, 199, 17), // "emitCourseChanged"
QT_MOC_LITERAL(13, 217, 3), // "row"
QT_MOC_LITERAL(14, 221, 6), // "course"
QT_MOC_LITERAL(15, 228, 15), // "resourceManager"
QT_MOC_LITERAL(16, 244, 16), // "ResourceManager*"
QT_MOC_LITERAL(17, 261, 8), // "language"
QT_MOC_LITERAL(18, 270, 9), // "Language*"
QT_MOC_LITERAL(19, 280, 4) // "size"

    },
    "CourseModel\0courseChanged\0\0index\0"
    "resourceManagerChanged\0languageChanged\0"
    "rowCountChanged\0onCourseResourceAboutToBeAdded\0"
    "CourseResource*\0resource\0onCourseResourceAdded\0"
    "onCourseResourceAboutToBeRemoved\0"
    "emitCourseChanged\0row\0course\0"
    "resourceManager\0ResourceManager*\0"
    "language\0Language*\0size"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_CourseModel[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       9,   14, // methods
       3,   80, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   59,    2, 0x06 /* Public */,
       4,    0,   62,    2, 0x06 /* Public */,
       5,    0,   63,    2, 0x06 /* Public */,
       6,    0,   64,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       7,    2,   65,    2, 0x08 /* Private */,
      10,    0,   70,    2, 0x08 /* Private */,
      11,    1,   71,    2, 0x08 /* Private */,
      12,    1,   74,    2, 0x08 /* Private */,

 // methods: name, argc, parameters, tag, flags
      14,    1,   77,    2, 0x02 /* Public */,

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

 // slots: parameters
    QMetaType::Void, 0x80000000 | 8, QMetaType::Int,    9,    3,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::Void, QMetaType::Int,   13,

 // methods: parameters
    QMetaType::QVariant, QMetaType::Int,    3,

 // properties: name, type, flags
      15, 0x80000000 | 16, 0x0049510b,
      17, 0x80000000 | 18, 0x0049510b,
      19, QMetaType::Int, 0x00495001,

 // properties: notify_signal_id
       1,
       2,
       3,

       0        // eod
};

void CourseModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        CourseModel *_t = static_cast<CourseModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->courseChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: _t->resourceManagerChanged(); break;
        case 2: _t->languageChanged(); break;
        case 3: _t->rowCountChanged(); break;
        case 4: _t->onCourseResourceAboutToBeAdded((*reinterpret_cast< CourseResource*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 5: _t->onCourseResourceAdded(); break;
        case 6: _t->onCourseResourceAboutToBeRemoved((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 7: _t->emitCourseChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 8: { QVariant _r = _t->course((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = _r; }  break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (CourseModel::*_t)(int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&CourseModel::courseChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (CourseModel::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&CourseModel::resourceManagerChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (CourseModel::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&CourseModel::languageChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (CourseModel::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&CourseModel::rowCountChanged)) {
                *result = 3;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        CourseModel *_t = static_cast<CourseModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< ResourceManager**>(_v) = _t->resourceManager(); break;
        case 1: *reinterpret_cast< Language**>(_v) = _t->language(); break;
        case 2: *reinterpret_cast< int*>(_v) = _t->rowCount(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        CourseModel *_t = static_cast<CourseModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setResourceManager(*reinterpret_cast< ResourceManager**>(_v)); break;
        case 1: _t->setLanguage(*reinterpret_cast< Language**>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject CourseModel::staticMetaObject = {
    { &QAbstractListModel::staticMetaObject, qt_meta_stringdata_CourseModel.data,
      qt_meta_data_CourseModel,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *CourseModel::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_CourseModel.stringdata0))
        return static_cast<void*>(const_cast< CourseModel*>(this));
    return QAbstractListModel::qt_metacast(_clname);
}

int CourseModel::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 < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 9)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 9;
    }
#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 CourseModel::courseChanged(int _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void CourseModel::resourceManagerChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
}

// SIGNAL 2
void CourseModel::languageChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
}

// SIGNAL 3
void CourseModel::rowCountChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE
