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

#include "../src/libkdegames-17.08.3/kgdifficulty.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kgdifficulty.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.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
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_KgDifficultyLevel_t {
    QByteArrayData data[16];
    char stringdata0[157];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KgDifficultyLevel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KgDifficultyLevel_t qt_meta_stringdata_KgDifficultyLevel = {
    {
QT_MOC_LITERAL(0, 0, 17), // "KgDifficultyLevel"
QT_MOC_LITERAL(1, 18, 7), // "default"
QT_MOC_LITERAL(2, 26, 8), // "hardness"
QT_MOC_LITERAL(3, 35, 3), // "key"
QT_MOC_LITERAL(4, 39, 5), // "title"
QT_MOC_LITERAL(5, 45, 13), // "standardLevel"
QT_MOC_LITERAL(6, 59, 13), // "StandardLevel"
QT_MOC_LITERAL(7, 73, 6), // "Custom"
QT_MOC_LITERAL(8, 80, 16), // "RidiculouslyEasy"
QT_MOC_LITERAL(9, 97, 8), // "VeryEasy"
QT_MOC_LITERAL(10, 106, 4), // "Easy"
QT_MOC_LITERAL(11, 111, 6), // "Medium"
QT_MOC_LITERAL(12, 118, 4), // "Hard"
QT_MOC_LITERAL(13, 123, 8), // "VeryHard"
QT_MOC_LITERAL(14, 132, 13), // "ExtremelyHard"
QT_MOC_LITERAL(15, 146, 10) // "Impossible"

    },
    "KgDifficultyLevel\0default\0hardness\0"
    "key\0title\0standardLevel\0StandardLevel\0"
    "Custom\0RidiculouslyEasy\0VeryEasy\0Easy\0"
    "Medium\0Hard\0VeryHard\0ExtremelyHard\0"
    "Impossible"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KgDifficultyLevel[] = {

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

 // properties: name, type, flags
       1, QMetaType::Bool, 0x00095001,
       2, QMetaType::Int, 0x00095001,
       3, QMetaType::QByteArray, 0x00095001,
       4, QMetaType::QString, 0x00095001,
       5, 0x80000000 | 6, 0x00095009,

 // enums: name, flags, count, data
       6, 0x0,    9,   33,

 // enum data: key, value
       7, uint(KgDifficultyLevel::Custom),
       8, uint(KgDifficultyLevel::RidiculouslyEasy),
       9, uint(KgDifficultyLevel::VeryEasy),
      10, uint(KgDifficultyLevel::Easy),
      11, uint(KgDifficultyLevel::Medium),
      12, uint(KgDifficultyLevel::Hard),
      13, uint(KgDifficultyLevel::VeryHard),
      14, uint(KgDifficultyLevel::ExtremelyHard),
      15, uint(KgDifficultyLevel::Impossible),

       0        // eod
};

void KgDifficultyLevel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{

#ifndef QT_NO_PROPERTIES
    if (_c == QMetaObject::ReadProperty) {
        KgDifficultyLevel *_t = static_cast<KgDifficultyLevel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->isDefault(); break;
        case 1: *reinterpret_cast< int*>(_v) = _t->hardness(); break;
        case 2: *reinterpret_cast< QByteArray*>(_v) = _t->key(); break;
        case 3: *reinterpret_cast< QString*>(_v) = _t->title(); break;
        case 4: *reinterpret_cast< StandardLevel*>(_v) = _t->standardLevel(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
    Q_UNUSED(_o);
    Q_UNUSED(_id);
    Q_UNUSED(_c);
    Q_UNUSED(_a);
}

const QMetaObject KgDifficultyLevel::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KgDifficultyLevel.data,
      qt_meta_data_KgDifficultyLevel,  qt_static_metacall, nullptr, nullptr}
};


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

void *KgDifficultyLevel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_KgDifficultyLevel.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int KgDifficultyLevel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    
#ifndef QT_NO_PROPERTIES
   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;
}
struct qt_meta_stringdata_KgDifficulty_t {
    QByteArrayData data[13];
    char stringdata0[176];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KgDifficulty_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KgDifficulty_t qt_meta_stringdata_KgDifficulty = {
    {
QT_MOC_LITERAL(0, 0, 12), // "KgDifficulty"
QT_MOC_LITERAL(1, 13, 15), // "editableChanged"
QT_MOC_LITERAL(2, 29, 0), // ""
QT_MOC_LITERAL(3, 30, 8), // "editable"
QT_MOC_LITERAL(4, 39, 18), // "gameRunningChanged"
QT_MOC_LITERAL(5, 58, 11), // "gameRunning"
QT_MOC_LITERAL(6, 70, 19), // "currentLevelChanged"
QT_MOC_LITERAL(7, 90, 24), // "const KgDifficultyLevel*"
QT_MOC_LITERAL(8, 115, 5), // "level"
QT_MOC_LITERAL(9, 121, 20), // "selectedLevelChanged"
QT_MOC_LITERAL(10, 142, 6), // "select"
QT_MOC_LITERAL(11, 149, 12), // "currentLevel"
QT_MOC_LITERAL(12, 162, 13) // "selectedLevel"

    },
    "KgDifficulty\0editableChanged\0\0editable\0"
    "gameRunningChanged\0gameRunning\0"
    "currentLevelChanged\0const KgDifficultyLevel*\0"
    "level\0selectedLevelChanged\0select\0"
    "currentLevel\0selectedLevel"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KgDifficulty[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   39,    2, 0x06 /* Public */,
       4,    1,   42,    2, 0x06 /* Public */,
       6,    1,   45,    2, 0x06 /* Public */,
       9,    1,   48,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      10,    1,   51,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::Bool,    3,
    QMetaType::Void, QMetaType::Bool,    5,
    QMetaType::Void, 0x80000000 | 7,    8,
    QMetaType::Void, 0x80000000 | 7,    8,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 7,    8,

 // properties: name, type, flags
      11, 0x80000000 | 7, 0x0049500b,
      12, 0x80000000 | 7, 0x0049500b,
       3, QMetaType::Bool, 0x00495103,
       5, QMetaType::Bool, 0x00495103,

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

       0        // eod
};

void KgDifficulty::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KgDifficulty *_t = static_cast<KgDifficulty *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->editableChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 1: _t->gameRunningChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 2: _t->currentLevelChanged((*reinterpret_cast< const KgDifficultyLevel*(*)>(_a[1]))); break;
        case 3: _t->selectedLevelChanged((*reinterpret_cast< const KgDifficultyLevel*(*)>(_a[1]))); break;
        case 4: _t->select((*reinterpret_cast< const KgDifficultyLevel*(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< const KgDifficultyLevel* >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< const KgDifficultyLevel* >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< const KgDifficultyLevel* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (KgDifficulty::*_t)(bool );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KgDifficulty::editableChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (KgDifficulty::*_t)(bool );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KgDifficulty::gameRunningChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (KgDifficulty::*_t)(const KgDifficultyLevel * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KgDifficulty::currentLevelChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (KgDifficulty::*_t)(const KgDifficultyLevel * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KgDifficulty::selectedLevelChanged)) {
                *result = 3;
                return;
            }
        }
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 1:
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< const KgDifficultyLevel* >(); break;
        }
    }

#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        KgDifficulty *_t = static_cast<KgDifficulty *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< const KgDifficultyLevel**>(_v) = _t->currentLevel(); break;
        case 1: *reinterpret_cast< const KgDifficultyLevel**>(_v) = _t->currentLevel(); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->isEditable(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->isGameRunning(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        KgDifficulty *_t = static_cast<KgDifficulty *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->select(*reinterpret_cast< const KgDifficultyLevel**>(_v)); break;
        case 1: _t->select(*reinterpret_cast< const KgDifficultyLevel**>(_v)); break;
        case 2: _t->setEditable(*reinterpret_cast< bool*>(_v)); break;
        case 3: _t->setGameRunning(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject KgDifficulty::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KgDifficulty.data,
      qt_meta_data_KgDifficulty,  qt_static_metacall, nullptr, nullptr}
};


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

void *KgDifficulty::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_KgDifficulty.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int KgDifficulty::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 < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
#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 -= 4;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 4;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void KgDifficulty::editableChanged(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void KgDifficulty::gameRunningChanged(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void KgDifficulty::currentLevelChanged(const KgDifficultyLevel * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void KgDifficulty::selectedLevelChanged(const KgDifficultyLevel * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
