/****************************************************************************
** Meta object code from reading C++ file 'unit.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/core/unit.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'unit.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_Unit_t {
    QByteArrayData data[19];
    char stringdata0[232];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Unit_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Unit_t qt_meta_stringdata_Unit = {
    {
QT_MOC_LITERAL(0, 0, 4), // "Unit"
QT_MOC_LITERAL(1, 5, 9), // "idChanged"
QT_MOC_LITERAL(2, 15, 0), // ""
QT_MOC_LITERAL(3, 16, 12), // "titleChanged"
QT_MOC_LITERAL(4, 29, 13), // "courseChanged"
QT_MOC_LITERAL(5, 43, 24), // "displayPhraseTypeChanged"
QT_MOC_LITERAL(6, 68, 8), // "modified"
QT_MOC_LITERAL(7, 77, 11), // "phraseAdded"
QT_MOC_LITERAL(8, 89, 7), // "Phrase*"
QT_MOC_LITERAL(9, 97, 20), // "phraseAboutToBeAdded"
QT_MOC_LITERAL(10, 118, 13), // "phraseRemoved"
QT_MOC_LITERAL(11, 132, 22), // "phraseAboutToBeRemoved"
QT_MOC_LITERAL(12, 155, 21), // "excludeSkeletonPhrase"
QT_MOC_LITERAL(13, 177, 8), // "phraseId"
QT_MOC_LITERAL(14, 186, 21), // "includeSkeletonPhrase"
QT_MOC_LITERAL(15, 208, 2), // "id"
QT_MOC_LITERAL(16, 211, 5), // "title"
QT_MOC_LITERAL(17, 217, 6), // "course"
QT_MOC_LITERAL(18, 224, 7) // "Course*"

    },
    "Unit\0idChanged\0\0titleChanged\0courseChanged\0"
    "displayPhraseTypeChanged\0modified\0"
    "phraseAdded\0Phrase*\0phraseAboutToBeAdded\0"
    "phraseRemoved\0phraseAboutToBeRemoved\0"
    "excludeSkeletonPhrase\0phraseId\0"
    "includeSkeletonPhrase\0id\0title\0course\0"
    "Course*"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Unit[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      13,   14, // methods
       3,  108, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
      11,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   79,    2, 0x06 /* Public */,
       3,    0,   80,    2, 0x06 /* Public */,
       4,    0,   81,    2, 0x06 /* Public */,
       5,    0,   82,    2, 0x06 /* Public */,
       6,    0,   83,    2, 0x06 /* Public */,
       7,    0,   84,    2, 0x06 /* Public */,
       7,    1,   85,    2, 0x06 /* Public */,
       9,    2,   88,    2, 0x06 /* Public */,
      10,    0,   93,    2, 0x06 /* Public */,
      10,    1,   94,    2, 0x06 /* Public */,
      11,    2,   97,    2, 0x06 /* Public */,

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

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

 // methods: parameters
    QMetaType::Void, QMetaType::QString,   13,
    QMetaType::Void, QMetaType::QString,   13,

 // properties: name, type, flags
      15, QMetaType::QString, 0x00495103,
      16, QMetaType::QString, 0x00495103,
      17, 0x80000000 | 18, 0x0049510b,

 // properties: notify_signal_id
       0,
       1,
       2,

       0        // eod
};

void Unit::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Unit *_t = static_cast<Unit *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->idChanged(); break;
        case 1: _t->titleChanged(); break;
        case 2: _t->courseChanged(); break;
        case 3: _t->displayPhraseTypeChanged(); break;
        case 4: _t->modified(); break;
        case 5: _t->phraseAdded(); break;
        case 6: _t->phraseAdded((*reinterpret_cast< Phrase*(*)>(_a[1]))); break;
        case 7: _t->phraseAboutToBeAdded((*reinterpret_cast< Phrase*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 8: _t->phraseRemoved(); break;
        case 9: _t->phraseRemoved((*reinterpret_cast< Phrase*(*)>(_a[1]))); break;
        case 10: _t->phraseAboutToBeRemoved((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 11: _t->excludeSkeletonPhrase((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 12: _t->includeSkeletonPhrase((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Phrase* >(); break;
            }
            break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Phrase* >(); break;
            }
            break;
        case 9:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Phrase* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (Unit::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Unit::idChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (Unit::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Unit::titleChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (Unit::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Unit::courseChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (Unit::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Unit::displayPhraseTypeChanged)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (Unit::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Unit::modified)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (Unit::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Unit::phraseAdded)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (Unit::*_t)(Phrase * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Unit::phraseAdded)) {
                *result = 6;
                return;
            }
        }
        {
            typedef void (Unit::*_t)(Phrase * , int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Unit::phraseAboutToBeAdded)) {
                *result = 7;
                return;
            }
        }
        {
            typedef void (Unit::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Unit::phraseRemoved)) {
                *result = 8;
                return;
            }
        }
        {
            typedef void (Unit::*_t)(Phrase * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Unit::phraseRemoved)) {
                *result = 9;
                return;
            }
        }
        {
            typedef void (Unit::*_t)(int , int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Unit::phraseAboutToBeRemoved)) {
                *result = 10;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        Unit *_t = static_cast<Unit *>(_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< Course**>(_v) = _t->course(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        Unit *_t = static_cast<Unit *>(_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 2: _t->setCourse(*reinterpret_cast< Course**>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject Unit::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_Unit.data,
      qt_meta_data_Unit,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

int Unit::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 < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
#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 Unit::idChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
}

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

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

// SIGNAL 3
void Unit::displayPhraseTypeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, Q_NULLPTR);
}

// SIGNAL 4
void Unit::modified()
{
    QMetaObject::activate(this, &staticMetaObject, 4, Q_NULLPTR);
}

// SIGNAL 5
void Unit::phraseAdded()
{
    QMetaObject::activate(this, &staticMetaObject, 5, Q_NULLPTR);
}

// SIGNAL 6
void Unit::phraseAdded(Phrase * _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 6, _a);
}

// SIGNAL 7
void Unit::phraseAboutToBeAdded(Phrase * _t1, int _t2)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 7, _a);
}

// SIGNAL 8
void Unit::phraseRemoved()
{
    QMetaObject::activate(this, &staticMetaObject, 8, Q_NULLPTR);
}

// SIGNAL 9
void Unit::phraseRemoved(Phrase * _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 9, _a);
}

// SIGNAL 10
void Unit::phraseAboutToBeRemoved(int _t1, int _t2)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 10, _a);
}
QT_END_MOC_NAMESPACE
