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

#include "../../../../haruna-1.7.1/src/mpris2/mediaplayer2player.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 'mediaplayer2player.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.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_ZN18MediaPlayer2PlayerE_t {};
} // unnamed namespace

template <> constexpr inline auto MediaPlayer2Player::qt_create_metaobjectdata<qt_meta_tag_ZN18MediaPlayer2PlayerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "MediaPlayer2Player",
        "D-Bus Interface",
        "org.mpris.MediaPlayer2.Player",
        "next",
        "",
        "previous",
        "pause",
        "playpause",
        "stop",
        "play",
        "seek",
        "offset",
        "openUri",
        "uri",
        "playbackStatusChanged",
        "metadataChanged",
        "volumeChanged",
        "shuffleChanged",
        "shuffle",
        "loopStatusChanged",
        "loop",
        "Next",
        "Previous",
        "Pause",
        "PlayPause",
        "Stop",
        "Play",
        "Seek",
        "SetPosition",
        "QDBusObjectPath",
        "trackId",
        "pos",
        "OpenUri",
        "PlaybackStatus",
        "Metadata",
        "QVariantMap",
        "Volume",
        "Position",
        "CanGoNext",
        "CanGoPrevious",
        "CanPlay",
        "CanPause",
        "CanSeek",
        "CanControl",
        "Shuffle",
        "LoopStatus",
        "setPosition",
        "setVolume",
        "vol",
        "setShuffle",
        "setLoopStatus"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'next'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'previous'
        QtMocHelpers::SignalData<void()>(5, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'pause'
        QtMocHelpers::SignalData<void()>(6, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'playpause'
        QtMocHelpers::SignalData<void()>(7, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'stop'
        QtMocHelpers::SignalData<void()>(8, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'play'
        QtMocHelpers::SignalData<void()>(9, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'seek'
        QtMocHelpers::SignalData<void(int)>(10, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 11 },
        }}),
        // Signal 'openUri'
        QtMocHelpers::SignalData<void(QString)>(12, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 13 },
        }}),
        // Signal 'playbackStatusChanged'
        QtMocHelpers::SignalData<void()>(14, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'metadataChanged'
        QtMocHelpers::SignalData<void()>(15, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'volumeChanged'
        QtMocHelpers::SignalData<void()>(16, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'shuffleChanged'
        QtMocHelpers::SignalData<void(bool)>(17, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 18 },
        }}),
        // Signal 'loopStatusChanged'
        QtMocHelpers::SignalData<void(QString)>(19, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 20 },
        }}),
        // Slot 'Next'
        QtMocHelpers::SlotData<void()>(21, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'Previous'
        QtMocHelpers::SlotData<void()>(22, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'Pause'
        QtMocHelpers::SlotData<void()>(23, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'PlayPause'
        QtMocHelpers::SlotData<void()>(24, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'Stop'
        QtMocHelpers::SlotData<void()>(25, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'Play'
        QtMocHelpers::SlotData<void()>(26, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'Seek'
        QtMocHelpers::SlotData<void(qlonglong)>(27, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::LongLong, 11 },
        }}),
        // Slot 'SetPosition'
        QtMocHelpers::SlotData<void(const QDBusObjectPath &, qlonglong)>(28, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 29, 30 }, { QMetaType::LongLong, 31 },
        }}),
        // Slot 'OpenUri'
        QtMocHelpers::SlotData<void(const QString &)>(32, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 13 },
        }}),
        // Slot 'PlaybackStatus'
        QtMocHelpers::SlotData<QString()>(33, 4, QMC::AccessPublic, QMetaType::QString),
        // Slot 'Metadata'
        QtMocHelpers::SlotData<QVariantMap()>(34, 4, QMC::AccessPublic, 0x80000000 | 35),
        // Slot 'Volume'
        QtMocHelpers::SlotData<double()>(36, 4, QMC::AccessPublic, QMetaType::Double),
        // Slot 'Position'
        QtMocHelpers::SlotData<qlonglong()>(37, 4, QMC::AccessPublic, QMetaType::LongLong),
        // Slot 'CanGoNext'
        QtMocHelpers::SlotData<bool()>(38, 4, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'CanGoPrevious'
        QtMocHelpers::SlotData<bool()>(39, 4, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'CanPlay'
        QtMocHelpers::SlotData<bool()>(40, 4, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'CanPause'
        QtMocHelpers::SlotData<bool()>(41, 4, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'CanSeek'
        QtMocHelpers::SlotData<bool()>(42, 4, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'CanControl'
        QtMocHelpers::SlotData<bool()>(43, 4, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'Shuffle'
        QtMocHelpers::SlotData<bool()>(44, 4, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'LoopStatus'
        QtMocHelpers::SlotData<QString()>(45, 4, QMC::AccessPublic, QMetaType::QString),
        // Slot 'setPosition'
        QtMocHelpers::SlotData<void(int)>(46, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 31 },
        }}),
        // Slot 'setVolume'
        QtMocHelpers::SlotData<void(double)>(47, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 48 },
        }}),
        // Slot 'setShuffle'
        QtMocHelpers::SlotData<void(bool)>(49, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 18 },
        }}),
        // Slot 'setLoopStatus'
        QtMocHelpers::SlotData<void(QString)>(50, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 20 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'PlaybackStatus'
        QtMocHelpers::PropertyData<QString>(33, QMetaType::QString, QMC::DefaultPropertyFlags, 8),
        // property 'Metadata'
        QtMocHelpers::PropertyData<QVariantMap>(34, 0x80000000 | 35, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 9),
        // property 'Volume'
        QtMocHelpers::PropertyData<double>(36, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 10),
        // property 'Position'
        QtMocHelpers::PropertyData<qlonglong>(37, QMetaType::LongLong, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 8),
        // property 'CanGoNext'
        QtMocHelpers::PropertyData<bool>(38, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'CanGoPrevious'
        QtMocHelpers::PropertyData<bool>(39, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'CanPlay'
        QtMocHelpers::PropertyData<bool>(40, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'CanPause'
        QtMocHelpers::PropertyData<bool>(41, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'CanSeek'
        QtMocHelpers::PropertyData<bool>(42, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'CanControl'
        QtMocHelpers::PropertyData<bool>(43, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'Shuffle'
        QtMocHelpers::PropertyData<bool>(44, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 11),
        // property 'LoopStatus'
        QtMocHelpers::PropertyData<QString>(45, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 12),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<MediaPlayer2Player, qt_meta_tag_ZN18MediaPlayer2PlayerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject MediaPlayer2Player::staticMetaObject = { {
    QMetaObject::SuperData::link<QDBusAbstractAdaptor::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN18MediaPlayer2PlayerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN18MediaPlayer2PlayerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN18MediaPlayer2PlayerE_t>.metaTypes,
    nullptr
} };

void MediaPlayer2Player::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MediaPlayer2Player *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->next(); break;
        case 1: _t->previous(); break;
        case 2: _t->pause(); break;
        case 3: _t->playpause(); break;
        case 4: _t->stop(); break;
        case 5: _t->play(); break;
        case 6: _t->seek((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 7: _t->openUri((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 8: _t->playbackStatusChanged(); break;
        case 9: _t->metadataChanged(); break;
        case 10: _t->volumeChanged(); break;
        case 11: _t->shuffleChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 12: _t->loopStatusChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 13: _t->Next(); break;
        case 14: _t->Previous(); break;
        case 15: _t->Pause(); break;
        case 16: _t->PlayPause(); break;
        case 17: _t->Stop(); break;
        case 18: _t->Play(); break;
        case 19: _t->Seek((*reinterpret_cast<std::add_pointer_t<qlonglong>>(_a[1]))); break;
        case 20: _t->SetPosition((*reinterpret_cast<std::add_pointer_t<QDBusObjectPath>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<qlonglong>>(_a[2]))); break;
        case 21: _t->OpenUri((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 22: { QString _r = _t->PlaybackStatus();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 23: { QVariantMap _r = _t->Metadata();
            if (_a[0]) *reinterpret_cast<QVariantMap*>(_a[0]) = std::move(_r); }  break;
        case 24: { double _r = _t->Volume();
            if (_a[0]) *reinterpret_cast<double*>(_a[0]) = std::move(_r); }  break;
        case 25: { qlonglong _r = _t->Position();
            if (_a[0]) *reinterpret_cast<qlonglong*>(_a[0]) = std::move(_r); }  break;
        case 26: { bool _r = _t->CanGoNext();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 27: { bool _r = _t->CanGoPrevious();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 28: { bool _r = _t->CanPlay();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 29: { bool _r = _t->CanPause();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 30: { bool _r = _t->CanSeek();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 31: { bool _r = _t->CanControl();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 32: { bool _r = _t->Shuffle();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 33: { QString _r = _t->LoopStatus();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 34: _t->setPosition((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 35: _t->setVolume((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        case 36: _t->setShuffle((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 37: _t->setLoopStatus((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (MediaPlayer2Player::*)()>(_a, &MediaPlayer2Player::next, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (MediaPlayer2Player::*)()>(_a, &MediaPlayer2Player::previous, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (MediaPlayer2Player::*)()>(_a, &MediaPlayer2Player::pause, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (MediaPlayer2Player::*)()>(_a, &MediaPlayer2Player::playpause, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (MediaPlayer2Player::*)()>(_a, &MediaPlayer2Player::stop, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (MediaPlayer2Player::*)()>(_a, &MediaPlayer2Player::play, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (MediaPlayer2Player::*)(int )>(_a, &MediaPlayer2Player::seek, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (MediaPlayer2Player::*)(QString )>(_a, &MediaPlayer2Player::openUri, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (MediaPlayer2Player::*)()>(_a, &MediaPlayer2Player::playbackStatusChanged, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (MediaPlayer2Player::*)()>(_a, &MediaPlayer2Player::metadataChanged, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (MediaPlayer2Player::*)()>(_a, &MediaPlayer2Player::volumeChanged, 10))
            return;
        if (QtMocHelpers::indexOfMethod<void (MediaPlayer2Player::*)(bool )>(_a, &MediaPlayer2Player::shuffleChanged, 11))
            return;
        if (QtMocHelpers::indexOfMethod<void (MediaPlayer2Player::*)(QString )>(_a, &MediaPlayer2Player::loopStatusChanged, 12))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->PlaybackStatus(); break;
        case 1: *reinterpret_cast<QVariantMap*>(_v) = _t->Metadata(); break;
        case 2: *reinterpret_cast<double*>(_v) = _t->Volume(); break;
        case 3: *reinterpret_cast<qlonglong*>(_v) = _t->Position(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->CanGoNext(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->CanGoPrevious(); break;
        case 6: *reinterpret_cast<bool*>(_v) = _t->CanPlay(); break;
        case 7: *reinterpret_cast<bool*>(_v) = _t->CanPause(); break;
        case 8: *reinterpret_cast<bool*>(_v) = _t->CanSeek(); break;
        case 9: *reinterpret_cast<bool*>(_v) = _t->CanControl(); break;
        case 10: *reinterpret_cast<bool*>(_v) = _t->Shuffle(); break;
        case 11: *reinterpret_cast<QString*>(_v) = _t->LoopStatus(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 2: _t->setVolume(*reinterpret_cast<double*>(_v)); break;
        case 3: _t->setPosition(*reinterpret_cast<qlonglong*>(_v)); break;
        case 10: _t->setShuffle(*reinterpret_cast<bool*>(_v)); break;
        case 11: _t->setLoopStatus(*reinterpret_cast<QString*>(_v)); break;
        default: break;
        }
    }
}

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

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

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

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

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

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

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

// SIGNAL 4
void MediaPlayer2Player::stop()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void MediaPlayer2Player::play()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void MediaPlayer2Player::seek(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

// SIGNAL 7
void MediaPlayer2Player::openUri(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}

// SIGNAL 8
void MediaPlayer2Player::playbackStatusChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void MediaPlayer2Player::metadataChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}

// SIGNAL 10
void MediaPlayer2Player::volumeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 10, nullptr);
}

// SIGNAL 11
void MediaPlayer2Player::shuffleChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 11, nullptr, _t1);
}

// SIGNAL 12
void MediaPlayer2Player::loopStatusChanged(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 12, nullptr, _t1);
}
QT_WARNING_POP
