/****************************************************************************
** Meta object code from reading C++ file 'text.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/text.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'text.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__Text_t {
    QByteArrayData data[16];
    char stringdata0[159];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Scripting__Text_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Scripting__Text_t qt_meta_stringdata_Scripting__Text = {
    {
QT_MOC_LITERAL(0, 0, 15), // "Scripting::Text"
QT_MOC_LITERAL(1, 16, 11), // "incBadCount"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 16), // "incPracticeCount"
QT_MOC_LITERAL(4, 46, 11), // "resetGrades"
QT_MOC_LITERAL(5, 58, 8), // "incGrade"
QT_MOC_LITERAL(6, 67, 8), // "decGrade"
QT_MOC_LITERAL(7, 76, 12), // "practiceDate"
QT_MOC_LITERAL(8, 89, 6), // "format"
QT_MOC_LITERAL(9, 96, 15), // "setPracticeDate"
QT_MOC_LITERAL(10, 112, 4), // "date"
QT_MOC_LITERAL(11, 117, 4), // "text"
QT_MOC_LITERAL(12, 122, 13), // "practiceCount"
QT_MOC_LITERAL(13, 136, 8), // "badCount"
QT_MOC_LITERAL(14, 145, 5), // "grade"
QT_MOC_LITERAL(15, 151, 7) // "isEmpty"

    },
    "Scripting::Text\0incBadCount\0\0"
    "incPracticeCount\0resetGrades\0incGrade\0"
    "decGrade\0practiceDate\0format\0"
    "setPracticeDate\0date\0text\0practiceCount\0"
    "badCount\0grade\0isEmpty"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Scripting__Text[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       9,   14, // methods
       5,   76, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // slots: name, argc, parameters, tag, flags
       1,    0,   59,    2, 0x0a /* Public */,
       3,    0,   60,    2, 0x0a /* Public */,
       4,    0,   61,    2, 0x0a /* Public */,
       5,    0,   62,    2, 0x0a /* Public */,
       6,    0,   63,    2, 0x0a /* Public */,
       7,    0,   64,    2, 0x0a /* Public */,
       7,    1,   65,    2, 0x0a /* Public */,
       9,    1,   68,    2, 0x0a /* Public */,
       9,    2,   71,    2, 0x0a /* Public */,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::QString,
    QMetaType::QString, QMetaType::QString,    8,
    QMetaType::Void, QMetaType::QString,   10,
    QMetaType::Void, QMetaType::QString, QMetaType::QString,   10,    8,

 // properties: name, type, flags
      11, QMetaType::QString, 0x00095103,
      12, QMetaType::UInt, 0x00095103,
      13, QMetaType::UInt, 0x00095103,
      14, QMetaType::UInt, 0x00095103,
      15, QMetaType::Bool, 0x00095001,

       0        // eod
};

void Scripting::Text::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Text *_t = static_cast<Text *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->incBadCount(); break;
        case 1: _t->incPracticeCount(); break;
        case 2: _t->resetGrades(); break;
        case 3: _t->incGrade(); break;
        case 4: _t->decGrade(); break;
        case 5: { QString _r = _t->practiceDate();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
        case 6: { QString _r = _t->practiceDate((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
        case 7: _t->setPracticeDate((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 8: _t->setPracticeDate((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        default: ;
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        Text *_t = static_cast<Text *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = _t->text(); break;
        case 1: *reinterpret_cast< uint*>(_v) = _t->practiceCount(); break;
        case 2: *reinterpret_cast< uint*>(_v) = _t->badCount(); break;
        case 3: *reinterpret_cast< uint*>(_v) = _t->grade(); break;
        case 4: *reinterpret_cast< bool*>(_v) = _t->isEmpty(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        Text *_t = static_cast<Text *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setText(*reinterpret_cast< QString*>(_v)); break;
        case 1: _t->setPracticeCount(*reinterpret_cast< uint*>(_v)); break;
        case 2: _t->setBadCount(*reinterpret_cast< uint*>(_v)); break;
        case 3: _t->setGrade(*reinterpret_cast< uint*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject Scripting::Text::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_Scripting__Text.data,
      qt_meta_data_Scripting__Text,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

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