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

#include "../../../../vvave-4.0.2/src/kde/mpris2/mpris2.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 'mpris2.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. 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_ZN6Mpris2E_t {};
} // unnamed namespace

template <> constexpr inline auto Mpris2::qt_create_metaobjectdata<qt_meta_tag_ZN6Mpris2E_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Mpris2",
        "raisePlayer",
        "",
        "playerNameChanged",
        "playListModelChanged",
        "audioPlayerChanged",
        "showProgressOnTaskBarChanged",
        "setPlayerName",
        "playerName",
        "setPlayListModel",
        "Playlist*",
        "playListModel",
        "setAudioPlayer",
        "Player*",
        "audioPlayer",
        "setShowProgressOnTaskBar",
        "value",
        "showProgressOnTaskBar"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'raisePlayer'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'playerNameChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'playListModelChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'audioPlayerChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'showProgressOnTaskBarChanged'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setPlayerName'
        QtMocHelpers::SlotData<void(const QString &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 },
        }}),
        // Slot 'setPlayListModel'
        QtMocHelpers::SlotData<void(Playlist *)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Slot 'setAudioPlayer'
        QtMocHelpers::SlotData<void(Player *)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 13, 14 },
        }}),
        // Slot 'setShowProgressOnTaskBar'
        QtMocHelpers::SlotData<void(bool)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 16 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'playerName'
        QtMocHelpers::PropertyData<QString>(8, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'playListModel'
        QtMocHelpers::PropertyData<Playlist*>(11, 0x80000000 | 10, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 2),
        // property 'audioPlayer'
        QtMocHelpers::PropertyData<Player*>(14, 0x80000000 | 13, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 3),
        // property 'showProgressOnTaskBar'
        QtMocHelpers::PropertyData<bool>(17, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Mpris2, qt_meta_tag_ZN6Mpris2E_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Mpris2::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Mpris2E_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Mpris2E_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN6Mpris2E_t>.metaTypes,
    nullptr
} };

void Mpris2::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Mpris2 *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->raisePlayer(); break;
        case 1: _t->playerNameChanged(); break;
        case 2: _t->playListModelChanged(); break;
        case 3: _t->audioPlayerChanged(); break;
        case 4: _t->showProgressOnTaskBarChanged(); break;
        case 5: _t->setPlayerName((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 6: _t->setPlayListModel((*reinterpret_cast<std::add_pointer_t<Playlist*>>(_a[1]))); break;
        case 7: _t->setAudioPlayer((*reinterpret_cast<std::add_pointer_t<Player*>>(_a[1]))); break;
        case 8: _t->setShowProgressOnTaskBar((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Mpris2::*)()>(_a, &Mpris2::raisePlayer, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Mpris2::*)()>(_a, &Mpris2::playerNameChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Mpris2::*)()>(_a, &Mpris2::playListModelChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Mpris2::*)()>(_a, &Mpris2::audioPlayerChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Mpris2::*)()>(_a, &Mpris2::showProgressOnTaskBarChanged, 4))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->playerName(); break;
        case 1: *reinterpret_cast<Playlist**>(_v) = _t->playListModel(); break;
        case 2: *reinterpret_cast<Player**>(_v) = _t->audioPlayer(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->showProgressOnTaskBar(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setPlayerName(*reinterpret_cast<QString*>(_v)); break;
        case 1: _t->setPlayListModel(*reinterpret_cast<Playlist**>(_v)); break;
        case 2: _t->setAudioPlayer(*reinterpret_cast<Player**>(_v)); break;
        case 3: _t->setShowProgressOnTaskBar(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

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

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

// SIGNAL 1
void Mpris2::playerNameChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void Mpris2::playListModelChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void Mpris2::audioPlayerChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void Mpris2::showProgressOnTaskBarChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}
QT_WARNING_POP
