/****************************************************************************
** Meta object code from reading C++ file 'learningprogressmodel.h'
**
** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.7)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../src/ktouch-15.04.3/src/models/learningprogressmodel.h"
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'learningprogressmodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 63
#error "This file was generated using the moc from 4.8.7. 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
static const uint qt_meta_data_LearningProgressModel[] = {

 // content:
       6,       // revision
       0,       // classname
       0,    0, // classinfo
      13,   14, // methods
       5,   79, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       5,       // signalCount

 // signals: signature, parameters, type, tag, flags
      23,   22,   22,   22, 0x05,
      40,   22,   22,   22, 0x05,
      62,   22,   22,   22, 0x05,
      84,   22,   22,   22, 0x05,
     121,   22,   22,   22, 0x05,

 // slots: signature, parameters, type, tag, flags
     142,   22,   22,   22, 0x0a,
     151,   22,   22,   22, 0x08,

 // methods: signature, parameters, type, tag, flags
     178,  174,  170,   22, 0x02,
     203,  174,  170,   22, 0x02,
     224,  174,  170,   22, 0x02,
     240,  174,  170,   22, 0x02,
     263,  174,  257,   22, 0x02,
     285,  174,  277,   22, 0x02,

 // properties: name, type, flags
     308,  299, 0x0049510b,
     324,  316, 0x0049510b,
     345,  337, 0x0049510b,
     358,  170, 0x02495001,
     386,  257, ((uint)QMetaType::QReal << 24) | 0x00495001,

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

       0        // eod
};

static const char qt_meta_stringdata_LearningProgressModel[] = {
    "LearningProgressModel\0\0profileChanged()\0"
    "courseFilterChanged()\0lessonFilterChanged()\0"
    "maxCharactersTypedPerMinuteChanged()\0"
    "minAccuracyChanged()\0update()\0"
    "profileDestroyed()\0int\0row\0"
    "charactersPerMinute(int)\0charactersTyped(int)\0"
    "errorCount(int)\0elapsedTime(int)\0qreal\0"
    "accuracy(int)\0QString\0lessonId(int)\0"
    "Profile*\0profile\0Course*\0courseFilter\0"
    "Lesson*\0lessonFilter\0maxCharactersTypedPerMinute\0"
    "minAccuracy\0"
};

void LearningProgressModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Q_ASSERT(staticMetaObject.cast(_o));
        LearningProgressModel *_t = static_cast<LearningProgressModel *>(_o);
        switch (_id) {
        case 0: _t->profileChanged(); break;
        case 1: _t->courseFilterChanged(); break;
        case 2: _t->lessonFilterChanged(); break;
        case 3: _t->maxCharactersTypedPerMinuteChanged(); break;
        case 4: _t->minAccuracyChanged(); break;
        case 5: _t->update(); break;
        case 6: _t->profileDestroyed(); break;
        case 7: { int _r = _t->charactersPerMinute((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; }  break;
        case 8: { int _r = _t->charactersTyped((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; }  break;
        case 9: { int _r = _t->errorCount((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; }  break;
        case 10: { int _r = _t->elapsedTime((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; }  break;
        case 11: { qreal _r = _t->accuracy((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< qreal*>(_a[0]) = _r; }  break;
        case 12: { QString _r = _t->lessonId((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
        default: ;
        }
    }
}

const QMetaObjectExtraData LearningProgressModel::staticMetaObjectExtraData = {
    0,  qt_static_metacall 
};

const QMetaObject LearningProgressModel::staticMetaObject = {
    { &QSqlQueryModel::staticMetaObject, qt_meta_stringdata_LearningProgressModel,
      qt_meta_data_LearningProgressModel, &staticMetaObjectExtraData }
};

#ifdef Q_NO_DATA_RELOCATION
const QMetaObject &LearningProgressModel::getStaticMetaObject() { return staticMetaObject; }
#endif //Q_NO_DATA_RELOCATION

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

void *LearningProgressModel::qt_metacast(const char *_clname)
{
    if (!_clname) return 0;
    if (!strcmp(_clname, qt_meta_stringdata_LearningProgressModel))
        return static_cast<void*>(const_cast< LearningProgressModel*>(this));
    return QSqlQueryModel::qt_metacast(_clname);
}

int LearningProgressModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QSqlQueryModel::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;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< Profile**>(_v) = profile(); break;
        case 1: *reinterpret_cast< Course**>(_v) = courseFilter(); break;
        case 2: *reinterpret_cast< Lesson**>(_v) = lessonFilter(); break;
        case 3: *reinterpret_cast< int*>(_v) = maxCharactersTypedPerMinute(); break;
        case 4: *reinterpret_cast< qreal*>(_v) = minAccuracy(); break;
        }
        _id -= 5;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: setProfile(*reinterpret_cast< Profile**>(_v)); break;
        case 1: setCourseFilter(*reinterpret_cast< Course**>(_v)); break;
        case 2: setLessonFilter(*reinterpret_cast< Lesson**>(_v)); break;
        }
        _id -= 5;
    } else if (_c == QMetaObject::ResetProperty) {
        _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;
}

// SIGNAL 0
void LearningProgressModel::profileChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, 0);
}

// SIGNAL 1
void LearningProgressModel::courseFilterChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, 0);
}

// SIGNAL 2
void LearningProgressModel::lessonFilterChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, 0);
}

// SIGNAL 3
void LearningProgressModel::maxCharactersTypedPerMinuteChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, 0);
}

// SIGNAL 4
void LearningProgressModel::minAccuracyChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, 0);
}
QT_END_MOC_NAMESPACE
