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

#include "../../../../libkdegames-26.04.2/src/kgamedifficulty.h"
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kgamedifficulty.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN20KGameDifficultyLevelE_t {};
} // unnamed namespace

template <> constexpr inline auto KGameDifficultyLevel::qt_create_metaobjectdata<qt_meta_tag_ZN20KGameDifficultyLevelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KGameDifficultyLevel",
        "default",
        "hardness",
        "key",
        "title",
        "standardLevel",
        "StandardLevel",
        "Custom",
        "RidiculouslyEasy",
        "VeryEasy",
        "Easy",
        "Medium",
        "Hard",
        "VeryHard",
        "ExtremelyHard",
        "Impossible"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
        // property 'default'
        QtMocHelpers::PropertyData<bool>(1, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'hardness'
        QtMocHelpers::PropertyData<int>(2, QMetaType::Int, QMC::DefaultPropertyFlags),
        // property 'key'
        QtMocHelpers::PropertyData<QByteArray>(3, QMetaType::QByteArray, QMC::DefaultPropertyFlags),
        // property 'title'
        QtMocHelpers::PropertyData<QString>(4, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'standardLevel'
        QtMocHelpers::PropertyData<enum StandardLevel>(5, 0x80000000 | 6, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'StandardLevel'
        QtMocHelpers::EnumData<enum StandardLevel>(6, 6, QMC::EnumFlags{}).add({
            {    7, StandardLevel::Custom },
            {    8, StandardLevel::RidiculouslyEasy },
            {    9, StandardLevel::VeryEasy },
            {   10, StandardLevel::Easy },
            {   11, StandardLevel::Medium },
            {   12, StandardLevel::Hard },
            {   13, StandardLevel::VeryHard },
            {   14, StandardLevel::ExtremelyHard },
            {   15, StandardLevel::Impossible },
        }),
    };
    return QtMocHelpers::metaObjectData<KGameDifficultyLevel, qt_meta_tag_ZN20KGameDifficultyLevelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KGameDifficultyLevel::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN20KGameDifficultyLevelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN20KGameDifficultyLevelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN20KGameDifficultyLevelE_t>.metaTypes,
    nullptr
} };

void KGameDifficultyLevel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KGameDifficultyLevel *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        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<enum StandardLevel*>(_v) = _t->standardLevel(); break;
        default: break;
        }
    }
}

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

void *KGameDifficultyLevel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN20KGameDifficultyLevelE_t>.strings))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int KGameDifficultyLevel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
    return _id;
}
namespace {
struct qt_meta_tag_ZN15KGameDifficultyE_t {};
} // unnamed namespace

template <> constexpr inline auto KGameDifficulty::qt_create_metaobjectdata<qt_meta_tag_ZN15KGameDifficultyE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KGameDifficulty",
        "editableChanged",
        "",
        "editable",
        "gameRunningChanged",
        "gameRunning",
        "currentLevelChanged",
        "const KGameDifficultyLevel*",
        "level",
        "selectedLevelChanged",
        "select",
        "currentLevel",
        "selectedLevel"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'editableChanged'
        QtMocHelpers::SignalData<void(bool)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
        // Signal 'gameRunningChanged'
        QtMocHelpers::SignalData<void(bool)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 5 },
        }}),
        // Signal 'currentLevelChanged'
        QtMocHelpers::SignalData<void(const KGameDifficultyLevel *)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 8 },
        }}),
        // Signal 'selectedLevelChanged'
        QtMocHelpers::SignalData<void(const KGameDifficultyLevel *)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 8 },
        }}),
        // Slot 'select'
        QtMocHelpers::SlotData<void(const KGameDifficultyLevel *)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 8 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'currentLevel'
        QtMocHelpers::PropertyData<const KGameDifficultyLevel*>(11, 0x80000000 | 7, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag, 2),
        // property 'selectedLevel'
        QtMocHelpers::PropertyData<const KGameDifficultyLevel*>(12, 0x80000000 | 7, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag, 3),
        // property 'editable'
        QtMocHelpers::PropertyData<bool>(3, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'gameRunning'
        QtMocHelpers::PropertyData<bool>(5, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<KGameDifficulty, qt_meta_tag_ZN15KGameDifficultyE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KGameDifficulty::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15KGameDifficultyE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15KGameDifficultyE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN15KGameDifficultyE_t>.metaTypes,
    nullptr
} };

void KGameDifficulty::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KGameDifficulty *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->editableChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 1: _t->gameRunningChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 2: _t->currentLevelChanged((*reinterpret_cast<std::add_pointer_t<const KGameDifficultyLevel*>>(_a[1]))); break;
        case 3: _t->selectedLevelChanged((*reinterpret_cast<std::add_pointer_t<const KGameDifficultyLevel*>>(_a[1]))); break;
        case 4: _t->select((*reinterpret_cast<std::add_pointer_t<const KGameDifficultyLevel*>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< const KGameDifficultyLevel* >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< const KGameDifficultyLevel* >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< const KGameDifficultyLevel* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (KGameDifficulty::*)(bool )>(_a, &KGameDifficulty::editableChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (KGameDifficulty::*)(bool )>(_a, &KGameDifficulty::gameRunningChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (KGameDifficulty::*)(const KGameDifficultyLevel * )>(_a, &KGameDifficulty::currentLevelChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (KGameDifficulty::*)(const KGameDifficultyLevel * )>(_a, &KGameDifficulty::selectedLevelChanged, 3))
            return;
    }
    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 KGameDifficultyLevel* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<const KGameDifficultyLevel**>(_v) = _t->currentLevel(); break;
        case 1: *reinterpret_cast<const KGameDifficultyLevel**>(_v) = _t->currentLevel(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->isEditable(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->isGameRunning(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->select(*reinterpret_cast<const KGameDifficultyLevel**>(_v)); break;
        case 1: _t->select(*reinterpret_cast<const KGameDifficultyLevel**>(_v)); break;
        case 2: _t->setEditable(*reinterpret_cast<bool*>(_v)); break;
        case 3: _t->setGameRunning(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

void *KGameDifficulty::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15KGameDifficultyE_t>.strings))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int KGameDifficulty::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;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    }
    return _id;
}

// SIGNAL 0
void KGameDifficulty::editableChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void KGameDifficulty::gameRunningChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void KGameDifficulty::currentLevelChanged(const KGameDifficultyLevel * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void KGameDifficulty::selectedLevelChanged(const KGameDifficultyLevel * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}
QT_WARNING_POP
