/****************************************************************************
** Meta object code from reading C++ file 'expression.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/parley-17.04.3/src/scripts/scripting/expression.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'expression.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_Scripting__Expression_t {
    QByteArrayData data[14];
    char stringdata0[176];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Scripting__Expression_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Scripting__Expression_t qt_meta_stringdata_Scripting__Expression = {
    {
QT_MOC_LITERAL(0, 0, 21), // "Scripting::Expression"
QT_MOC_LITERAL(1, 22, 11), // "resetGrades"
QT_MOC_LITERAL(2, 34, 0), // ""
QT_MOC_LITERAL(3, 35, 5), // "index"
QT_MOC_LITERAL(4, 41, 14), // "setTranslation"
QT_MOC_LITERAL(5, 56, 10), // "expression"
QT_MOC_LITERAL(6, 67, 15), // "setTranslations"
QT_MOC_LITERAL(7, 83, 12), // "translations"
QT_MOC_LITERAL(8, 96, 17), // "removeTranslation"
QT_MOC_LITERAL(9, 114, 11), // "translation"
QT_MOC_LITERAL(10, 126, 18), // "translationIndices"
QT_MOC_LITERAL(11, 145, 16), // "translationTexts"
QT_MOC_LITERAL(12, 162, 6), // "lesson"
QT_MOC_LITERAL(13, 169, 6) // "active"

    },
    "Scripting::Expression\0resetGrades\0\0"
    "index\0setTranslation\0expression\0"
    "setTranslations\0translations\0"
    "removeTranslation\0translation\0"
    "translationIndices\0translationTexts\0"
    "lesson\0active"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Scripting__Expression[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       8,   14, // methods
       2,   74, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // slots: name, argc, parameters, tag, flags
       1,    1,   54,    2, 0x0a /* Public */,
       4,    2,   57,    2, 0x0a /* Public */,
       6,    1,   62,    2, 0x0a /* Public */,
       8,    1,   65,    2, 0x0a /* Public */,
       9,    1,   68,    2, 0x0a /* Public */,
      10,    0,   71,    2, 0x0a /* Public */,
       7,    0,   72,    2, 0x0a /* Public */,
      11,    0,   73,    2, 0x0a /* Public */,

 // slots: parameters
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::Void, QMetaType::Int, QMetaType::QString,    3,    5,
    QMetaType::Void, QMetaType::QStringList,    7,
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::QObjectStar, QMetaType::Int,    3,
    QMetaType::QVariantList,
    QMetaType::QVariantList,
    QMetaType::QStringList,

 // properties: name, type, flags
      12, QMetaType::QObjectStar, 0x00095001,
      13, QMetaType::Bool, 0x00095103,

       0        // eod
};

void Scripting::Expression::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Expression *_t = static_cast<Expression *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->resetGrades((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: _t->setTranslation((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 2: _t->setTranslations((*reinterpret_cast< QStringList(*)>(_a[1]))); break;
        case 3: _t->removeTranslation((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 4: { QObject* _r = _t->translation((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QObject**>(_a[0]) = _r; }  break;
        case 5: { QVariantList _r = _t->translationIndices();
            if (_a[0]) *reinterpret_cast< QVariantList*>(_a[0]) = _r; }  break;
        case 6: { QVariantList _r = _t->translations();
            if (_a[0]) *reinterpret_cast< QVariantList*>(_a[0]) = _r; }  break;
        case 7: { QStringList _r = _t->translationTexts();
            if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = _r; }  break;
        default: ;
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        Expression *_t = static_cast<Expression *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QObject**>(_v) = _t->lesson(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->isActive(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        Expression *_t = static_cast<Expression *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setActive(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject Scripting::Expression::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_Scripting__Expression.data,
      qt_meta_data_Scripting__Expression,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

int Scripting::Expression::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 < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 8;
    }
#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 -= 2;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 2;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
QT_END_MOC_NAMESPACE
