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

#include "../../../../SuperCollider-3.14.1-Source/editors/sc-ide/core/main.hpp"
#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 'main.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.0. 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_ZN5ScIDE19SingleInstanceGuardE_t {};
} // unnamed namespace

template <> constexpr inline auto ScIDE::SingleInstanceGuard::qt_create_metaobjectdata<qt_meta_tag_ZN5ScIDE19SingleInstanceGuardE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ScIDE::SingleInstanceGuard",
        "onNewIpcConnection",
        "",
        "onIpcData"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'onNewIpcConnection'
        QtMocHelpers::SlotData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'onIpcData'
        QtMocHelpers::SlotData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<SingleInstanceGuard, qt_meta_tag_ZN5ScIDE19SingleInstanceGuardE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ScIDE::SingleInstanceGuard::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5ScIDE19SingleInstanceGuardE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5ScIDE19SingleInstanceGuardE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN5ScIDE19SingleInstanceGuardE_t>.metaTypes,
    nullptr
} };

void ScIDE::SingleInstanceGuard::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SingleInstanceGuard *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->onNewIpcConnection(); break;
        case 1: _t->onIpcData(); break;
        default: ;
        }
    }
    (void)_a;
}

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

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

int ScIDE::SingleInstanceGuard::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 < 2)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 2)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 2;
    }
    return _id;
}
namespace {
struct qt_meta_tag_ZN5ScIDE4MainE_t {};
} // unnamed namespace

template <> constexpr inline auto ScIDE::Main::qt_create_metaobjectdata<qt_meta_tag_ZN5ScIDE4MainE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ScIDE::Main",
        "storeSettingsRequest",
        "",
        "Settings::Manager*",
        "applySettingsRequest",
        "storeSettings",
        "applySettings",
        "quit",
        "setAppPaletteFromSettings"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'storeSettingsRequest'
        QtMocHelpers::SignalData<void(Settings::Manager *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Signal 'applySettingsRequest'
        QtMocHelpers::SignalData<void(Settings::Manager *)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Slot 'storeSettings'
        QtMocHelpers::SlotData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'applySettings'
        QtMocHelpers::SlotData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'quit'
        QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setAppPaletteFromSettings'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Main, qt_meta_tag_ZN5ScIDE4MainE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ScIDE::Main::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5ScIDE4MainE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5ScIDE4MainE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN5ScIDE4MainE_t>.metaTypes,
    nullptr
} };

void ScIDE::Main::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Main *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->storeSettingsRequest((*reinterpret_cast<std::add_pointer_t<Settings::Manager*>>(_a[1]))); break;
        case 1: _t->applySettingsRequest((*reinterpret_cast<std::add_pointer_t<Settings::Manager*>>(_a[1]))); break;
        case 2: _t->storeSettings(); break;
        case 3: _t->applySettings(); break;
        case 4: _t->quit(); break;
        case 5: _t->setAppPaletteFromSettings(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Main::*)(Settings::Manager * )>(_a, &Main::storeSettingsRequest, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Main::*)(Settings::Manager * )>(_a, &Main::applySettingsRequest, 1))
            return;
    }
}

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

void *ScIDE::Main::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5ScIDE4MainE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QAbstractNativeEventFilter"))
        return static_cast< QAbstractNativeEventFilter*>(this);
    return QObject::qt_metacast(_clname);
}

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

// SIGNAL 0
void ScIDE::Main::storeSettingsRequest(Settings::Manager * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void ScIDE::Main::applySettingsRequest(Settings::Manager * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}
QT_WARNING_POP
