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

template <> constexpr inline auto PulseAudioQt::Card::qt_create_metaobjectdata<qt_meta_tag_ZN12PulseAudioQt4CardE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PulseAudioQt::Card",
        "profilesChanged",
        "",
        "activeProfileIndexChanged",
        "portsChanged",
        "sinksChanged",
        "sourcesChanged",
        "profiles",
        "QList<Profile*>",
        "activeProfileIndex",
        "ports",
        "QList<CardPort*>",
        "sinks",
        "QList<Sink*>",
        "sources",
        "QList<Source*>"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'profilesChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'activeProfileIndexChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'portsChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sinksChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sourcesChanged'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'profiles'
        QtMocHelpers::PropertyData<QList<Profile*>>(7, 0x80000000 | 8, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 0),
        // property 'activeProfileIndex'
        QtMocHelpers::PropertyData<quint32>(9, QMetaType::UInt, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'ports'
        QtMocHelpers::PropertyData<QList<CardPort*>>(10, 0x80000000 | 11, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 2),
        // property 'sinks'
        QtMocHelpers::PropertyData<QList<Sink*>>(12, 0x80000000 | 13, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 3),
        // property 'sources'
        QtMocHelpers::PropertyData<QList<Source*>>(14, 0x80000000 | 15, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 4),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Card, qt_meta_tag_ZN12PulseAudioQt4CardE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject PulseAudioQt::Card::staticMetaObject = { {
    QMetaObject::SuperData::link<IndexedPulseObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12PulseAudioQt4CardE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12PulseAudioQt4CardE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12PulseAudioQt4CardE_t>.metaTypes,
    nullptr
} };

void PulseAudioQt::Card::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Card *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->profilesChanged(); break;
        case 1: _t->activeProfileIndexChanged(); break;
        case 2: _t->portsChanged(); break;
        case 3: _t->sinksChanged(); break;
        case 4: _t->sourcesChanged(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Card::*)()>(_a, &Card::profilesChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Card::*)()>(_a, &Card::activeProfileIndexChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Card::*)()>(_a, &Card::portsChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Card::*)()>(_a, &Card::sinksChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Card::*)()>(_a, &Card::sourcesChanged, 4))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 2:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<CardPort*> >(); break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<Profile*> >(); break;
        case 3:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<Sink*> >(); break;
        case 4:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<Source*> >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QList<Profile*>*>(_v) = _t->profiles(); break;
        case 1: *reinterpret_cast<quint32*>(_v) = _t->activeProfileIndex(); break;
        case 2: *reinterpret_cast<QList<CardPort*>*>(_v) = _t->ports(); break;
        case 3: *reinterpret_cast<QList<Sink*>*>(_v) = _t->sinks(); break;
        case 4: *reinterpret_cast<QList<Source*>*>(_v) = _t->sources(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setActiveProfileIndex(*reinterpret_cast<quint32*>(_v)); break;
        default: break;
        }
    }
}

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

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

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

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

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

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

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

// SIGNAL 4
void PulseAudioQt::Card::sourcesChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}
QT_WARNING_POP
