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

 // content:
       6,       // revision
       0,       // classname
       0,    0, // classinfo
       8,   14, // methods
       7,   54, // properties
       1,   82, // enums/sets
       0,    0, // constructors
       0,       // flags
       3,       // signalCount

 // signals: signature, parameters, type, tag, flags
      15,   14,   14,   14, 0x05,
      30,   14,   14,   14, 0x05,
      47,   14,   14,   14, 0x05,

 // slots: signature, parameters, type, tag, flags
      63,   14,   14,   14, 0x08,

 // methods: signature, parameters, type, tag, flags
      72,   14,   14,   14, 0x02,
      88,   14,   14,   14, 0x02,
     103,   14,   14,   14, 0x02,
     126,  111,   14,   14, 0x02,

 // properties: name, type, flags
     162,  158, 0x02495003,
     183,  177, 0x0f495103,
     195,  158, 0x02495001,
     211,  206, 0x01495103,
     225,  219, 0x87495001,
     234,  158, 0x02495001,
     254,  206, 0x01495001,

 // properties: notify_signal_id
       0,
       0,
       0,
       1,
       0,
       0,
       0,

 // enums: name, flags, count, data
     268, 0x0,    2,   86,

 // enum data: key, value
     278, uint(TrainingStats::CorrectCharacter),
     295, uint(TrainingStats::IncorrectCharacter),

       0        // eod
};

static const char qt_meta_stringdata_TrainingStats[] = {
    "TrainingStats\0\0statsChanged()\0"
    "isValidChanged()\0errorsChanged()\0"
    "update()\0startTraining()\0stopTraining()\0"
    "reset()\0character,type\0"
    "logCharacter(QString,EventType)\0int\0"
    "charactesTyped\0QTime\0elapsedTime\0"
    "errorCount\0bool\0isValid\0float\0accuracy\0"
    "charactersPerMinute\0timeIsRunning\0"
    "EventType\0CorrectCharacter\0"
    "IncorrectCharacter\0"
};

void TrainingStats::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Q_ASSERT(staticMetaObject.cast(_o));
        TrainingStats *_t = static_cast<TrainingStats *>(_o);
        switch (_id) {
        case 0: _t->statsChanged(); break;
        case 1: _t->isValidChanged(); break;
        case 2: _t->errorsChanged(); break;
        case 3: _t->update(); break;
        case 4: _t->startTraining(); break;
        case 5: _t->stopTraining(); break;
        case 6: _t->reset(); break;
        case 7: _t->logCharacter((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< EventType(*)>(_a[2]))); break;
        default: ;
        }
    }
}

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

const QMetaObject TrainingStats::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_TrainingStats,
      qt_meta_data_TrainingStats, &staticMetaObjectExtraData }
};

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

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

void *TrainingStats::qt_metacast(const char *_clname)
{
    if (!_clname) return 0;
    if (!strcmp(_clname, qt_meta_stringdata_TrainingStats))
        return static_cast<void*>(const_cast< TrainingStats*>(this));
    return QObject::qt_metacast(_clname);
}

int TrainingStats::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;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = charactesTyped(); break;
        case 1: *reinterpret_cast< QTime*>(_v) = elapsedTime(); break;
        case 2: *reinterpret_cast< int*>(_v) = errorCount(); break;
        case 3: *reinterpret_cast< bool*>(_v) = isValid(); break;
        case 4: *reinterpret_cast< float*>(_v) = accuracy(); break;
        case 5: *reinterpret_cast< int*>(_v) = charactersPerMinute(); break;
        case 6: *reinterpret_cast< bool*>(_v) = timeIsRunning(); break;
        }
        _id -= 7;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: setCharactersTyped(*reinterpret_cast< int*>(_v)); break;
        case 1: setElapsedTime(*reinterpret_cast< QTime*>(_v)); break;
        case 3: setIsValid(*reinterpret_cast< bool*>(_v)); break;
        }
        _id -= 7;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 7;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

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

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

// SIGNAL 2
void TrainingStats::errorsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, 0);
}
QT_END_MOC_NAMESPACE
