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

#include "../../../antimicrox/src/inputdaemon.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 'inputdaemon.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.2. 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_ZN11InputDaemonE_t {};
} // unnamed namespace

template <> constexpr inline auto InputDaemon::qt_create_metaobjectdata<qt_meta_tag_ZN11InputDaemonE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "InputDaemon",
        "joystickRefreshed",
        "",
        "InputDevice*",
        "joystick",
        "joysticksRefreshed",
        "QMap<SDL_JoystickID,InputDevice*>*",
        "joysticks",
        "complete",
        "deviceUpdated",
        "index",
        "device",
        "deviceRemoved",
        "SDL_JoystickID",
        "deviceID",
        "deviceAdded",
        "run",
        "quit",
        "refresh",
        "refreshJoystick",
        "refreshJoysticks",
        "startWorker",
        "refreshMapping",
        "mapping",
        "removeDevice",
        "addInputDevice",
        "QMap<QString,int>&",
        "uniques",
        "int&",
        "counterUniques",
        "bool&",
        "duplicatedGamepad",
        "refreshIndexes",
        "stop",
        "resetActiveButtonMouseDistances",
        "updatePollResetRate",
        "tempPollRate"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'joystickRefreshed'
        QtMocHelpers::SignalData<void(InputDevice *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'joysticksRefreshed'
        QtMocHelpers::SignalData<void(QMap<SDL_JoystickID,InputDevice*> *)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Signal 'complete'
        QtMocHelpers::SignalData<void(InputDevice *)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'complete'
        QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'deviceUpdated'
        QtMocHelpers::SignalData<void(int, InputDevice *)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 10 }, { 0x80000000 | 3, 11 },
        }}),
        // Signal 'deviceRemoved'
        QtMocHelpers::SignalData<void(SDL_JoystickID)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 13, 14 },
        }}),
        // Signal 'deviceAdded'
        QtMocHelpers::SignalData<void(InputDevice *)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 11 },
        }}),
        // Slot 'run'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'quit'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'refresh'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'refreshJoystick'
        QtMocHelpers::SlotData<void(InputDevice *)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'refreshJoysticks'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'startWorker'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'refreshMapping'
        QtMocHelpers::SlotData<void(QString, InputDevice *)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 23 }, { 0x80000000 | 3, 11 },
        }}),
        // Slot 'removeDevice'
        QtMocHelpers::SlotData<void(InputDevice *)>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 11 },
        }}),
        // Slot 'addInputDevice'
        QtMocHelpers::SlotData<void(int, QMap<QString,int> &, int &, bool &)>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 10 }, { 0x80000000 | 26, 27 }, { 0x80000000 | 28, 29 }, { 0x80000000 | 30, 31 },
        }}),
        // Slot 'refreshIndexes'
        QtMocHelpers::SlotData<void()>(32, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'stop'
        QtMocHelpers::SlotData<void()>(33, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'resetActiveButtonMouseDistances'
        QtMocHelpers::SlotData<void()>(34, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'updatePollResetRate'
        QtMocHelpers::SlotData<void(int)>(35, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 36 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<InputDaemon, qt_meta_tag_ZN11InputDaemonE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject InputDaemon::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11InputDaemonE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11InputDaemonE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11InputDaemonE_t>.metaTypes,
    nullptr
} };

void InputDaemon::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<InputDaemon *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->joystickRefreshed((*reinterpret_cast<std::add_pointer_t<InputDevice*>>(_a[1]))); break;
        case 1: _t->joysticksRefreshed((*reinterpret_cast<std::add_pointer_t<QMap<SDL_JoystickID,InputDevice*>*>>(_a[1]))); break;
        case 2: _t->complete((*reinterpret_cast<std::add_pointer_t<InputDevice*>>(_a[1]))); break;
        case 3: _t->complete(); break;
        case 4: _t->deviceUpdated((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<InputDevice*>>(_a[2]))); break;
        case 5: _t->deviceRemoved((*reinterpret_cast<std::add_pointer_t<SDL_JoystickID>>(_a[1]))); break;
        case 6: _t->deviceAdded((*reinterpret_cast<std::add_pointer_t<InputDevice*>>(_a[1]))); break;
        case 7: _t->run(); break;
        case 8: _t->quit(); break;
        case 9: _t->refresh(); break;
        case 10: _t->refreshJoystick((*reinterpret_cast<std::add_pointer_t<InputDevice*>>(_a[1]))); break;
        case 11: _t->refreshJoysticks(); break;
        case 12: _t->startWorker(); break;
        case 13: _t->refreshMapping((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<InputDevice*>>(_a[2]))); break;
        case 14: _t->removeDevice((*reinterpret_cast<std::add_pointer_t<InputDevice*>>(_a[1]))); break;
        case 15: _t->addInputDevice((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QMap<QString,int>&>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int&>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<bool&>>(_a[4]))); break;
        case 16: _t->refreshIndexes(); break;
        case 17: _t->stop(); break;
        case 18: _t->resetActiveButtonMouseDistances(); break;
        case 19: _t->updatePollResetRate((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< InputDevice* >(); break;
            }
            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< InputDevice* >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< InputDevice* >(); break;
            }
            break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< SDL_JoystickID >(); break;
            }
            break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< InputDevice* >(); break;
            }
            break;
        case 10:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< InputDevice* >(); break;
            }
            break;
        case 13:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< InputDevice* >(); break;
            }
            break;
        case 14:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< InputDevice* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (InputDaemon::*)(InputDevice * )>(_a, &InputDaemon::joystickRefreshed, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (InputDaemon::*)(QMap<SDL_JoystickID,InputDevice*> * )>(_a, &InputDaemon::joysticksRefreshed, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (InputDaemon::*)(InputDevice * )>(_a, &InputDaemon::complete, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (InputDaemon::*)()>(_a, &InputDaemon::complete, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (InputDaemon::*)(int , InputDevice * )>(_a, &InputDaemon::deviceUpdated, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (InputDaemon::*)(SDL_JoystickID )>(_a, &InputDaemon::deviceRemoved, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (InputDaemon::*)(InputDevice * )>(_a, &InputDaemon::deviceAdded, 6))
            return;
    }
}

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

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

int InputDaemon::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 < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    }
    return _id;
}

// SIGNAL 0
void InputDaemon::joystickRefreshed(InputDevice * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void InputDaemon::joysticksRefreshed(QMap<SDL_JoystickID,InputDevice*> * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void InputDaemon::complete(InputDevice * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void InputDaemon::complete()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void InputDaemon::deviceUpdated(int _t1, InputDevice * _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1, _t2);
}

// SIGNAL 5
void InputDaemon::deviceRemoved(SDL_JoystickID _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void InputDaemon::deviceAdded(InputDevice * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}
QT_WARNING_POP
