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

#include "../../../../drumstick-2.11.1/library/rt-backends/net-out/netmidioutput.h"
#include <QtCore/qmetatype.h>
#include <QtCore/qplugin.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'netmidioutput.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.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_ZN9drumstick2rt13NetMIDIOutputE_t {};
} // unnamed namespace

template <> constexpr inline auto drumstick::rt::NetMIDIOutput::qt_create_metaobjectdata<qt_meta_tag_ZN9drumstick2rt13NetMIDIOutputE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "drumstick::rt::NetMIDIOutput",
        "sendNoteOff",
        "",
        "chan",
        "note",
        "vel",
        "sendNoteOn",
        "sendKeyPressure",
        "value",
        "sendController",
        "control",
        "sendProgram",
        "program",
        "sendChannelPressure",
        "sendPitchBend",
        "sendSysex",
        "data",
        "sendSystemMsg",
        "status",
        "writeSettings",
        "QSettings*",
        "settings",
        "diagnostics"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'sendNoteOff'
        QtMocHelpers::SlotData<void(int, int, int)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::Int, 4 }, { QMetaType::Int, 5 },
        }}),
        // Slot 'sendNoteOn'
        QtMocHelpers::SlotData<void(int, int, int)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::Int, 4 }, { QMetaType::Int, 5 },
        }}),
        // Slot 'sendKeyPressure'
        QtMocHelpers::SlotData<void(int, int, int)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::Int, 4 }, { QMetaType::Int, 8 },
        }}),
        // Slot 'sendController'
        QtMocHelpers::SlotData<void(int, int, int)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::Int, 10 }, { QMetaType::Int, 8 },
        }}),
        // Slot 'sendProgram'
        QtMocHelpers::SlotData<void(int, int)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::Int, 12 },
        }}),
        // Slot 'sendChannelPressure'
        QtMocHelpers::SlotData<void(int, int)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::Int, 8 },
        }}),
        // Slot 'sendPitchBend'
        QtMocHelpers::SlotData<void(int, int)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::Int, 8 },
        }}),
        // Slot 'sendSysex'
        QtMocHelpers::SlotData<void(const QByteArray &)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 16 },
        }}),
        // Slot 'sendSystemMsg'
        QtMocHelpers::SlotData<void(const int)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 18 },
        }}),
        // Slot 'writeSettings'
        QtMocHelpers::SlotData<void(QSettings *)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 20, 21 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'diagnostics'
        QtMocHelpers::PropertyData<QStringList>(22, QMetaType::QStringList, QMC::DefaultPropertyFlags),
        // property 'status'
        QtMocHelpers::PropertyData<bool>(18, QMetaType::Bool, QMC::DefaultPropertyFlags),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<NetMIDIOutput, qt_meta_tag_ZN9drumstick2rt13NetMIDIOutputE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject drumstick::rt::NetMIDIOutput::staticMetaObject = { {
    QMetaObject::SuperData::link<MIDIOutput::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9drumstick2rt13NetMIDIOutputE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9drumstick2rt13NetMIDIOutputE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9drumstick2rt13NetMIDIOutputE_t>.metaTypes,
    nullptr
} };

void drumstick::rt::NetMIDIOutput::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<NetMIDIOutput *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->sendNoteOff((*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]))); break;
        case 1: _t->sendNoteOn((*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]))); break;
        case 2: _t->sendKeyPressure((*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]))); break;
        case 3: _t->sendController((*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]))); break;
        case 4: _t->sendProgram((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 5: _t->sendChannelPressure((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 6: _t->sendPitchBend((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 7: _t->sendSysex((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 8: _t->sendSystemMsg((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 9: _t->writeSettings((*reinterpret_cast<std::add_pointer_t<QSettings*>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QStringList*>(_v) = _t->getDiagnostics(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->getStatus(); break;
        default: break;
        }
    }
}

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

void *drumstick::rt::NetMIDIOutput::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9drumstick2rt13NetMIDIOutputE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "net.sourceforge.drumstick.rt.MIDIOutput/2.0"))
        return static_cast< drumstick::rt::MIDIOutput*>(this);
    return MIDIOutput::qt_metacast(_clname);
}

int drumstick::rt::NetMIDIOutput::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = MIDIOutput::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 10)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 10;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    return _id;
}
using namespace drumstick;
using namespace drumstick::rt;

#ifdef QT_MOC_EXPORT_PLUGIN_V2
static constexpr unsigned char qt_pluginMetaDataV2_NetMIDIOutput[] = {
    0xbf, 
    // "IID"
    0x02,  0x78,  0x2b,  'n',  'e',  't',  '.',  's', 
    'o',  'u',  'r',  'c',  'e',  'f',  'o',  'r', 
    'g',  'e',  '.',  'd',  'r',  'u',  'm',  's', 
    't',  'i',  'c',  'k',  '.',  'r',  't',  '.', 
    'M',  'I',  'D',  'I',  'O',  'u',  't',  'p', 
    'u',  't',  '/',  '2',  '.',  '0', 
    // "className"
    0x03,  0x6d,  'N',  'e',  't',  'M',  'I',  'D', 
    'I',  'O',  'u',  't',  'p',  'u',  't', 
    0xff, 
};
QT_MOC_EXPORT_PLUGIN_V2(drumstick::rt::NetMIDIOutput, NetMIDIOutput, qt_pluginMetaDataV2_NetMIDIOutput)
#else
QT_PLUGIN_METADATA_SECTION
Q_CONSTINIT static constexpr unsigned char qt_pluginMetaData_NetMIDIOutput[] = {
    'Q', 'T', 'M', 'E', 'T', 'A', 'D', 'A', 'T', 'A', ' ', '!',
    // metadata version, Qt version, architectural requirements
    0, QT_VERSION_MAJOR, QT_VERSION_MINOR, qPluginArchRequirements(),
    0xbf, 
    // "IID"
    0x02,  0x78,  0x2b,  'n',  'e',  't',  '.',  's', 
    'o',  'u',  'r',  'c',  'e',  'f',  'o',  'r', 
    'g',  'e',  '.',  'd',  'r',  'u',  'm',  's', 
    't',  'i',  'c',  'k',  '.',  'r',  't',  '.', 
    'M',  'I',  'D',  'I',  'O',  'u',  't',  'p', 
    'u',  't',  '/',  '2',  '.',  '0', 
    // "className"
    0x03,  0x6d,  'N',  'e',  't',  'M',  'I',  'D', 
    'I',  'O',  'u',  't',  'p',  'u',  't', 
    0xff, 
};
QT_MOC_EXPORT_PLUGIN(drumstick::rt::NetMIDIOutput, NetMIDIOutput)
#endif  // QT_MOC_EXPORT_PLUGIN_V2

QT_WARNING_POP
