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

template <> constexpr inline auto ScIDE::AudioStatusBox::qt_create_metaobjectdata<qt_meta_tag_ZN5ScIDE14AudioStatusBoxE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ScIDE::AudioStatusBox",
        "increaseVolume",
        "",
        "decreaseVolume",
        "onServerRunningChanged",
        "running",
        "hostName",
        "port",
        "unresponsive",
        "updateStatistics",
        "ugens",
        "synths",
        "groups",
        "synthDefs",
        "avgCPU",
        "peakCPU",
        "updateVolumeLabel",
        "volume",
        "updateMuteLabel",
        "muted",
        "updateRecordLabel",
        "recording"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'increaseVolume'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'decreaseVolume'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'onServerRunningChanged'
        QtMocHelpers::SlotData<void(bool, QString const &, int, bool)>(4, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 5 }, { QMetaType::QString, 6 }, { QMetaType::Int, 7 }, { QMetaType::Bool, 8 },
        }}),
        // Slot 'updateStatistics'
        QtMocHelpers::SlotData<void(int, int, int, int, float, float)>(9, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 10 }, { QMetaType::Int, 11 }, { QMetaType::Int, 12 }, { QMetaType::Int, 13 },
            { QMetaType::Float, 14 }, { QMetaType::Float, 15 },
        }}),
        // Slot 'updateVolumeLabel'
        QtMocHelpers::SlotData<void(float)>(16, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Float, 17 },
        }}),
        // Slot 'updateMuteLabel'
        QtMocHelpers::SlotData<void(bool)>(18, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 19 },
        }}),
        // Slot 'updateRecordLabel'
        QtMocHelpers::SlotData<void(bool)>(20, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 21 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<AudioStatusBox, qt_meta_tag_ZN5ScIDE14AudioStatusBoxE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ScIDE::AudioStatusBox::staticMetaObject = { {
    QMetaObject::SuperData::link<StatusBox::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5ScIDE14AudioStatusBoxE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5ScIDE14AudioStatusBoxE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN5ScIDE14AudioStatusBoxE_t>.metaTypes,
    nullptr
} };

void ScIDE::AudioStatusBox::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<AudioStatusBox *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->increaseVolume(); break;
        case 1: _t->decreaseVolume(); break;
        case 2: _t->onServerRunningChanged((*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 3: _t->updateStatistics((*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 4: _t->updateVolumeLabel((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 5: _t->updateMuteLabel((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 6: _t->updateRecordLabel((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (AudioStatusBox::*)()>(_a, &AudioStatusBox::increaseVolume, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (AudioStatusBox::*)()>(_a, &AudioStatusBox::decreaseVolume, 1))
            return;
    }
}

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

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

int ScIDE::AudioStatusBox::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = StatusBox::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 7)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 7;
    }
    return _id;
}

// SIGNAL 0
void ScIDE::AudioStatusBox::increaseVolume()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void ScIDE::AudioStatusBox::decreaseVolume()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
