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

#include "../../../../SuperCollider-3.14.1-Source/editors/sc-ide/core/sc_server.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 'sc_server.hpp' 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_ZN5ScIDE8ScServerE_t {};
} // unnamed namespace

template <> constexpr inline auto ScIDE::ScServer::qt_create_metaobjectdata<qt_meta_tag_ZN5ScIDE8ScServerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ScIDE::ScServer",
        "runningStateChanged",
        "",
        "running",
        "hostName",
        "port",
        "unresponsive",
        "updateServerStatus",
        "ugenCount",
        "synthCount",
        "groupCount",
        "defCount",
        "avgCPU",
        "peakCPU",
        "volumeChanged",
        "volume",
        "volumeRangeChanged",
        "min",
        "max",
        "mutedChanged",
        "muted",
        "recordingChanged",
        "recording",
        "pauseChanged",
        "paused",
        "boot",
        "reboot",
        "quit",
        "killAll",
        "toggleRunning",
        "showMeters",
        "showScope",
        "showFreqScope",
        "dumpNodeTree",
        "dumpNodeTreeWithControls",
        "plotTree",
        "queryAllNodes",
        "dumpControls",
        "increaseVolume",
        "decreaseVolume",
        "changeVolume",
        "restoreVolume",
        "mute",
        "unmute",
        "sendRecording",
        "active",
        "setRecording",
        "pauseRecording",
        "flag",
        "onScLangStateChanged",
        "QProcess::ProcessState",
        "onScLangReponse",
        "selector",
        "data",
        "onServerDataArrived",
        "updateToggleRunningAction",
        "updateRecordingAction",
        "updateEnabledActions",
        "sendMuted",
        "sendVolume",
        "sendDumpingOSC",
        "dumping"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'runningStateChanged'
        QtMocHelpers::SignalData<void(bool, QString const &, int, bool)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 }, { QMetaType::QString, 4 }, { QMetaType::Int, 5 }, { QMetaType::Bool, 6 },
        }}),
        // Signal 'updateServerStatus'
        QtMocHelpers::SignalData<void(int, int, int, int, float, float)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 8 }, { QMetaType::Int, 9 }, { QMetaType::Int, 10 }, { QMetaType::Int, 11 },
            { QMetaType::Float, 12 }, { QMetaType::Float, 13 },
        }}),
        // Signal 'volumeChanged'
        QtMocHelpers::SignalData<void(float)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 15 },
        }}),
        // Signal 'volumeRangeChanged'
        QtMocHelpers::SignalData<void(float, float)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 17 }, { QMetaType::Float, 18 },
        }}),
        // Signal 'mutedChanged'
        QtMocHelpers::SignalData<void(bool)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 20 },
        }}),
        // Signal 'recordingChanged'
        QtMocHelpers::SignalData<void(bool)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 22 },
        }}),
        // Signal 'pauseChanged'
        QtMocHelpers::SignalData<void(bool)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 24 },
        }}),
        // Slot 'boot'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'reboot'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'quit'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'killAll'
        QtMocHelpers::SlotData<void()>(28, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'toggleRunning'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'showMeters'
        QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'showScope'
        QtMocHelpers::SlotData<void()>(31, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'showFreqScope'
        QtMocHelpers::SlotData<void()>(32, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'dumpNodeTree'
        QtMocHelpers::SlotData<void()>(33, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'dumpNodeTreeWithControls'
        QtMocHelpers::SlotData<void()>(34, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'plotTree'
        QtMocHelpers::SlotData<void()>(35, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'queryAllNodes'
        QtMocHelpers::SlotData<void(bool)>(36, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 37 },
        }}),
        // Slot 'increaseVolume'
        QtMocHelpers::SlotData<void()>(38, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'decreaseVolume'
        QtMocHelpers::SlotData<void()>(39, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'changeVolume'
        QtMocHelpers::SlotData<void(float)>(40, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 2 },
        }}),
        // Slot 'restoreVolume'
        QtMocHelpers::SlotData<void()>(41, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'mute'
        QtMocHelpers::SlotData<void()>(42, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'unmute'
        QtMocHelpers::SlotData<void()>(43, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'sendRecording'
        QtMocHelpers::SlotData<void(bool)>(44, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 45 },
        }}),
        // Slot 'setRecording'
        QtMocHelpers::SlotData<void(bool)>(46, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 45 },
        }}),
        // Slot 'pauseRecording'
        QtMocHelpers::SlotData<void(bool)>(47, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 48 },
        }}),
        // Slot 'onScLangStateChanged'
        QtMocHelpers::SlotData<void(QProcess::ProcessState)>(49, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 50, 2 },
        }}),
        // Slot 'onScLangReponse'
        QtMocHelpers::SlotData<void(const QString &, const QString &)>(51, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 52 }, { QMetaType::QString, 53 },
        }}),
        // Slot 'onServerDataArrived'
        QtMocHelpers::SlotData<void()>(54, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'updateToggleRunningAction'
        QtMocHelpers::SlotData<void()>(55, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'updateRecordingAction'
        QtMocHelpers::SlotData<void()>(56, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'updateEnabledActions'
        QtMocHelpers::SlotData<void()>(57, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'sendMuted'
        QtMocHelpers::SlotData<void(bool)>(58, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 20 },
        }}),
        // Slot 'sendVolume'
        QtMocHelpers::SlotData<void(float)>(59, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Float, 15 },
        }}),
        // Slot 'sendDumpingOSC'
        QtMocHelpers::SlotData<void(bool)>(60, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 61 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'volume'
        QtMocHelpers::PropertyData<float>(15, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ScServer, qt_meta_tag_ZN5ScIDE8ScServerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ScIDE::ScServer::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5ScIDE8ScServerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5ScIDE8ScServerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN5ScIDE8ScServerE_t>.metaTypes,
    nullptr
} };

void ScIDE::ScServer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ScServer *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->runningStateChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[4]))); break;
        case 1: _t->updateServerStatus((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<float>>(_a[5])),(*reinterpret_cast<std::add_pointer_t<float>>(_a[6]))); break;
        case 2: _t->volumeChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 3: _t->volumeRangeChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<float>>(_a[2]))); break;
        case 4: _t->mutedChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 5: _t->recordingChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 6: _t->pauseChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 7: _t->boot(); break;
        case 8: _t->reboot(); break;
        case 9: _t->quit(); break;
        case 10: _t->killAll(); break;
        case 11: _t->toggleRunning(); break;
        case 12: _t->showMeters(); break;
        case 13: _t->showScope(); break;
        case 14: _t->showFreqScope(); break;
        case 15: _t->dumpNodeTree(); break;
        case 16: _t->dumpNodeTreeWithControls(); break;
        case 17: _t->plotTree(); break;
        case 18: _t->queryAllNodes((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 19: _t->increaseVolume(); break;
        case 20: _t->decreaseVolume(); break;
        case 21: _t->changeVolume((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 22: _t->restoreVolume(); break;
        case 23: _t->mute(); break;
        case 24: _t->unmute(); break;
        case 25: _t->sendRecording((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 26: _t->setRecording((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 27: _t->pauseRecording((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 28: _t->onScLangStateChanged((*reinterpret_cast<std::add_pointer_t<QProcess::ProcessState>>(_a[1]))); break;
        case 29: _t->onScLangReponse((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 30: _t->onServerDataArrived(); break;
        case 31: _t->updateToggleRunningAction(); break;
        case 32: _t->updateRecordingAction(); break;
        case 33: _t->updateEnabledActions(); break;
        case 34: _t->sendMuted((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 35: _t->sendVolume((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 36: _t->sendDumpingOSC((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ScServer::*)(bool , QString const & , int , bool )>(_a, &ScServer::runningStateChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScServer::*)(int , int , int , int , float , float )>(_a, &ScServer::updateServerStatus, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScServer::*)(float )>(_a, &ScServer::volumeChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScServer::*)(float , float )>(_a, &ScServer::volumeRangeChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScServer::*)(bool )>(_a, &ScServer::mutedChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScServer::*)(bool )>(_a, &ScServer::recordingChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScServer::*)(bool )>(_a, &ScServer::pauseChanged, 6))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<float*>(_v) = _t->volume(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setVolume(*reinterpret_cast<float*>(_v)); break;
        default: break;
        }
    }
}

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

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

int ScIDE::ScServer::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 < 37)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 37;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 37)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 37;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
    return _id;
}

// SIGNAL 0
void ScIDE::ScServer::runningStateChanged(bool _t1, QString const & _t2, int _t3, bool _t4)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2, _t3, _t4);
}

// SIGNAL 1
void ScIDE::ScServer::updateServerStatus(int _t1, int _t2, int _t3, int _t4, float _t5, float _t6)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2, _t3, _t4, _t5, _t6);
}

// SIGNAL 2
void ScIDE::ScServer::volumeChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void ScIDE::ScServer::volumeRangeChanged(float _t1, float _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1, _t2);
}

// SIGNAL 4
void ScIDE::ScServer::mutedChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void ScIDE::ScServer::recordingChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void ScIDE::ScServer::pauseChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}
QT_WARNING_POP
