/****************************************************************************
** Meta object code from reading C++ file 'trainingstats.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/ktouch-17.04.3/src/core/trainingstats.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'trainingstats.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_TrainingStats_t {
    QByteArrayData data[22];
    char stringdata0[260];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_TrainingStats_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_TrainingStats_t qt_meta_stringdata_TrainingStats = {
    {
QT_MOC_LITERAL(0, 0, 13), // "TrainingStats"
QT_MOC_LITERAL(1, 14, 12), // "statsChanged"
QT_MOC_LITERAL(2, 27, 0), // ""
QT_MOC_LITERAL(3, 28, 14), // "isValidChanged"
QT_MOC_LITERAL(4, 43, 13), // "errorsChanged"
QT_MOC_LITERAL(5, 57, 6), // "update"
QT_MOC_LITERAL(6, 64, 13), // "startTraining"
QT_MOC_LITERAL(7, 78, 12), // "stopTraining"
QT_MOC_LITERAL(8, 91, 5), // "reset"
QT_MOC_LITERAL(9, 97, 12), // "logCharacter"
QT_MOC_LITERAL(10, 110, 9), // "character"
QT_MOC_LITERAL(11, 120, 9), // "EventType"
QT_MOC_LITERAL(12, 130, 4), // "type"
QT_MOC_LITERAL(13, 135, 14), // "charactesTyped"
QT_MOC_LITERAL(14, 150, 11), // "elapsedTime"
QT_MOC_LITERAL(15, 162, 10), // "errorCount"
QT_MOC_LITERAL(16, 173, 7), // "isValid"
QT_MOC_LITERAL(17, 181, 8), // "accuracy"
QT_MOC_LITERAL(18, 190, 19), // "charactersPerMinute"
QT_MOC_LITERAL(19, 210, 13), // "timeIsRunning"
QT_MOC_LITERAL(20, 224, 16), // "CorrectCharacter"
QT_MOC_LITERAL(21, 241, 18) // "IncorrectCharacter"

    },
    "TrainingStats\0statsChanged\0\0isValidChanged\0"
    "errorsChanged\0update\0startTraining\0"
    "stopTraining\0reset\0logCharacter\0"
    "character\0EventType\0type\0charactesTyped\0"
    "elapsedTime\0errorCount\0isValid\0accuracy\0"
    "charactersPerMinute\0timeIsRunning\0"
    "CorrectCharacter\0IncorrectCharacter"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_TrainingStats[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   54,    2, 0x06 /* Public */,
       3,    0,   55,    2, 0x06 /* Public */,
       4,    0,   56,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       5,    0,   57,    2, 0x08 /* Private */,

 // methods: name, argc, parameters, tag, flags
       6,    0,   58,    2, 0x02 /* Public */,
       7,    0,   59,    2, 0x02 /* Public */,
       8,    0,   60,    2, 0x02 /* Public */,
       9,    2,   61,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,

 // methods: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 11,   10,   12,

 // properties: name, type, flags
      13, QMetaType::Int, 0x00495003,
      14, QMetaType::QTime, 0x00495103,
      15, QMetaType::Int, 0x00495001,
      16, QMetaType::Bool, 0x00495103,
      17, QMetaType::Float, 0x00495001,
      18, QMetaType::Int, 0x00495001,
      19, QMetaType::Bool, 0x00495001,

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

 // enums: name, flags, count, data
      11, 0x0,    2,   98,

 // enum data: key, value
      20, uint(TrainingStats::CorrectCharacter),
      21, uint(TrainingStats::IncorrectCharacter),

       0        // eod
};

void TrainingStats::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        TrainingStats *_t = static_cast<TrainingStats *>(_o);
        Q_UNUSED(_t)
        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: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (TrainingStats::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TrainingStats::statsChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (TrainingStats::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TrainingStats::isValidChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (TrainingStats::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TrainingStats::errorsChanged)) {
                *result = 2;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        TrainingStats *_t = static_cast<TrainingStats *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = _t->charactesTyped(); break;
        case 1: *reinterpret_cast< QTime*>(_v) = _t->elapsedTime(); break;
        case 2: *reinterpret_cast< int*>(_v) = _t->errorCount(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->isValid(); break;
        case 4: *reinterpret_cast< float*>(_v) = _t->accuracy(); break;
        case 5: *reinterpret_cast< int*>(_v) = _t->charactersPerMinute(); break;
        case 6: *reinterpret_cast< bool*>(_v) = _t->timeIsRunning(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        TrainingStats *_t = static_cast<TrainingStats *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setCharactersTyped(*reinterpret_cast< int*>(_v)); break;
        case 1: _t->setElapsedTime(*reinterpret_cast< QTime*>(_v)); break;
        case 3: _t->setIsValid(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject TrainingStats::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_TrainingStats.data,
      qt_meta_data_TrainingStats,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *TrainingStats::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_TrainingStats.stringdata0))
        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;
    } 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 -= 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, Q_NULLPTR);
}

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

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