/****************************************************************************
** Meta object code from reading C++ file 'coursefiltermodel.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/coursefiltermodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'coursefiltermodel.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_CourseFilterModel_t {
    QByteArrayData data[16];
    char stringdata0[229];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_CourseFilterModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_CourseFilterModel_t qt_meta_stringdata_CourseFilterModel = {
    {
QT_MOC_LITERAL(0, 0, 17), // "CourseFilterModel"
QT_MOC_LITERAL(1, 18, 18), // "courseModelChanged"
QT_MOC_LITERAL(2, 37, 0), // ""
QT_MOC_LITERAL(3, 38, 11), // "viewChanged"
QT_MOC_LITERAL(4, 50, 17), // "sortOptionChanged"
QT_MOC_LITERAL(5, 68, 20), // "filteredCountChanged"
QT_MOC_LITERAL(6, 89, 6), // "course"
QT_MOC_LITERAL(7, 96, 3), // "row"
QT_MOC_LITERAL(8, 100, 11), // "courseModel"
QT_MOC_LITERAL(9, 112, 12), // "CourseModel*"
QT_MOC_LITERAL(10, 125, 4), // "view"
QT_MOC_LITERAL(11, 130, 18), // "CourseResourceView"
QT_MOC_LITERAL(12, 149, 13), // "filteredCount"
QT_MOC_LITERAL(13, 163, 27), // "OnlyGetHotNewStuffResources"
QT_MOC_LITERAL(14, 191, 24), // "OnlyContributorResources"
QT_MOC_LITERAL(15, 216, 12) // "AllResources"

    },
    "CourseFilterModel\0courseModelChanged\0"
    "\0viewChanged\0sortOptionChanged\0"
    "filteredCountChanged\0course\0row\0"
    "courseModel\0CourseModel*\0view\0"
    "CourseResourceView\0filteredCount\0"
    "OnlyGetHotNewStuffResources\0"
    "OnlyContributorResources\0AllResources"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_CourseFilterModel[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       5,   14, // methods
       3,   46, // properties
       1,   58, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   39,    2, 0x06 /* Public */,
       3,    0,   40,    2, 0x06 /* Public */,
       4,    0,   41,    2, 0x06 /* Public */,
       5,    0,   42,    2, 0x06 /* Public */,

 // methods: name, argc, parameters, tag, flags
       6,    1,   43,    2, 0x02 /* Public */,

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

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

 // properties: name, type, flags
       8, 0x80000000 | 9, 0x0049510b,
      10, 0x80000000 | 11, 0x0049510b,
      12, QMetaType::Int, 0x00495001,

 // properties: notify_signal_id
       0,
       1,
       3,

 // enums: name, flags, count, data
      11, 0x0,    3,   62,

 // enum data: key, value
      13, uint(CourseFilterModel::OnlyGetHotNewStuffResources),
      14, uint(CourseFilterModel::OnlyContributorResources),
      15, uint(CourseFilterModel::AllResources),

       0        // eod
};

void CourseFilterModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        CourseFilterModel *_t = static_cast<CourseFilterModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->courseModelChanged(); break;
        case 1: _t->viewChanged(); break;
        case 2: _t->sortOptionChanged(); break;
        case 3: _t->filteredCountChanged(); break;
        case 4: { 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 (CourseFilterModel::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&CourseFilterModel::courseModelChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (CourseFilterModel::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&CourseFilterModel::viewChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (CourseFilterModel::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&CourseFilterModel::sortOptionChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (CourseFilterModel::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&CourseFilterModel::filteredCountChanged)) {
                *result = 3;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        CourseFilterModel *_t = static_cast<CourseFilterModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< CourseModel**>(_v) = _t->courseModel(); break;
        case 1: *reinterpret_cast< CourseResourceView*>(_v) = _t->view(); break;
        case 2: *reinterpret_cast< int*>(_v) = _t->filteredCount(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        CourseFilterModel *_t = static_cast<CourseFilterModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setCourseModel(*reinterpret_cast< CourseModel**>(_v)); break;
        case 1: _t->setView(*reinterpret_cast< CourseResourceView*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject CourseFilterModel::staticMetaObject = {
    { &QSortFilterProxyModel::staticMetaObject, qt_meta_stringdata_CourseFilterModel.data,
      qt_meta_data_CourseFilterModel,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

int CourseFilterModel::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 < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 5)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 5;
    }
#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 CourseFilterModel::courseModelChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
}

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

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

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