/****************************************************************************
** Meta object code from reading C++ file 'phrasemodel.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/artikulate-17.12.3/src/models/phrasemodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'phrasemodel.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_PhraseModel_t {
    QByteArrayData data[28];
    char stringdata0[331];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_PhraseModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_PhraseModel_t qt_meta_stringdata_PhraseModel = {
    {
QT_MOC_LITERAL(0, 0, 11), // "PhraseModel"
QT_MOC_LITERAL(1, 12, 13), // "phraseChanged"
QT_MOC_LITERAL(2, 26, 0), // ""
QT_MOC_LITERAL(3, 27, 5), // "index"
QT_MOC_LITERAL(4, 33, 13), // "courseChanged"
QT_MOC_LITERAL(5, 47, 11), // "typeChanged"
QT_MOC_LITERAL(6, 59, 22), // "onPhraseAboutToBeAdded"
QT_MOC_LITERAL(7, 82, 7), // "Phrase*"
QT_MOC_LITERAL(8, 90, 6), // "phrase"
QT_MOC_LITERAL(9, 97, 13), // "onPhraseAdded"
QT_MOC_LITERAL(10, 111, 25), // "onPhrasesAboutToBeRemoved"
QT_MOC_LITERAL(11, 137, 5), // "first"
QT_MOC_LITERAL(12, 143, 4), // "last"
QT_MOC_LITERAL(13, 148, 16), // "onPhrasesRemoved"
QT_MOC_LITERAL(14, 165, 15), // "onPhraseChanged"
QT_MOC_LITERAL(15, 181, 20), // "onUnitAboutToBeAdded"
QT_MOC_LITERAL(16, 202, 5), // "Unit*"
QT_MOC_LITERAL(17, 208, 4), // "unit"
QT_MOC_LITERAL(18, 213, 11), // "onUnitAdded"
QT_MOC_LITERAL(19, 225, 23), // "onUnitsAboutToBeRemoved"
QT_MOC_LITERAL(20, 249, 14), // "onUnitsRemoved"
QT_MOC_LITERAL(21, 264, 13), // "onUnitChanged"
QT_MOC_LITERAL(22, 278, 8), // "isPhrase"
QT_MOC_LITERAL(23, 287, 11), // "indexPhrase"
QT_MOC_LITERAL(24, 299, 9), // "indexUnit"
QT_MOC_LITERAL(25, 309, 6), // "isUnit"
QT_MOC_LITERAL(26, 316, 6), // "course"
QT_MOC_LITERAL(27, 323, 7) // "Course*"

    },
    "PhraseModel\0phraseChanged\0\0index\0"
    "courseChanged\0typeChanged\0"
    "onPhraseAboutToBeAdded\0Phrase*\0phrase\0"
    "onPhraseAdded\0onPhrasesAboutToBeRemoved\0"
    "first\0last\0onPhrasesRemoved\0onPhraseChanged\0"
    "onUnitAboutToBeAdded\0Unit*\0unit\0"
    "onUnitAdded\0onUnitsAboutToBeRemoved\0"
    "onUnitsRemoved\0onUnitChanged\0isPhrase\0"
    "indexPhrase\0indexUnit\0isUnit\0course\0"
    "Course*"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_PhraseModel[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      19,   14, // methods
       1,  162, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       3,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,  109,    2, 0x06 /* Public */,
       4,    0,  112,    2, 0x06 /* Public */,
       5,    0,  113,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    2,  114,    2, 0x08 /* Private */,
       9,    0,  119,    2, 0x08 /* Private */,
      10,    2,  120,    2, 0x08 /* Private */,
      13,    0,  125,    2, 0x08 /* Private */,
      14,    1,  126,    2, 0x08 /* Private */,
      15,    2,  129,    2, 0x08 /* Private */,
      18,    0,  134,    2, 0x08 /* Private */,
      19,    2,  135,    2, 0x08 /* Private */,
      20,    0,  140,    2, 0x08 /* Private */,
      21,    1,  141,    2, 0x08 /* Private */,

 // methods: name, argc, parameters, tag, flags
      22,    1,  144,    2, 0x02 /* Public */,
       8,    1,  147,    2, 0x02 /* Public */,
      17,    1,  150,    2, 0x02 /* Public */,
      23,    1,  153,    2, 0x02 /* Public */,
      24,    1,  156,    2, 0x02 /* Public */,
      25,    1,  159,    2, 0x02 /* Public */,

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

 // slots: parameters
    QMetaType::Void, 0x80000000 | 7, QMetaType::Int,    8,    3,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,   11,   12,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QObjectStar,    8,
    QMetaType::Void, 0x80000000 | 16, QMetaType::Int,   17,    3,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,   11,   12,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,    3,

 // methods: parameters
    QMetaType::Bool, QMetaType::QModelIndex,    3,
    0x80000000 | 7, QMetaType::QModelIndex,    3,
    0x80000000 | 16, QMetaType::QModelIndex,    3,
    QMetaType::QModelIndex, 0x80000000 | 7,    8,
    QMetaType::QModelIndex, 0x80000000 | 16,   17,
    QMetaType::Bool, QMetaType::QModelIndex,    3,

 // properties: name, type, flags
      26, 0x80000000 | 27, 0x0049510b,

 // properties: notify_signal_id
       1,

       0        // eod
};

void PhraseModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        PhraseModel *_t = static_cast<PhraseModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->phraseChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: _t->courseChanged(); break;
        case 2: _t->typeChanged(); break;
        case 3: _t->onPhraseAboutToBeAdded((*reinterpret_cast< Phrase*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 4: _t->onPhraseAdded(); break;
        case 5: _t->onPhrasesAboutToBeRemoved((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 6: _t->onPhrasesRemoved(); break;
        case 7: _t->onPhraseChanged((*reinterpret_cast< QObject*(*)>(_a[1]))); break;
        case 8: _t->onUnitAboutToBeAdded((*reinterpret_cast< Unit*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 9: _t->onUnitAdded(); break;
        case 10: _t->onUnitsAboutToBeRemoved((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 11: _t->onUnitsRemoved(); break;
        case 12: _t->onUnitChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 13: { bool _r = _t->isPhrase((*reinterpret_cast< const QModelIndex(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 14: { Phrase* _r = _t->phrase((*reinterpret_cast< const QModelIndex(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< Phrase**>(_a[0]) = std::move(_r); }  break;
        case 15: { Unit* _r = _t->unit((*reinterpret_cast< const QModelIndex(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< Unit**>(_a[0]) = std::move(_r); }  break;
        case 16: { QModelIndex _r = _t->indexPhrase((*reinterpret_cast< Phrase*(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QModelIndex*>(_a[0]) = std::move(_r); }  break;
        case 17: { QModelIndex _r = _t->indexUnit((*reinterpret_cast< Unit*(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QModelIndex*>(_a[0]) = std::move(_r); }  break;
        case 18: { bool _r = _t->isUnit((*reinterpret_cast< const QModelIndex(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 3:
            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 16:
            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]);
        {
            typedef void (PhraseModel::*_t)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PhraseModel::phraseChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (PhraseModel::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PhraseModel::courseChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (PhraseModel::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PhraseModel::typeChanged)) {
                *result = 2;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        PhraseModel *_t = static_cast<PhraseModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< Course**>(_v) = _t->course(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        PhraseModel *_t = static_cast<PhraseModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setCourse(*reinterpret_cast< Course**>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject PhraseModel::staticMetaObject = {
    { &QAbstractItemModel::staticMetaObject, qt_meta_stringdata_PhraseModel.data,
      qt_meta_data_PhraseModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

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

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

// SIGNAL 2
void PhraseModel::typeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
