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

template <> constexpr inline auto PulseAudioQt::VolumeObject::qt_create_metaobjectdata<qt_meta_tag_ZN12PulseAudioQt12VolumeObjectE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PulseAudioQt::VolumeObject",
        "volumeChanged",
        "",
        "mutedChanged",
        "isVolumeWritableChanged",
        "channelsChanged",
        "rawChannelsChanged",
        "channelVolumesChanged",
        "setChannelVolume",
        "channel",
        "volume",
        "muted",
        "volumeWritable",
        "channels",
        "channelVolumes",
        "QList<qint64>",
        "rawChannels"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'volumeChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'mutedChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'isVolumeWritableChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'channelsChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'rawChannelsChanged'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'channelVolumesChanged'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'setChannelVolume'
        QtMocHelpers::MethodData<void(int, qint64)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 9 }, { QMetaType::LongLong, 10 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'volume'
        QtMocHelpers::PropertyData<qint64>(10, QMetaType::LongLong, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'muted'
        QtMocHelpers::PropertyData<bool>(11, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'volumeWritable'
        QtMocHelpers::PropertyData<bool>(12, QMetaType::Bool, QMC::DefaultPropertyFlags, 2),
        // property 'channels'
        QtMocHelpers::PropertyData<QStringList>(13, QMetaType::QStringList, QMC::DefaultPropertyFlags, 3),
        // property 'channelVolumes'
        QtMocHelpers::PropertyData<QList<qint64>>(14, 0x80000000 | 15, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 5),
        // property 'rawChannels'
        QtMocHelpers::PropertyData<QStringList>(16, QMetaType::QStringList, QMC::DefaultPropertyFlags, 4),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<VolumeObject, qt_meta_tag_ZN12PulseAudioQt12VolumeObjectE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject PulseAudioQt::VolumeObject::staticMetaObject = { {
    QMetaObject::SuperData::link<IndexedPulseObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12PulseAudioQt12VolumeObjectE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12PulseAudioQt12VolumeObjectE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12PulseAudioQt12VolumeObjectE_t>.metaTypes,
    nullptr
} };

void PulseAudioQt::VolumeObject::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<VolumeObject *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->volumeChanged(); break;
        case 1: _t->mutedChanged(); break;
        case 2: _t->isVolumeWritableChanged(); break;
        case 3: _t->channelsChanged(); break;
        case 4: _t->rawChannelsChanged(); break;
        case 5: _t->channelVolumesChanged(); break;
        case 6: _t->setChannelVolume((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<qint64>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (VolumeObject::*)()>(_a, &VolumeObject::volumeChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (VolumeObject::*)()>(_a, &VolumeObject::mutedChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (VolumeObject::*)()>(_a, &VolumeObject::isVolumeWritableChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (VolumeObject::*)()>(_a, &VolumeObject::channelsChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (VolumeObject::*)()>(_a, &VolumeObject::rawChannelsChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (VolumeObject::*)()>(_a, &VolumeObject::channelVolumesChanged, 5))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 4:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<qint64> >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<qint64*>(_v) = _t->volume(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->isMuted(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->isVolumeWritable(); break;
        case 3: *reinterpret_cast<QStringList*>(_v) = _t->channels(); break;
        case 4: *reinterpret_cast<QList<qint64>*>(_v) = _t->channelVolumes(); break;
        case 5: *reinterpret_cast<QStringList*>(_v) = _t->rawChannels(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setVolume(*reinterpret_cast<qint64*>(_v)); break;
        case 1: _t->setMuted(*reinterpret_cast<bool*>(_v)); break;
        case 4: _t->setChannelVolumes(*reinterpret_cast<QList<qint64>*>(_v)); break;
        default: break;
        }
    }
}

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

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

int PulseAudioQt::VolumeObject::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 < 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;
    }
    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 PulseAudioQt::VolumeObject::volumeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

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

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

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

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

// SIGNAL 5
void PulseAudioQt::VolumeObject::channelVolumesChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
QT_WARNING_POP
