/****************************************************************************
** Meta object code from reading C++ file 'mouseactionsmodel.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 "../../../../haruna-1.8.1/src/models/mouseactionsmodel.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 'mouseactionsmodel.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_ZN11MouseActionE_t {};
} // unnamed namespace

template <> constexpr inline auto MouseAction::qt_create_metaobjectdata<qt_meta_tag_ZN11MouseActionE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "MouseAction",
        "QML.Element",
        "mouseAction",
        "actionName",
        "mouseButton",
        "modifier",
        "isDoubleClick"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
        // property 'actionName'
        QtMocHelpers::PropertyData<QString>(3, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable),
        // property 'mouseButton'
        QtMocHelpers::PropertyData<int>(4, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable),
        // property 'modifier'
        QtMocHelpers::PropertyData<int>(5, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable),
        // property 'isDoubleClick'
        QtMocHelpers::PropertyData<bool>(6, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<MouseAction, void>(QMC::PropertyAccessInStaticMetaCall, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject MouseAction::staticMetaObject = { {
    nullptr,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11MouseActionE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11MouseActionE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11MouseActionE_t>.metaTypes,
    nullptr
} };

void MouseAction::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = reinterpret_cast<MouseAction *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->actionName; break;
        case 1: *reinterpret_cast<int*>(_v) = _t->mouseButton; break;
        case 2: *reinterpret_cast<int*>(_v) = _t->modifier; break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->isDoubleClick; break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: QtMocHelpers::setProperty(_t->actionName, *reinterpret_cast<QString*>(_v)); break;
        case 1: QtMocHelpers::setProperty(_t->mouseButton, *reinterpret_cast<int*>(_v)); break;
        case 2: QtMocHelpers::setProperty(_t->modifier, *reinterpret_cast<int*>(_v)); break;
        case 3: QtMocHelpers::setProperty(_t->isDoubleClick, *reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}
namespace {
struct qt_meta_tag_ZN17MouseActionsModelE_t {};
} // unnamed namespace

template <> constexpr inline auto MouseActionsModel::qt_create_metaobjectdata<qt_meta_tag_ZN17MouseActionsModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "MouseActionsModel",
        "QML.Element",
        "auto",
        "addAction",
        "",
        "actionName",
        "button",
        "modifier",
        "isDoubleClick",
        "editAction",
        "MouseAction",
        "mouseAction",
        "removeAction",
        "row",
        "getAction",
        "MouseActionsModel::MouseButton",
        "Qt::KeyboardModifier",
        "actionExists",
        "stringToMouseButton",
        "token",
        "stringToModifier",
        "Roles",
        "MouseActionRole",
        "ActionName",
        "Button",
        "I18nButton",
        "Modifier",
        "I18nModifier",
        "IsDoubleClick",
        "MouseButton",
        "NoButton",
        "Left",
        "Middle",
        "Right",
        "Forward",
        "Back",
        "ScrollUp",
        "ScrollDown"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'addAction'
        QtMocHelpers::SlotData<void(const QString &, const QString &, const QString &, bool)>(3, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 5 }, { QMetaType::QString, 6 }, { QMetaType::QString, 7 }, { QMetaType::Bool, 8 },
        }}),
        // Slot 'editAction'
        QtMocHelpers::SlotData<void(const MouseAction &)>(9, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Slot 'removeAction'
        QtMocHelpers::SlotData<void(uint)>(12, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 13 },
        }}),
        // Slot 'getAction'
        QtMocHelpers::SlotData<QString(MouseActionsModel::MouseButton, Qt::KeyboardModifier, bool)>(14, 4, QMC::AccessPublic, QMetaType::QString, {{
            { 0x80000000 | 15, 6 }, { 0x80000000 | 16, 7 }, { QMetaType::Bool, 8 },
        }}),
        // Slot 'getAction'
        QtMocHelpers::SlotData<QString(MouseActionsModel::MouseButton, Qt::KeyboardModifier)>(14, 4, QMC::AccessPublic | QMC::MethodCloned, QMetaType::QString, {{
            { 0x80000000 | 15, 6 }, { 0x80000000 | 16, 7 },
        }}),
        // Slot 'getAction'
        QtMocHelpers::SlotData<QString(MouseActionsModel::MouseButton)>(14, 4, QMC::AccessPublic | QMC::MethodCloned, QMetaType::QString, {{
            { 0x80000000 | 15, 6 },
        }}),
        // Slot 'actionExists'
        QtMocHelpers::SlotData<bool(const QString &, const QString &, bool)>(17, 4, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 6 }, { QMetaType::QString, 7 }, { QMetaType::Bool, 8 },
        }}),
        // Slot 'stringToMouseButton'
        QtMocHelpers::SlotData<MouseActionsModel::MouseButton(const QString &)>(18, 4, QMC::AccessPublic, 0x80000000 | 15, {{
            { QMetaType::QString, 19 },
        }}),
        // Slot 'stringToModifier'
        QtMocHelpers::SlotData<Qt::KeyboardModifier(const QString &)>(20, 4, QMC::AccessPublic, 0x80000000 | 16, {{
            { QMetaType::QString, 19 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Roles'
        QtMocHelpers::EnumData<enum Roles>(21, 21, QMC::EnumFlags{}).add({
            {   22, Roles::MouseActionRole },
            {   23, Roles::ActionName },
            {   24, Roles::Button },
            {   25, Roles::I18nButton },
            {   26, Roles::Modifier },
            {   27, Roles::I18nModifier },
            {   28, Roles::IsDoubleClick },
        }),
        // enum 'MouseButton'
        QtMocHelpers::EnumData<enum MouseButton>(29, 29, QMC::EnumFlags{}).add({
            {   30, MouseButton::NoButton },
            {   31, MouseButton::Left },
            {   32, MouseButton::Middle },
            {   33, MouseButton::Right },
            {   34, MouseButton::Forward },
            {   35, MouseButton::Back },
            {   36, MouseButton::ScrollUp },
            {   37, MouseButton::ScrollDown },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<MouseActionsModel, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject MouseActionsModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractListModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17MouseActionsModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17MouseActionsModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN17MouseActionsModelE_t>.metaTypes,
    nullptr
} };

void MouseActionsModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MouseActionsModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->addAction((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[4]))); break;
        case 1: _t->editAction((*reinterpret_cast<std::add_pointer_t<MouseAction>>(_a[1]))); break;
        case 2: _t->removeAction((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1]))); break;
        case 3: { QString _r = _t->getAction((*reinterpret_cast<std::add_pointer_t<MouseActionsModel::MouseButton>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Qt::KeyboardModifier>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 4: { QString _r = _t->getAction((*reinterpret_cast<std::add_pointer_t<MouseActionsModel::MouseButton>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Qt::KeyboardModifier>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 5: { QString _r = _t->getAction((*reinterpret_cast<std::add_pointer_t<MouseActionsModel::MouseButton>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 6: { bool _r = _t->actionExists((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 7: { MouseActionsModel::MouseButton _r = _t->stringToMouseButton((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<MouseActionsModel::MouseButton*>(_a[0]) = std::move(_r); }  break;
        case 8: { Qt::KeyboardModifier _r = _t->stringToModifier((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<Qt::KeyboardModifier*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
}

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

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

int MouseActionsModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractListModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 9)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 9;
    }
    return _id;
}
QT_WARNING_POP
