/****************************************************************************
** Meta object code from reading C++ file 'mainwindow.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/gui/mainwindow.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 'mainwindow.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_ZN10MainWindowE_t {};
} // unnamed namespace

template <> constexpr inline auto MainWindow::qt_create_metaobjectdata<qt_meta_tag_ZN10MainWindowE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "MainWindow",
        "joystickRefreshRequested",
        "",
        "readConfig",
        "index",
        "mappingUpdated",
        "mapping",
        "InputDevice*",
        "device",
        "checkEachTenMinutesBattery",
        "QMap<SDL_JoystickID,InputDevice*>*",
        "joysticks",
        "fillButtons",
        "makeJoystickTabs",
        "alterConfigFromSettings",
        "fillButtonsID",
        "joystick",
        "fillButtonsMap",
        "startJoystickRefresh",
        "hideWindow",
        "saveAppConfig",
        "loadAppConfig",
        "forceRefresh",
        "removeJoyTabs",
        "quitProgram",
        "changeWindowStatus",
        "refreshTabHelperThreads",
        "testMappingUpdateNow",
        "removeJoyTab",
        "SDL_JoystickID",
        "deviceID",
        "addJoyTab",
        "selectControllerJoyTab",
        "GUID",
        "handleInstanceDisconnect",
        "refreshTrayIconMenu",
        "trayIconClickAction",
        "QSystemTrayIcon::ActivationReason",
        "reason",
        "mainMenuChange",
        "QMenu*",
        "tempMenu",
        "disableFlashActions",
        "enableFlashActions",
        "joystickTrayShow",
        "tempmenu",
        "singleTrayProfileMenuShow",
        "profileTrayActionTriggered",
        "QAction*",
        "action",
        "checked",
        "populateTrayIcon",
        "openAboutDialog",
        "openJoystickStatusWindow",
        "openKeyCheckerDialog",
        "openGitHubPage",
        "openIssuesPage",
        "openWikiPage",
        "openCalibration",
        "propogateNameDisplayStatus",
        "JoyTabWidget*",
        "tabwidget",
        "displayNames",
        "changeLanguage",
        "language",
        "openMainSettingsDialog",
        "showStickAssignmentDialog",
        "checkHideEmptyOption",
        "propogateMappingUpdate",
        "autoprofileLoad",
        "AutoProfileInfo*",
        "info",
        "checkAutoProfileWatcherTimer",
        "updateMenuOptions"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'joystickRefreshRequested'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'readConfig'
        QtMocHelpers::SignalData<void(int)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 4 },
        }}),
        // Signal 'mappingUpdated'
        QtMocHelpers::SignalData<void(QString, InputDevice *)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 6 }, { 0x80000000 | 7, 8 },
        }}),
        // Slot 'checkEachTenMinutesBattery'
        QtMocHelpers::SlotData<void(QMap<SDL_JoystickID,InputDevice*> *)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Slot 'fillButtons'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'makeJoystickTabs'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'alterConfigFromSettings'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'fillButtonsID'
        QtMocHelpers::SlotData<void(InputDevice *)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 16 },
        }}),
        // Slot 'fillButtonsMap'
        QtMocHelpers::SlotData<void(QMap<SDL_JoystickID,InputDevice*> *)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Slot 'startJoystickRefresh'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'hideWindow'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'saveAppConfig'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'loadAppConfig'
        QtMocHelpers::SlotData<void(bool)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 22 },
        }}),
        // Slot 'loadAppConfig'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'removeJoyTabs'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'quitProgram'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'changeWindowStatus'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'refreshTabHelperThreads'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'testMappingUpdateNow'
        QtMocHelpers::SlotData<void(int, InputDevice *)>(27, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 4 }, { 0x80000000 | 7, 8 },
        }}),
        // Slot 'removeJoyTab'
        QtMocHelpers::SlotData<void(SDL_JoystickID)>(28, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 29, 30 },
        }}),
        // Slot 'addJoyTab'
        QtMocHelpers::SlotData<void(InputDevice *)>(31, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 8 },
        }}),
        // Slot 'selectControllerJoyTab'
        QtMocHelpers::SlotData<void(QString)>(32, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 33 },
        }}),
        // Slot 'handleInstanceDisconnect'
        QtMocHelpers::SlotData<void()>(34, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'refreshTrayIconMenu'
        QtMocHelpers::SlotData<void()>(35, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'trayIconClickAction'
        QtMocHelpers::SlotData<void(QSystemTrayIcon::ActivationReason)>(36, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 37, 38 },
        }}),
        // Slot 'mainMenuChange'
        QtMocHelpers::SlotData<void(QMenu *)>(39, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 40, 41 },
        }}),
        // Slot 'disableFlashActions'
        QtMocHelpers::SlotData<void()>(42, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'enableFlashActions'
        QtMocHelpers::SlotData<void()>(43, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'joystickTrayShow'
        QtMocHelpers::SlotData<void(QMenu *)>(44, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 40, 45 },
        }}),
        // Slot 'singleTrayProfileMenuShow'
        QtMocHelpers::SlotData<void()>(46, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'profileTrayActionTriggered'
        QtMocHelpers::SlotData<void(QAction *, bool)>(47, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 48, 49 }, { QMetaType::Bool, 50 },
        }}),
        // Slot 'populateTrayIcon'
        QtMocHelpers::SlotData<void()>(51, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'openAboutDialog'
        QtMocHelpers::SlotData<void()>(52, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'openJoystickStatusWindow'
        QtMocHelpers::SlotData<void()>(53, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'openKeyCheckerDialog'
        QtMocHelpers::SlotData<void()>(54, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'openGitHubPage'
        QtMocHelpers::SlotData<void()>(55, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'openIssuesPage'
        QtMocHelpers::SlotData<void()>(56, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'openWikiPage'
        QtMocHelpers::SlotData<void()>(57, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'openCalibration'
        QtMocHelpers::SlotData<void()>(58, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'propogateNameDisplayStatus'
        QtMocHelpers::SlotData<void(JoyTabWidget *, bool)>(59, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 60, 61 }, { QMetaType::Bool, 62 },
        }}),
        // Slot 'changeLanguage'
        QtMocHelpers::SlotData<void(QString)>(63, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 64 },
        }}),
        // Slot 'openMainSettingsDialog'
        QtMocHelpers::SlotData<void()>(65, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'showStickAssignmentDialog'
        QtMocHelpers::SlotData<void()>(66, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'checkHideEmptyOption'
        QtMocHelpers::SlotData<void()>(67, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'propogateMappingUpdate'
        QtMocHelpers::SlotData<void(QString, InputDevice *)>(68, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 6 }, { 0x80000000 | 7, 8 },
        }}),
        // Slot 'autoprofileLoad'
        QtMocHelpers::SlotData<void(AutoProfileInfo *)>(69, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 70, 71 },
        }}),
        // Slot 'checkAutoProfileWatcherTimer'
        QtMocHelpers::SlotData<void()>(72, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'updateMenuOptions'
        QtMocHelpers::SlotData<void()>(73, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<MainWindow, qt_meta_tag_ZN10MainWindowE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject MainWindow::staticMetaObject = { {
    QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10MainWindowE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10MainWindowE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10MainWindowE_t>.metaTypes,
    nullptr
} };

void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MainWindow *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->joystickRefreshRequested(); break;
        case 1: _t->readConfig((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 2: _t->mappingUpdated((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<InputDevice*>>(_a[2]))); break;
        case 3: _t->checkEachTenMinutesBattery((*reinterpret_cast<std::add_pointer_t<QMap<SDL_JoystickID,InputDevice*>*>>(_a[1]))); break;
        case 4: _t->fillButtons(); break;
        case 5: _t->makeJoystickTabs(); break;
        case 6: _t->alterConfigFromSettings(); break;
        case 7: _t->fillButtonsID((*reinterpret_cast<std::add_pointer_t<InputDevice*>>(_a[1]))); break;
        case 8: _t->fillButtonsMap((*reinterpret_cast<std::add_pointer_t<QMap<SDL_JoystickID,InputDevice*>*>>(_a[1]))); break;
        case 9: _t->startJoystickRefresh(); break;
        case 10: _t->hideWindow(); break;
        case 11: _t->saveAppConfig(); break;
        case 12: _t->loadAppConfig((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 13: _t->loadAppConfig(); break;
        case 14: _t->removeJoyTabs(); break;
        case 15: _t->quitProgram(); break;
        case 16: _t->changeWindowStatus(); break;
        case 17: _t->refreshTabHelperThreads(); break;
        case 18: _t->testMappingUpdateNow((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<InputDevice*>>(_a[2]))); break;
        case 19: _t->removeJoyTab((*reinterpret_cast<std::add_pointer_t<SDL_JoystickID>>(_a[1]))); break;
        case 20: _t->addJoyTab((*reinterpret_cast<std::add_pointer_t<InputDevice*>>(_a[1]))); break;
        case 21: _t->selectControllerJoyTab((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 22: _t->handleInstanceDisconnect(); break;
        case 23: _t->refreshTrayIconMenu(); break;
        case 24: _t->trayIconClickAction((*reinterpret_cast<std::add_pointer_t<QSystemTrayIcon::ActivationReason>>(_a[1]))); break;
        case 25: _t->mainMenuChange((*reinterpret_cast<std::add_pointer_t<QMenu*>>(_a[1]))); break;
        case 26: _t->disableFlashActions(); break;
        case 27: _t->enableFlashActions(); break;
        case 28: _t->joystickTrayShow((*reinterpret_cast<std::add_pointer_t<QMenu*>>(_a[1]))); break;
        case 29: _t->singleTrayProfileMenuShow(); break;
        case 30: _t->profileTrayActionTriggered((*reinterpret_cast<std::add_pointer_t<QAction*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 31: _t->populateTrayIcon(); break;
        case 32: _t->openAboutDialog(); break;
        case 33: _t->openJoystickStatusWindow(); break;
        case 34: _t->openKeyCheckerDialog(); break;
        case 35: _t->openGitHubPage(); break;
        case 36: _t->openIssuesPage(); break;
        case 37: _t->openWikiPage(); break;
        case 38: _t->openCalibration(); break;
        case 39: _t->propogateNameDisplayStatus((*reinterpret_cast<std::add_pointer_t<JoyTabWidget*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 40: _t->changeLanguage((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 41: _t->openMainSettingsDialog(); break;
        case 42: _t->showStickAssignmentDialog(); break;
        case 43: _t->checkHideEmptyOption(); break;
        case 44: _t->propogateMappingUpdate((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<InputDevice*>>(_a[2]))); break;
        case 45: _t->autoprofileLoad((*reinterpret_cast<std::add_pointer_t<AutoProfileInfo*>>(_a[1]))); break;
        case 46: _t->checkAutoProfileWatcherTimer(); break;
        case 47: _t->updateMenuOptions(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 30:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QAction* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (MainWindow::*)()>(_a, &MainWindow::joystickRefreshRequested, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (MainWindow::*)(int )>(_a, &MainWindow::readConfig, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (MainWindow::*)(QString , InputDevice * )>(_a, &MainWindow::mappingUpdated, 2))
            return;
    }
}

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

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

int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 48)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 48;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 48)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 48;
    }
    return _id;
}

// SIGNAL 0
void MainWindow::joystickRefreshRequested()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void MainWindow::readConfig(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void MainWindow::mappingUpdated(QString _t1, InputDevice * _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}
QT_WARNING_POP
