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

#include "../../../../../kdeconnect-kde-26.07.80/plugins/remotesystemvolume/remotesystemvolumeplugin.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 'remotesystemvolumeplugin.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.12.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_ZN24RemoteSystemVolumePluginE_t {};
} // unnamed namespace

template <> constexpr inline auto RemoteSystemVolumePlugin::qt_create_metaobjectdata<qt_meta_tag_ZN24RemoteSystemVolumePluginE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "RemoteSystemVolumePlugin",
        "D-Bus Interface",
        "org.kde.kdeconnect.device.remotesystemvolume",
        "sinksChanged",
        "",
        "volumeChanged",
        "name",
        "volume",
        "mutedChanged",
        "muted",
        "sendVolume",
        "sendMuted",
        "sinks",
        "deviceId"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'sinksChanged'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Void),
        // Signal 'volumeChanged'
        QtMocHelpers::SignalData<void(const QString &, int)>(5, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Void, {{
            { QMetaType::QString, 6 }, { QMetaType::Int, 7 },
        }}),
        // Signal 'mutedChanged'
        QtMocHelpers::SignalData<void(const QString &, bool)>(8, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Void, {{
            { QMetaType::QString, 6 }, { QMetaType::Bool, 9 },
        }}),
        // Method 'sendVolume'
        QtMocHelpers::MethodData<void(const QString &, int)>(10, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Void, {{
            { QMetaType::QString, 6 }, { QMetaType::Int, 7 },
        }}),
        // Method 'sendMuted'
        QtMocHelpers::MethodData<void(const QString &, bool)>(11, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Void, {{
            { QMetaType::QString, 6 }, { QMetaType::Bool, 9 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'sinks'
        QtMocHelpers::PropertyData<QByteArray>(12, QMetaType::QByteArray, QMC::DefaultPropertyFlags, 0),
        // property 'deviceId'
        QtMocHelpers::PropertyData<QString>(13, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<RemoteSystemVolumePlugin, qt_meta_tag_ZN24RemoteSystemVolumePluginE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject RemoteSystemVolumePlugin::staticMetaObject = { {
    QMetaObject::SuperData::link<KdeConnectPlugin::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN24RemoteSystemVolumePluginE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN24RemoteSystemVolumePluginE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN24RemoteSystemVolumePluginE_t>.metaTypes,
    nullptr
} };

void RemoteSystemVolumePlugin::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<RemoteSystemVolumePlugin *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->sinksChanged(); break;
        case 1: _t->volumeChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 2: _t->mutedChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 3: _t->sendVolume((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 4: _t->sendMuted((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (RemoteSystemVolumePlugin::*)()>(_a, &RemoteSystemVolumePlugin::sinksChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (RemoteSystemVolumePlugin::*)(const QString & , int )>(_a, &RemoteSystemVolumePlugin::volumeChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (RemoteSystemVolumePlugin::*)(const QString & , bool )>(_a, &RemoteSystemVolumePlugin::mutedChanged, 2))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QByteArray*>(_v) = _t->sinks(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->deviceId(); break;
        default: break;
        }
    }
}

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

void *RemoteSystemVolumePlugin::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN24RemoteSystemVolumePluginE_t>.strings))
        return static_cast<void*>(this);
    return KdeConnectPlugin::qt_metacast(_clname);
}

int RemoteSystemVolumePlugin::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = KdeConnectPlugin::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 -= 2;
    }
    return _id;
}

// SIGNAL 0
void RemoteSystemVolumePlugin::sinksChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void RemoteSystemVolumePlugin::volumeChanged(const QString & _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void RemoteSystemVolumePlugin::mutedChanged(const QString & _t1, bool _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}
QT_WARNING_POP
