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

#include "../../../../../minuet-26.04.0/src/interfaces/isoundcontroller.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 'isoundcontroller.h' 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_ZN6Minuet16ISoundControllerE_t {};
} // unnamed namespace

template <> constexpr inline auto Minuet::ISoundController::qt_create_metaobjectdata<qt_meta_tag_ZN6Minuet16ISoundControllerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Minuet::ISoundController",
        "playModeChanged",
        "",
        "newPlayMode",
        "pitchChanged",
        "newPitch",
        "volumeChanged",
        "newVolume",
        "tempoChanged",
        "newTempo",
        "stateChanged",
        "Minuet::ISoundController::State",
        "newState",
        "playbackLabelChanged",
        "newPlaybackLabel",
        "setPitch",
        "pitch",
        "setVolume",
        "volume",
        "setTempo",
        "tempo",
        "prepareFromExerciseOptions",
        "QJsonArray",
        "selectedExerciseOptions",
        "prepareFromMidiFile",
        "fileName",
        "play",
        "pause",
        "stop",
        "reset",
        "playMode",
        "state",
        "State",
        "playbackLabel",
        "StoppedState",
        "PlayingState",
        "PausedState"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'playModeChanged'
        QtMocHelpers::SignalData<void(QString)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Signal 'pitchChanged'
        QtMocHelpers::SignalData<void(qint8)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::SChar, 5 },
        }}),
        // Signal 'volumeChanged'
        QtMocHelpers::SignalData<void(quint8)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UChar, 7 },
        }}),
        // Signal 'tempoChanged'
        QtMocHelpers::SignalData<void(quint8)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UChar, 9 },
        }}),
        // Signal 'stateChanged'
        QtMocHelpers::SignalData<void(Minuet::ISoundController::State)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Signal 'playbackLabelChanged'
        QtMocHelpers::SignalData<void(QString)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 14 },
        }}),
        // Slot 'setPitch'
        QtMocHelpers::SlotData<void(qint8)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::SChar, 16 },
        }}),
        // Slot 'setVolume'
        QtMocHelpers::SlotData<void(quint8)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UChar, 18 },
        }}),
        // Slot 'setTempo'
        QtMocHelpers::SlotData<void(quint8)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UChar, 20 },
        }}),
        // Slot 'prepareFromExerciseOptions'
        QtMocHelpers::SlotData<void(QJsonArray)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 22, 23 },
        }}),
        // Slot 'prepareFromMidiFile'
        QtMocHelpers::SlotData<void(const QString &)>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 25 },
        }}),
        // Slot 'play'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'pause'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'stop'
        QtMocHelpers::SlotData<void()>(28, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'reset'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'playMode'
        QtMocHelpers::PropertyData<QString>(30, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable, 0),
        // property 'pitch'
        QtMocHelpers::PropertyData<qint8>(16, QMetaType::SChar, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'volume'
        QtMocHelpers::PropertyData<quint8>(18, QMetaType::UChar, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'tempo'
        QtMocHelpers::PropertyData<quint8>(20, QMetaType::UChar, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
        // property 'state'
        QtMocHelpers::PropertyData<enum State>(31, 0x80000000 | 32, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 4),
        // property 'playbackLabel'
        QtMocHelpers::PropertyData<QString>(33, QMetaType::QString, QMC::DefaultPropertyFlags, 5),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'State'
        QtMocHelpers::EnumData<enum State>(32, 32, QMC::EnumFlags{}).add({
            {   34, State::StoppedState },
            {   35, State::PlayingState },
            {   36, State::PausedState },
        }),
    };
    return QtMocHelpers::metaObjectData<ISoundController, qt_meta_tag_ZN6Minuet16ISoundControllerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Minuet::ISoundController::staticMetaObject = { {
    QMetaObject::SuperData::link<IPlugin::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Minuet16ISoundControllerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Minuet16ISoundControllerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN6Minuet16ISoundControllerE_t>.metaTypes,
    nullptr
} };

void Minuet::ISoundController::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ISoundController *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->playModeChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->pitchChanged((*reinterpret_cast<std::add_pointer_t<qint8>>(_a[1]))); break;
        case 2: _t->volumeChanged((*reinterpret_cast<std::add_pointer_t<quint8>>(_a[1]))); break;
        case 3: _t->tempoChanged((*reinterpret_cast<std::add_pointer_t<quint8>>(_a[1]))); break;
        case 4: _t->stateChanged((*reinterpret_cast<std::add_pointer_t<Minuet::ISoundController::State>>(_a[1]))); break;
        case 5: _t->playbackLabelChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 6: _t->setPitch((*reinterpret_cast<std::add_pointer_t<qint8>>(_a[1]))); break;
        case 7: _t->setVolume((*reinterpret_cast<std::add_pointer_t<quint8>>(_a[1]))); break;
        case 8: _t->setTempo((*reinterpret_cast<std::add_pointer_t<quint8>>(_a[1]))); break;
        case 9: _t->prepareFromExerciseOptions((*reinterpret_cast<std::add_pointer_t<QJsonArray>>(_a[1]))); break;
        case 10: _t->prepareFromMidiFile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 11: _t->play(); break;
        case 12: _t->pause(); break;
        case 13: _t->stop(); break;
        case 14: _t->reset(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ISoundController::*)(QString )>(_a, &ISoundController::playModeChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ISoundController::*)(qint8 )>(_a, &ISoundController::pitchChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ISoundController::*)(quint8 )>(_a, &ISoundController::volumeChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ISoundController::*)(quint8 )>(_a, &ISoundController::tempoChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ISoundController::*)(Minuet::ISoundController::State )>(_a, &ISoundController::stateChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (ISoundController::*)(QString )>(_a, &ISoundController::playbackLabelChanged, 5))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->m_playMode; break;
        case 1: *reinterpret_cast<qint8*>(_v) = _t->m_pitch; break;
        case 2: *reinterpret_cast<quint8*>(_v) = _t->m_volume; break;
        case 3: *reinterpret_cast<quint8*>(_v) = _t->m_tempo; break;
        case 4: *reinterpret_cast<enum State*>(_v) = _t->state(); break;
        case 5: *reinterpret_cast<QString*>(_v) = _t->playbackLabel(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0:
            if (QtMocHelpers::setProperty(_t->m_playMode, *reinterpret_cast<QString*>(_v)))
                Q_EMIT _t->playModeChanged(_t->m_playMode);
            break;
        case 1: _t->setPitch(*reinterpret_cast<qint8*>(_v)); break;
        case 2: _t->setVolume(*reinterpret_cast<quint8*>(_v)); break;
        case 3: _t->setTempo(*reinterpret_cast<quint8*>(_v)); break;
        default: break;
        }
    }
}

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

void *Minuet::ISoundController::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Minuet16ISoundControllerE_t>.strings))
        return static_cast<void*>(this);
    return IPlugin::qt_metacast(_clname);
}

int Minuet::ISoundController::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = IPlugin::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 15)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 15;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 15)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 15;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    }
    return _id;
}

// SIGNAL 0
void Minuet::ISoundController::playModeChanged(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Minuet::ISoundController::pitchChanged(qint8 _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Minuet::ISoundController::volumeChanged(quint8 _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Minuet::ISoundController::tempoChanged(quint8 _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Minuet::ISoundController::stateChanged(Minuet::ISoundController::State _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void Minuet::ISoundController::playbackLabelChanged(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}
QT_WARNING_POP
