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

#include "../../../../pulseaudio-qt-1.8.1/src/device.h"
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


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

template <> constexpr inline auto PulseAudioQt::Device::qt_create_metaobjectdata<qt_meta_tag_ZN12PulseAudioQt6DeviceE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PulseAudioQt::Device",
        "stateChanged",
        "",
        "descriptionChanged",
        "formFactorChanged",
        "cardIndexChanged",
        "portsChanged",
        "activePortIndexChanged",
        "defaultChanged",
        "baseVolumeChanged",
        "pulsePropertiesChanged",
        "virtualDeviceChanged",
        "switchStreams",
        "state",
        "State",
        "description",
        "formFactor",
        "cardIndex",
        "ports",
        "QList<Port*>",
        "activePortIndex",
        "default",
        "baseVolume",
        "pulseProperties",
        "QVariantMap",
        "virtualDevice",
        "InvalidState",
        "RunningState",
        "IdleState",
        "SuspendedState",
        "UnknownState"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'stateChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'descriptionChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'formFactorChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'cardIndexChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'portsChanged'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'activePortIndexChanged'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'defaultChanged'
        QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'baseVolumeChanged'
        QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'pulsePropertiesChanged'
        QtMocHelpers::SignalData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'virtualDeviceChanged'
        QtMocHelpers::SignalData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'switchStreams'
        QtMocHelpers::MethodData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'state'
        QtMocHelpers::PropertyData<enum State>(13, 0x80000000 | 14, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 0),
        // property 'description'
        QtMocHelpers::PropertyData<QString>(15, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'formFactor'
        QtMocHelpers::PropertyData<QString>(16, QMetaType::QString, QMC::DefaultPropertyFlags, 2),
        // property 'cardIndex'
        QtMocHelpers::PropertyData<quint32>(17, QMetaType::UInt, QMC::DefaultPropertyFlags, 3),
        // property 'ports'
        QtMocHelpers::PropertyData<QList<Port*>>(18, 0x80000000 | 19, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 4),
        // property 'activePortIndex'
        QtMocHelpers::PropertyData<quint32>(20, QMetaType::UInt, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 5),
        // property 'default'
        QtMocHelpers::PropertyData<bool>(21, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 6),
        // property 'baseVolume'
        QtMocHelpers::PropertyData<qint64>(22, QMetaType::LongLong, QMC::DefaultPropertyFlags, 7),
        // property 'pulseProperties'
        QtMocHelpers::PropertyData<QVariantMap>(23, 0x80000000 | 24, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 8),
        // property 'virtualDevice'
        QtMocHelpers::PropertyData<bool>(25, QMetaType::Bool, QMC::DefaultPropertyFlags, 9),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'State'
        QtMocHelpers::EnumData<enum State>(14, 14, QMC::EnumFlags{}).add({
            {   26, State::InvalidState },
            {   27, State::RunningState },
            {   28, State::IdleState },
            {   29, State::SuspendedState },
            {   30, State::UnknownState },
        }),
    };
    return QtMocHelpers::metaObjectData<Device, qt_meta_tag_ZN12PulseAudioQt6DeviceE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject PulseAudioQt::Device::staticMetaObject = { {
    QMetaObject::SuperData::link<VolumeObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12PulseAudioQt6DeviceE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12PulseAudioQt6DeviceE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12PulseAudioQt6DeviceE_t>.metaTypes,
    nullptr
} };

void PulseAudioQt::Device::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Device *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->stateChanged(); break;
        case 1: _t->descriptionChanged(); break;
        case 2: _t->formFactorChanged(); break;
        case 3: _t->cardIndexChanged(); break;
        case 4: _t->portsChanged(); break;
        case 5: _t->activePortIndexChanged(); break;
        case 6: _t->defaultChanged(); break;
        case 7: _t->baseVolumeChanged(); break;
        case 8: _t->pulsePropertiesChanged(); break;
        case 9: _t->virtualDeviceChanged(); break;
        case 10: _t->switchStreams(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Device::*)()>(_a, &Device::stateChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Device::*)()>(_a, &Device::descriptionChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Device::*)()>(_a, &Device::formFactorChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Device::*)()>(_a, &Device::cardIndexChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Device::*)()>(_a, &Device::portsChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Device::*)()>(_a, &Device::activePortIndexChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (Device::*)()>(_a, &Device::defaultChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (Device::*)()>(_a, &Device::baseVolumeChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (Device::*)()>(_a, &Device::pulsePropertiesChanged, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (Device::*)()>(_a, &Device::virtualDeviceChanged, 9))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 4:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<Port*> >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<enum State*>(_v) = _t->state(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->description(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->formFactor(); break;
        case 3: *reinterpret_cast<quint32*>(_v) = _t->cardIndex(); break;
        case 4: *reinterpret_cast<QList<Port*>*>(_v) = _t->ports(); break;
        case 5: *reinterpret_cast<quint32*>(_v) = _t->activePortIndex(); break;
        case 6: *reinterpret_cast<bool*>(_v) = _t->isDefault(); break;
        case 7: *reinterpret_cast<qint64*>(_v) = _t->baseVolume(); break;
        case 8: *reinterpret_cast<QVariantMap*>(_v) = _t->pulseProperties(); break;
        case 9: *reinterpret_cast<bool*>(_v) = _t->isVirtualDevice(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 5: _t->setActivePortIndex(*reinterpret_cast<quint32*>(_v)); break;
        case 6: _t->setDefault(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

void *PulseAudioQt::Device::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12PulseAudioQt6DeviceE_t>.strings))
        return static_cast<void*>(this);
    return VolumeObject::qt_metacast(_clname);
}

int PulseAudioQt::Device::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = VolumeObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 11)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 11;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    return _id;
}

// SIGNAL 0
void PulseAudioQt::Device::stateChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void PulseAudioQt::Device::descriptionChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void PulseAudioQt::Device::formFactorChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void PulseAudioQt::Device::cardIndexChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void PulseAudioQt::Device::portsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void PulseAudioQt::Device::activePortIndexChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void PulseAudioQt::Device::defaultChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void PulseAudioQt::Device::baseVolumeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void PulseAudioQt::Device::pulsePropertiesChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void PulseAudioQt::Device::virtualDeviceChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}
QT_WARNING_POP
