/****************************************************************************
** Meta object code from reading C++ file 'profiledataaccess.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/core/profiledataaccess.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'profiledataaccess.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_ProfileDataAccess[] = {

 // content:
       6,       // revision
       0,       // classname
       0,    0, // classinfo
      18,   14, // methods
       1,  104, // properties
       1,  108, // enums/sets
       0,    0, // constructors
       0,       // flags
       1,       // signalCount

 // signals: signature, parameters, type, tag, flags
      19,   18,   18,   18, 0x05,

 // methods: signature, parameters, type, tag, flags
      41,   18,   18,   18, 0x02,
      71,   65,   56,   18, 0x02,
      84,   18,   56,   18, 0x02,
     108,  100,   18,   18, 0x02,
     129,   65,   18,   18, 0x02,
     148,   65,   18,   18, 0x02,
     171,  100,  167,   18, 0x02,
     228,  196,   18,   18, 0x02,
     296,  196,   18,   18, 0x02,
     385,  363,  355,   18, 0x02,
     468,  437,   18,   18, 0x02,
     532,  100,  167,   18, 0x02,
     565,  100,  557,   18, 0x02,
     603,  100,  593,   18, 0x02,
     678,  638,  633,   18, 0x02,
     756,  722,  633,   18, 0x02,
     803,  800,  633,   18, 0x02,

 // properties: name, type, flags
     831,  167, 0x02495001,

 // properties: notify_signal_id
       0,

 // enums: name, flags, count, data
     844, 0x0,    2,  112,

 // enum data: key, value
     863, uint(ProfileDataAccess::LastUnlockedLesson),
     882, uint(ProfileDataAccess::LastSelectedLesson),

       0        // eod
};

static const char qt_meta_stringdata_ProfileDataAccess[] = {
    "ProfileDataAccess\0\0profileCountChanged()\0"
    "loadProfiles()\0Profile*\0index\0"
    "profile(int)\0createProfile()\0profile\0"
    "addProfile(Profile*)\0updateProfile(int)\0"
    "removeProfile(int)\0int\0indexOfProfile(Profile*)\0"
    "stats,profile,courseId,lessonId\0"
    "loadReferenceTrainingStats(TrainingStats*,Profile*,QString,QString)\0"
    "saveTrainingStats(TrainingStats*,Profile*,QString,QString)\0"
    "QString\0profile,courseId,type\0"
    "courseProgress(Profile*,QString,CourseProgressType)\0"
    "lessonId,profile,courseId,type\0"
    "saveCourseProgress(QString,Profile*,QString,CourseProgressType)\0"
    "lessonsTrained(Profile*)\0quint64\0"
    "totalTrainingTime(Profile*)\0QDateTime\0"
    "lastTrainingSession(Profile*)\0bool\0"
    "profile,keyboardLayoutNameFilter,target\0"
    "loadCustomLessons(Profile*,QString,Course*)\0"
    "lesson,profile,keyboardLayoutName\0"
    "storeCustomLesson(Lesson*,Profile*,QString)\0"
    "id\0deleteCustomLesson(QString)\0"
    "profileCount\0CourseProgressType\0"
    "LastUnlockedLesson\0LastSelectedLesson\0"
};

void ProfileDataAccess::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Q_ASSERT(staticMetaObject.cast(_o));
        ProfileDataAccess *_t = static_cast<ProfileDataAccess *>(_o);
        switch (_id) {
        case 0: _t->profileCountChanged(); break;
        case 1: _t->loadProfiles(); break;
        case 2: { Profile* _r = _t->profile((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< Profile**>(_a[0]) = _r; }  break;
        case 3: { Profile* _r = _t->createProfile();
            if (_a[0]) *reinterpret_cast< Profile**>(_a[0]) = _r; }  break;
        case 4: _t->addProfile((*reinterpret_cast< Profile*(*)>(_a[1]))); break;
        case 5: _t->updateProfile((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 6: _t->removeProfile((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 7: { int _r = _t->indexOfProfile((*reinterpret_cast< Profile*(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; }  break;
        case 8: _t->loadReferenceTrainingStats((*reinterpret_cast< TrainingStats*(*)>(_a[1])),(*reinterpret_cast< Profile*(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3])),(*reinterpret_cast< const QString(*)>(_a[4]))); break;
        case 9: _t->saveTrainingStats((*reinterpret_cast< TrainingStats*(*)>(_a[1])),(*reinterpret_cast< Profile*(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3])),(*reinterpret_cast< const QString(*)>(_a[4]))); break;
        case 10: { QString _r = _t->courseProgress((*reinterpret_cast< Profile*(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< CourseProgressType(*)>(_a[3])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
        case 11: _t->saveCourseProgress((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< Profile*(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3])),(*reinterpret_cast< CourseProgressType(*)>(_a[4]))); break;
        case 12: { int _r = _t->lessonsTrained((*reinterpret_cast< Profile*(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; }  break;
        case 13: { quint64 _r = _t->totalTrainingTime((*reinterpret_cast< Profile*(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< quint64*>(_a[0]) = _r; }  break;
        case 14: { QDateTime _r = _t->lastTrainingSession((*reinterpret_cast< Profile*(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QDateTime*>(_a[0]) = _r; }  break;
        case 15: { bool _r = _t->loadCustomLessons((*reinterpret_cast< Profile*(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< Course*(*)>(_a[3])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 16: { bool _r = _t->storeCustomLesson((*reinterpret_cast< Lesson*(*)>(_a[1])),(*reinterpret_cast< Profile*(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 17: { bool _r = _t->deleteCustomLesson((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        default: ;
        }
    }
}

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

const QMetaObject ProfileDataAccess::staticMetaObject = {
    { &DbAccess::staticMetaObject, qt_meta_stringdata_ProfileDataAccess,
      qt_meta_data_ProfileDataAccess, &staticMetaObjectExtraData }
};

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

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

void *ProfileDataAccess::qt_metacast(const char *_clname)
{
    if (!_clname) return 0;
    if (!strcmp(_clname, qt_meta_stringdata_ProfileDataAccess))
        return static_cast<void*>(const_cast< ProfileDataAccess*>(this));
    return DbAccess::qt_metacast(_clname);
}

int ProfileDataAccess::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = DbAccess::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 18)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 18;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = profileCount(); break;
        }
        _id -= 1;
    } else if (_c == QMetaObject::WriteProperty) {
        _id -= 1;
    } else if (_c == QMetaObject::ResetProperty) {
        _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 ProfileDataAccess::profileCountChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, 0);
}
QT_END_MOC_NAMESPACE
