/****************************************************************************
** Meta object code from reading C++ file 'course.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/artikulate-17.08.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.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_Course_t {
    QByteArrayData data[33];
    char stringdata0[424];
};
#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, 9), // "idChanged"
QT_MOC_LITERAL(2, 17, 0), // ""
QT_MOC_LITERAL(3, 18, 12), // "titleChanged"
QT_MOC_LITERAL(4, 31, 18), // "descriptionChanged"
QT_MOC_LITERAL(5, 50, 15), // "modifiedChanged"
QT_MOC_LITERAL(6, 66, 15), // "languageChanged"
QT_MOC_LITERAL(7, 82, 9), // "unitAdded"
QT_MOC_LITERAL(8, 92, 18), // "unitAboutToBeAdded"
QT_MOC_LITERAL(9, 111, 5), // "Unit*"
QT_MOC_LITERAL(10, 117, 12), // "unitsRemoved"
QT_MOC_LITERAL(11, 130, 21), // "unitsAboutToBeRemoved"
QT_MOC_LITERAL(12, 152, 17), // "phonemeGroupAdded"
QT_MOC_LITERAL(13, 170, 26), // "phonemeGroupAboutToBeAdded"
QT_MOC_LITERAL(14, 197, 13), // "PhonemeGroup*"
QT_MOC_LITERAL(15, 211, 19), // "phonemeGroupRemoved"
QT_MOC_LITERAL(16, 231, 28), // "phonemeGroupAboutToBeRemoved"
QT_MOC_LITERAL(17, 260, 11), // "setModified"
QT_MOC_LITERAL(18, 272, 8), // "modified"
QT_MOC_LITERAL(19, 281, 22), // "registerPhrasePhonemes"
QT_MOC_LITERAL(20, 304, 7), // "Phrase*"
QT_MOC_LITERAL(21, 312, 6), // "phrase"
QT_MOC_LITERAL(22, 319, 20), // "removePhrasePhonemes"
QT_MOC_LITERAL(23, 340, 10), // "createUnit"
QT_MOC_LITERAL(24, 351, 12), // "createPhrase"
QT_MOC_LITERAL(25, 364, 4), // "unit"
QT_MOC_LITERAL(26, 369, 4), // "sync"
QT_MOC_LITERAL(27, 374, 2), // "id"
QT_MOC_LITERAL(28, 377, 5), // "title"
QT_MOC_LITERAL(29, 383, 9), // "i18nTitle"
QT_MOC_LITERAL(30, 393, 11), // "description"
QT_MOC_LITERAL(31, 405, 8), // "language"
QT_MOC_LITERAL(32, 414, 9) // "Language*"

    },
    "Course\0idChanged\0\0titleChanged\0"
    "descriptionChanged\0modifiedChanged\0"
    "languageChanged\0unitAdded\0unitAboutToBeAdded\0"
    "Unit*\0unitsRemoved\0unitsAboutToBeRemoved\0"
    "phonemeGroupAdded\0phonemeGroupAboutToBeAdded\0"
    "PhonemeGroup*\0phonemeGroupRemoved\0"
    "phonemeGroupAboutToBeRemoved\0setModified\0"
    "modified\0registerPhrasePhonemes\0Phrase*\0"
    "phrase\0removePhrasePhonemes\0createUnit\0"
    "createPhrase\0unit\0sync\0id\0title\0"
    "i18nTitle\0description\0language\0Language*"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Course[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      20,   14, // methods
       6,  158, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
      13,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,  114,    2, 0x06 /* Public */,
       3,    0,  115,    2, 0x06 /* Public */,
       4,    0,  116,    2, 0x06 /* Public */,
       5,    0,  117,    2, 0x06 /* Public */,
       6,    0,  118,    2, 0x06 /* Public */,
       7,    0,  119,    2, 0x06 /* Public */,
       8,    2,  120,    2, 0x06 /* Public */,
      10,    0,  125,    2, 0x06 /* Public */,
      11,    2,  126,    2, 0x06 /* Public */,
      12,    0,  131,    2, 0x06 /* Public */,
      13,    2,  132,    2, 0x06 /* Public */,
      15,    0,  137,    2, 0x06 /* Public */,
      16,    2,  138,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      17,    1,  143,    2, 0x0a /* Public */,
      17,    0,  146,    2, 0x2a /* Public | MethodCloned */,
      19,    1,  147,    2, 0x0a /* Public */,
      22,    1,  150,    2, 0x0a /* Public */,

 // methods: name, argc, parameters, tag, flags
      23,    0,  153,    2, 0x02 /* Public */,
      24,    1,  154,    2, 0x02 /* Public */,
      26,    0,  157,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 9, QMetaType::Int,    2,    2,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    2,    2,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 14, QMetaType::Int,    2,    2,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    2,    2,

 // slots: parameters
    QMetaType::Void, QMetaType::Bool,   18,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 20,   21,
    QMetaType::Void, 0x80000000 | 20,   21,

 // methods: parameters
    0x80000000 | 9,
    0x80000000 | 20, 0x80000000 | 9,   25,
    QMetaType::Void,

 // properties: name, type, flags
      27, QMetaType::QString, 0x00495103,
      28, QMetaType::QString, 0x00495103,
      29, QMetaType::QString, 0x00495001,
      30, QMetaType::QString, 0x00495103,
      18, QMetaType::Bool, 0x00495103,
      31, 0x80000000 | 32, 0x00495009,

 // properties: notify_signal_id
       0,
       1,
       1,
       2,
       3,
       4,

       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->idChanged(); break;
        case 1: _t->titleChanged(); break;
        case 2: _t->descriptionChanged(); break;
        case 3: _t->modifiedChanged(); break;
        case 4: _t->languageChanged(); break;
        case 5: _t->unitAdded(); break;
        case 6: _t->unitAboutToBeAdded((*reinterpret_cast< Unit*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 7: _t->unitsRemoved(); break;
        case 8: _t->unitsAboutToBeRemoved((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 9: _t->phonemeGroupAdded(); break;
        case 10: _t->phonemeGroupAboutToBeAdded((*reinterpret_cast< PhonemeGroup*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 11: _t->phonemeGroupRemoved(); break;
        case 12: _t->phonemeGroupAboutToBeRemoved((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 13: _t->setModified((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 14: _t->setModified(); break;
        case 15: _t->registerPhrasePhonemes((*reinterpret_cast< Phrase*(*)>(_a[1]))); break;
        case 16: _t->removePhrasePhonemes((*reinterpret_cast< Phrase*(*)>(_a[1]))); break;
        case 17: { Unit* _r = _t->createUnit();
            if (_a[0]) *reinterpret_cast< Unit**>(_a[0]) = std::move(_r); }  break;
        case 18: { Phrase* _r = _t->createPhrase((*reinterpret_cast< Unit*(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< Phrase**>(_a[0]) = std::move(_r); }  break;
        case 19: _t->sync(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (Course::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Course::idChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (Course::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Course::titleChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (Course::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Course::descriptionChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (Course::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Course::modifiedChanged)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (Course::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Course::languageChanged)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (Course::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Course::unitAdded)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (Course::*_t)(Unit * , int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Course::unitAboutToBeAdded)) {
                *result = 6;
                return;
            }
        }
        {
            typedef void (Course::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Course::unitsRemoved)) {
                *result = 7;
                return;
            }
        }
        {
            typedef void (Course::*_t)(int , int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Course::unitsAboutToBeRemoved)) {
                *result = 8;
                return;
            }
        }
        {
            typedef void (Course::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Course::phonemeGroupAdded)) {
                *result = 9;
                return;
            }
        }
        {
            typedef void (Course::*_t)(PhonemeGroup * , int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Course::phonemeGroupAboutToBeAdded)) {
                *result = 10;
                return;
            }
        }
        {
            typedef void (Course::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Course::phonemeGroupRemoved)) {
                *result = 11;
                return;
            }
        }
        {
            typedef void (Course::*_t)(int , int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Course::phonemeGroupAboutToBeRemoved)) {
                *result = 12;
                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< QString*>(_v) = _t->id(); break;
        case 1: *reinterpret_cast< QString*>(_v) = _t->title(); break;
        case 2: *reinterpret_cast< QString*>(_v) = _t->i18nTitle(); break;
        case 3: *reinterpret_cast< QString*>(_v) = _t->description(); break;
        case 4: *reinterpret_cast< bool*>(_v) = _t->modified(); break;
        case 5: *reinterpret_cast< Language**>(_v) = _t->language(); 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->setId(*reinterpret_cast< QString*>(_v)); break;
        case 1: _t->setTitle(*reinterpret_cast< QString*>(_v)); break;
        case 3: _t->setDescription(*reinterpret_cast< QString*>(_v)); break;
        case 4: _t->setModified(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject Course::staticMetaObject = {
    { &QObject::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 QObject::qt_metacast(_clname);
}

int Course::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 20)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 20;
    }
#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 -= 6;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 6;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

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

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

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

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

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

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

// SIGNAL 6
void Course::unitAboutToBeAdded(Unit * _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, 6, _a);
}

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

// SIGNAL 8
void Course::unitsAboutToBeRemoved(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, 8, _a);
}

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

// SIGNAL 10
void Course::phonemeGroupAboutToBeAdded(PhonemeGroup * _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, 10, _a);
}

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

// SIGNAL 12
void Course::phonemeGroupAboutToBeRemoved(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, 12, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
