/****************************************************************************
** Meta object code from reading C++ file 'KeyboardModel.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 "../../../../../sddm/src/greeter/KeyboardModel.h"
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'KeyboardModel.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_ZN4SDDM13KeyboardModelE_t {};
} // unnamed namespace

template <> constexpr inline auto SDDM::KeyboardModel::qt_create_metaobjectdata<qt_meta_tag_ZN4SDDM13KeyboardModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "SDDM::KeyboardModel",
        "numLockStateChanged",
        "",
        "capsLockStateChanged",
        "currentLayoutChanged",
        "layoutsChanged",
        "numLockState",
        "setNumLockState",
        "state",
        "capsLockState",
        "setCapsLockState",
        "layouts",
        "QList<QObject*>",
        "currentLayout",
        "setCurrentLayout",
        "id",
        "enabled",
        "dispatchEvents",
        "numLock",
        "capsLock"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'numLockStateChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'capsLockStateChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'currentLayoutChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'layoutsChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'numLockState'
        QtMocHelpers::SlotData<bool() const>(6, 2, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'setNumLockState'
        QtMocHelpers::SlotData<void(bool)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 8 },
        }}),
        // Slot 'capsLockState'
        QtMocHelpers::SlotData<bool() const>(9, 2, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'setCapsLockState'
        QtMocHelpers::SlotData<void(bool)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 8 },
        }}),
        // Slot 'layouts'
        QtMocHelpers::SlotData<QList<QObject*>() const>(11, 2, QMC::AccessPublic, 0x80000000 | 12),
        // Slot 'currentLayout'
        QtMocHelpers::SlotData<int() const>(13, 2, QMC::AccessPublic, QMetaType::Int),
        // Slot 'setCurrentLayout'
        QtMocHelpers::SlotData<void(int)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 15 },
        }}),
        // Slot 'enabled'
        QtMocHelpers::SlotData<bool() const>(16, 2, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'dispatchEvents'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'numLock'
        QtMocHelpers::PropertyData<bool>(18, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable, 0),
        // property 'capsLock'
        QtMocHelpers::PropertyData<bool>(19, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable, 1),
        // property 'currentLayout'
        QtMocHelpers::PropertyData<int>(13, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'layouts'
        QtMocHelpers::PropertyData<QList<QObject*>>(11, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 3),
        // property 'enabled'
        QtMocHelpers::PropertyData<bool>(16, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<KeyboardModel, qt_meta_tag_ZN4SDDM13KeyboardModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject SDDM::KeyboardModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4SDDM13KeyboardModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4SDDM13KeyboardModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN4SDDM13KeyboardModelE_t>.metaTypes,
    nullptr
} };

void SDDM::KeyboardModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KeyboardModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->numLockStateChanged(); break;
        case 1: _t->capsLockStateChanged(); break;
        case 2: _t->currentLayoutChanged(); break;
        case 3: _t->layoutsChanged(); break;
        case 4: { bool _r = _t->numLockState();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 5: _t->setNumLockState((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 6: { bool _r = _t->capsLockState();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 7: _t->setCapsLockState((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 8: { QList<QObject*> _r = _t->layouts();
            if (_a[0]) *reinterpret_cast<QList<QObject*>*>(_a[0]) = std::move(_r); }  break;
        case 9: { int _r = _t->currentLayout();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 10: _t->setCurrentLayout((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 11: { bool _r = _t->enabled();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 12: _t->dispatchEvents(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (KeyboardModel::*)()>(_a, &KeyboardModel::numLockStateChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (KeyboardModel::*)()>(_a, &KeyboardModel::capsLockStateChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (KeyboardModel::*)()>(_a, &KeyboardModel::currentLayoutChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (KeyboardModel::*)()>(_a, &KeyboardModel::layoutsChanged, 3))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 3:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<QObject*> >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->numLockState(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->capsLockState(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->currentLayout(); break;
        case 3: *reinterpret_cast<QList<QObject*>*>(_v) = _t->layouts(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->enabled(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setNumLockState(*reinterpret_cast<bool*>(_v)); break;
        case 1: _t->setCapsLockState(*reinterpret_cast<bool*>(_v)); break;
        case 2: _t->setCurrentLayout(*reinterpret_cast<int*>(_v)); break;
        default: break;
        }
    }
}

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

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

int SDDM::KeyboardModel::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 < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 13;
    }
    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;
}

// SIGNAL 0
void SDDM::KeyboardModel::numLockStateChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void SDDM::KeyboardModel::capsLockStateChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void SDDM::KeyboardModel::currentLayoutChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void SDDM::KeyboardModel::layoutsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
