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

#include "../../../../../sddm-0.21.0/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 != 68
#error "This file was generated using the moc from 6.8.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


#ifdef QT_MOC_HAS_STRINGDATA
static constexpr auto qt_meta_stringdata_ZN4SDDM13KeyboardModelE = QtMocHelpers::stringData(
    "SDDM::KeyboardModel",
    "numLockStateChanged",
    "",
    "capsLockStateChanged",
    "currentLayoutChanged",
    "layoutsChanged",
    "numLockState",
    "setNumLockState",
    "state",
    "capsLockState",
    "setCapsLockState",
    "layouts",
    "QList<QObject*>",
    "currentLayout",
    "setCurrentLayout",
    "id",
    "enabled",
    "dispatchEvents",
    "numLock",
    "capsLock"
);
#else  // !QT_MOC_HAS_STRINGDATA
#error "qtmochelpers.h not found or too old."
#endif // !QT_MOC_HAS_STRINGDATA

Q_CONSTINIT static const uint qt_meta_data_ZN4SDDM13KeyboardModelE[] = {

 // content:
      12,       // revision
       0,       // classname
       0,    0, // classinfo
      13,   14, // methods
       5,  111, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: name, argc, parameters, tag, flags, initial metatype offsets
       1,    0,   92,    2, 0x06,    6 /* Public */,
       3,    0,   93,    2, 0x06,    7 /* Public */,
       4,    0,   94,    2, 0x06,    8 /* Public */,
       5,    0,   95,    2, 0x06,    9 /* Public */,

 // slots: name, argc, parameters, tag, flags, initial metatype offsets
       6,    0,   96,    2, 0x10a,   10 /* Public | MethodIsConst  */,
       7,    1,   97,    2, 0x0a,   11 /* Public */,
       9,    0,  100,    2, 0x10a,   13 /* Public | MethodIsConst  */,
      10,    1,  101,    2, 0x0a,   14 /* Public */,
      11,    0,  104,    2, 0x10a,   16 /* Public | MethodIsConst  */,
      13,    0,  105,    2, 0x10a,   17 /* Public | MethodIsConst  */,
      14,    1,  106,    2, 0x0a,   18 /* Public */,
      16,    0,  109,    2, 0x10a,   20 /* Public | MethodIsConst  */,
      17,    0,  110,    2, 0x08,   21 /* Private */,

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

 // slots: parameters
    QMetaType::Bool,
    QMetaType::Void, QMetaType::Bool,    8,
    QMetaType::Bool,
    QMetaType::Void, QMetaType::Bool,    8,
    0x80000000 | 12,
    QMetaType::Int,
    QMetaType::Void, QMetaType::Int,   15,
    QMetaType::Bool,
    QMetaType::Void,

 // properties: name, type, flags, notifyId, revision
      18, QMetaType::Bool, 0x00015003, uint(0), 0,
      19, QMetaType::Bool, 0x00015003, uint(1), 0,
      13, QMetaType::Int, 0x00015103, uint(2), 0,
      11, 0x80000000 | 12, 0x00015009, uint(3), 0,
      16, QMetaType::Bool, 0x00015401, uint(-1), 0,

       0        // eod
};

Q_CONSTINIT const QMetaObject SDDM::KeyboardModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_ZN4SDDM13KeyboardModelE.offsetsAndSizes,
    qt_meta_data_ZN4SDDM13KeyboardModelE,
    qt_static_metacall,
    nullptr,
    qt_incomplete_metaTypeArray<qt_meta_tag_ZN4SDDM13KeyboardModelE_t,
        // property 'numLock'
        QtPrivate::TypeAndForceComplete<bool, std::true_type>,
        // property 'capsLock'
        QtPrivate::TypeAndForceComplete<bool, std::true_type>,
        // property 'currentLayout'
        QtPrivate::TypeAndForceComplete<int, std::true_type>,
        // property 'layouts'
        QtPrivate::TypeAndForceComplete<QList<QObject*>, std::true_type>,
        // property 'enabled'
        QtPrivate::TypeAndForceComplete<bool, std::true_type>,
        // Q_OBJECT / Q_GADGET
        QtPrivate::TypeAndForceComplete<KeyboardModel, std::true_type>,
        // method 'numLockStateChanged'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'capsLockStateChanged'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'currentLayoutChanged'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'layoutsChanged'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'numLockState'
        QtPrivate::TypeAndForceComplete<bool, std::false_type>,
        // method 'setNumLockState'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<bool, std::false_type>,
        // method 'capsLockState'
        QtPrivate::TypeAndForceComplete<bool, std::false_type>,
        // method 'setCapsLockState'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<bool, std::false_type>,
        // method 'layouts'
        QtPrivate::TypeAndForceComplete<QList<QObject*>, std::false_type>,
        // method 'currentLayout'
        QtPrivate::TypeAndForceComplete<int, std::false_type>,
        // method 'setCurrentLayout'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<int, std::false_type>,
        // method 'enabled'
        QtPrivate::TypeAndForceComplete<bool, std::false_type>,
        // method 'dispatchEvents'
        QtPrivate::TypeAndForceComplete<void, std::false_type>
    >,
    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) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _q_method_type = void (KeyboardModel::*)();
            if (_q_method_type _q_method = &KeyboardModel::numLockStateChanged; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
                *result = 0;
                return;
            }
        }
        {
            using _q_method_type = void (KeyboardModel::*)();
            if (_q_method_type _q_method = &KeyboardModel::capsLockStateChanged; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
                *result = 1;
                return;
            }
        }
        {
            using _q_method_type = void (KeyboardModel::*)();
            if (_q_method_type _q_method = &KeyboardModel::currentLayoutChanged; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
                *result = 2;
                return;
            }
        }
        {
            using _q_method_type = void (KeyboardModel::*)();
            if (_q_method_type _q_method = &KeyboardModel::layoutsChanged; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
                *result = 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_meta_stringdata_ZN4SDDM13KeyboardModelE.stringdata0))
        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
