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

#include "../../src/ktouch-17.12.3/src/core/course.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'course.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.4. 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_Course_t {
    QByteArrayData data[27];
    char stringdata0[379];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Course_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Course_t qt_meta_stringdata_Course = {
    {
QT_MOC_LITERAL(0, 0, 6), // "Course"
QT_MOC_LITERAL(1, 7, 32), // "associatedDataIndexCourseChanged"
QT_MOC_LITERAL(2, 40, 0), // ""
QT_MOC_LITERAL(3, 41, 18), // "lessonCountChanged"
QT_MOC_LITERAL(4, 60, 29), // "doSyncLessonCharactersChanged"
QT_MOC_LITERAL(5, 90, 20), // "lessonAboutToBeAdded"
QT_MOC_LITERAL(6, 111, 7), // "Lesson*"
QT_MOC_LITERAL(7, 119, 6), // "lesson"
QT_MOC_LITERAL(8, 126, 5), // "index"
QT_MOC_LITERAL(9, 132, 11), // "lessonAdded"
QT_MOC_LITERAL(10, 144, 23), // "lessonsAboutToBeRemoved"
QT_MOC_LITERAL(11, 168, 5), // "first"
QT_MOC_LITERAL(12, 174, 4), // "last"
QT_MOC_LITERAL(13, 179, 14), // "lessonsRemoved"
QT_MOC_LITERAL(14, 194, 22), // "updateLessonCharacters"
QT_MOC_LITERAL(15, 217, 10), // "firstIndex"
QT_MOC_LITERAL(16, 228, 9), // "addLesson"
QT_MOC_LITERAL(17, 238, 12), // "insertLesson"
QT_MOC_LITERAL(18, 251, 12), // "removeLesson"
QT_MOC_LITERAL(19, 264, 12), // "clearLessons"
QT_MOC_LITERAL(20, 277, 8), // "copyFrom"
QT_MOC_LITERAL(21, 286, 7), // "Course*"
QT_MOC_LITERAL(22, 294, 6), // "source"
QT_MOC_LITERAL(23, 301, 25), // "associatedDataIndexCourse"
QT_MOC_LITERAL(24, 327, 16), // "DataIndexCourse*"
QT_MOC_LITERAL(25, 344, 11), // "lessonCount"
QT_MOC_LITERAL(26, 356, 22) // "doSyncLessonCharacters"

    },
    "Course\0associatedDataIndexCourseChanged\0"
    "\0lessonCountChanged\0doSyncLessonCharactersChanged\0"
    "lessonAboutToBeAdded\0Lesson*\0lesson\0"
    "index\0lessonAdded\0lessonsAboutToBeRemoved\0"
    "first\0last\0lessonsRemoved\0"
    "updateLessonCharacters\0firstIndex\0"
    "addLesson\0insertLesson\0removeLesson\0"
    "clearLessons\0copyFrom\0Course*\0source\0"
    "associatedDataIndexCourse\0DataIndexCourse*\0"
    "lessonCount\0doSyncLessonCharacters"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Course[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      15,   14, // methods
       3,  126, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       7,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   89,    2, 0x06 /* Public */,
       3,    0,   90,    2, 0x06 /* Public */,
       4,    0,   91,    2, 0x06 /* Public */,
       5,    2,   92,    2, 0x06 /* Public */,
       9,    0,   97,    2, 0x06 /* Public */,
      10,    2,   98,    2, 0x06 /* Public */,
      13,    0,  103,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      14,    1,  104,    2, 0x08 /* Private */,
      14,    0,  107,    2, 0x28 /* Private | MethodCloned */,

 // methods: name, argc, parameters, tag, flags
       7,    1,  108,    2, 0x02 /* Public */,
      16,    1,  111,    2, 0x02 /* Public */,
      17,    2,  114,    2, 0x02 /* Public */,
      18,    1,  119,    2, 0x02 /* Public */,
      19,    0,  122,    2, 0x02 /* Public */,
      20,    1,  123,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 6, QMetaType::Int,    7,    8,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,   11,   12,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, QMetaType::Int,   15,
    QMetaType::Void,

 // methods: parameters
    0x80000000 | 6, QMetaType::Int,    8,
    QMetaType::Void, 0x80000000 | 6,    7,
    QMetaType::Void, QMetaType::Int, 0x80000000 | 6,    8,    7,
    QMetaType::Void, QMetaType::Int,    8,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 21,   22,

 // properties: name, type, flags
      23, 0x80000000 | 24, 0x0049510b,
      25, QMetaType::Int, 0x00495001,
      26, QMetaType::Bool, 0x00495103,

 // properties: notify_signal_id
       0,
       1,
       2,

       0        // eod
};

void Course::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Course *_t = static_cast<Course *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->associatedDataIndexCourseChanged(); break;
        case 1: _t->lessonCountChanged(); break;
        case 2: _t->doSyncLessonCharactersChanged(); break;
        case 3: _t->lessonAboutToBeAdded((*reinterpret_cast< Lesson*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 4: _t->lessonAdded(); break;
        case 5: _t->lessonsAboutToBeRemoved((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 6: _t->lessonsRemoved(); break;
        case 7: _t->updateLessonCharacters((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 8: _t->updateLessonCharacters(); break;
        case 9: { Lesson* _r = _t->lesson((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< Lesson**>(_a[0]) = std::move(_r); }  break;
        case 10: _t->addLesson((*reinterpret_cast< Lesson*(*)>(_a[1]))); break;
        case 11: _t->insertLesson((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< Lesson*(*)>(_a[2]))); break;
        case 12: _t->removeLesson((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 13: _t->clearLessons(); break;
        case 14: _t->copyFrom((*reinterpret_cast< Course*(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 14:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Course* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (Course::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Course::associatedDataIndexCourseChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (Course::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Course::lessonCountChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (Course::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Course::doSyncLessonCharactersChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (Course::*_t)(Lesson * , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Course::lessonAboutToBeAdded)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (Course::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Course::lessonAdded)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (Course::*_t)(int , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Course::lessonsAboutToBeRemoved)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (Course::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Course::lessonsRemoved)) {
                *result = 6;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        Course *_t = static_cast<Course *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< DataIndexCourse**>(_v) = _t->associatedDataIndexCourse(); break;
        case 1: *reinterpret_cast< int*>(_v) = _t->lessonCount(); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->doSyncLessonCharacters(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        Course *_t = static_cast<Course *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setAssociatedDataIndexCourse(*reinterpret_cast< DataIndexCourse**>(_v)); break;
        case 2: _t->setDoSyncLessonCharacters(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject Course::staticMetaObject = {
    { &CourseBase::staticMetaObject, qt_meta_stringdata_Course.data,
      qt_meta_data_Course,  qt_static_metacall, nullptr, nullptr}
};


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

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

int Course::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = CourseBase::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 15)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 15;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 15)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 15;
    }
#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 Course::associatedDataIndexCourseChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void Course::lessonCountChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void Course::doSyncLessonCharactersChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void Course::lessonAboutToBeAdded(Lesson * _t1, int _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void Course::lessonAdded()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void Course::lessonsAboutToBeRemoved(int _t1, int _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}

// SIGNAL 6
void Course::lessonsRemoved()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
