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

template <> constexpr inline auto Playlist::qt_create_metaobjectdata<qt_meta_tag_ZN8PlaylistE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Playlist",
        "canPlayChanged",
        "",
        "modelChanged",
        "TracksModel*",
        "model",
        "currentTrackChanged",
        "QVariantMap",
        "currentTrack",
        "currentIndexChanged",
        "currentIndex",
        "missingFile",
        "track",
        "playModeChanged",
        "Playlist::PlayMode",
        "playMode",
        "repeatModeChanged",
        "RepeatMode",
        "repeatMode",
        "autoResumeChanged",
        "autoResume",
        "canGoNext",
        "canGoPrevious",
        "canPlay",
        "next",
        "previous",
        "play",
        "index",
        "clear",
        "save",
        "loadLastPlaylist",
        "append",
        "insert",
        "urls",
        "setModel",
        "setCurrentIndex",
        "changeCurrentIndex",
        "setPlayMode",
        "shuffleRange",
        "start",
        "stop",
        "move",
        "from",
        "to",
        "remove",
        "setRepeatMode",
        "setAutoResume",
        "PlayMode",
        "Normal",
        "Shuffle",
        "NoRepeat",
        "RepeatOnce",
        "Repeat"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'canPlayChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'modelChanged'
        QtMocHelpers::SignalData<void(TracksModel *)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Signal 'currentTrackChanged'
        QtMocHelpers::SignalData<void(QVariantMap)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 8 },
        }}),
        // Signal 'currentIndexChanged'
        QtMocHelpers::SignalData<void(int)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 10 },
        }}),
        // Signal 'missingFile'
        QtMocHelpers::SignalData<void(QVariantMap)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 12 },
        }}),
        // Signal 'playModeChanged'
        QtMocHelpers::SignalData<void(Playlist::PlayMode)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 15 },
        }}),
        // Signal 'repeatModeChanged'
        QtMocHelpers::SignalData<void(enum RepeatMode)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 17, 18 },
        }}),
        // Signal 'autoResumeChanged'
        QtMocHelpers::SignalData<void(bool)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 20 },
        }}),
        // Slot 'canGoNext'
        QtMocHelpers::SlotData<bool() const>(21, 2, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'canGoPrevious'
        QtMocHelpers::SlotData<bool() const>(22, 2, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'canPlay'
        QtMocHelpers::SlotData<bool() const>(23, 2, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'next'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'previous'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'play'
        QtMocHelpers::SlotData<void(int)>(26, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 27 },
        }}),
        // Slot 'clear'
        QtMocHelpers::SlotData<void()>(28, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'save'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'loadLastPlaylist'
        QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'append'
        QtMocHelpers::SlotData<void(const QVariantMap &)>(31, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 12 },
        }}),
        // Slot 'insert'
        QtMocHelpers::SlotData<void(const QStringList &, const int &)>(32, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QStringList, 33 }, { QMetaType::Int, 27 },
        }}),
        // Slot 'setModel'
        QtMocHelpers::SlotData<void(TracksModel *)>(34, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Slot 'setCurrentIndex'
        QtMocHelpers::SlotData<void(int)>(35, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 27 },
        }}),
        // Slot 'changeCurrentIndex'
        QtMocHelpers::SlotData<void(int)>(36, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 27 },
        }}),
        // Slot 'setPlayMode'
        QtMocHelpers::SlotData<void(Playlist::PlayMode)>(37, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 15 },
        }}),
        // Slot 'shuffleRange'
        QtMocHelpers::SlotData<void(int, int)>(38, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 39 }, { QMetaType::Int, 40 },
        }}),
        // Slot 'move'
        QtMocHelpers::SlotData<void(int, int)>(41, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 42 }, { QMetaType::Int, 43 },
        }}),
        // Slot 'remove'
        QtMocHelpers::SlotData<void(int)>(44, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 27 },
        }}),
        // Slot 'setRepeatMode'
        QtMocHelpers::SlotData<void(enum RepeatMode)>(45, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 17, 18 },
        }}),
        // Slot 'setAutoResume'
        QtMocHelpers::SlotData<void(bool)>(46, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 20 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'model'
        QtMocHelpers::PropertyData<TracksModel*>(5, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'currentTrack'
        QtMocHelpers::PropertyData<QVariantMap>(8, 0x80000000 | 7, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Final, 2),
        // property 'currentIndex'
        QtMocHelpers::PropertyData<int>(10, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Final, 3),
        // property 'playMode'
        QtMocHelpers::PropertyData<enum PlayMode>(15, 0x80000000 | 47, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 5),
        // property 'repeatMode'
        QtMocHelpers::PropertyData<enum RepeatMode>(18, 0x80000000 | 17, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 6),
        // property 'autoResume'
        QtMocHelpers::PropertyData<bool>(20, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 7),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'PlayMode'
        QtMocHelpers::EnumData<enum PlayMode>(47, 47, QMC::EnumFlags{}).add({
            {   48, PlayMode::Normal },
            {   49, PlayMode::Shuffle },
        }),
        // enum 'RepeatMode'
        QtMocHelpers::EnumData<enum RepeatMode>(17, 17, QMC::EnumFlags{}).add({
            {   50, RepeatMode::NoRepeat },
            {   51, RepeatMode::RepeatOnce },
            {   52, RepeatMode::Repeat },
        }),
    };
    return QtMocHelpers::metaObjectData<Playlist, qt_meta_tag_ZN8PlaylistE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Playlist::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8PlaylistE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8PlaylistE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8PlaylistE_t>.metaTypes,
    nullptr
} };

void Playlist::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Playlist *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->canPlayChanged(); break;
        case 1: _t->modelChanged((*reinterpret_cast<std::add_pointer_t<TracksModel*>>(_a[1]))); break;
        case 2: _t->currentTrackChanged((*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[1]))); break;
        case 3: _t->currentIndexChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 4: _t->missingFile((*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[1]))); break;
        case 5: _t->playModeChanged((*reinterpret_cast<std::add_pointer_t<Playlist::PlayMode>>(_a[1]))); break;
        case 6: _t->repeatModeChanged((*reinterpret_cast<std::add_pointer_t<enum RepeatMode>>(_a[1]))); break;
        case 7: _t->autoResumeChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 8: { bool _r = _t->canGoNext();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 9: { bool _r = _t->canGoPrevious();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 10: { bool _r = _t->canPlay();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 11: _t->next(); break;
        case 12: _t->previous(); break;
        case 13: _t->play((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 14: _t->clear(); break;
        case 15: _t->save(); break;
        case 16: _t->loadLastPlaylist(); break;
        case 17: _t->append((*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[1]))); break;
        case 18: _t->insert((*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 19: _t->setModel((*reinterpret_cast<std::add_pointer_t<TracksModel*>>(_a[1]))); break;
        case 20: _t->setCurrentIndex((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 21: _t->changeCurrentIndex((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 22: _t->setPlayMode((*reinterpret_cast<std::add_pointer_t<Playlist::PlayMode>>(_a[1]))); break;
        case 23: _t->shuffleRange((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 24: _t->move((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 25: _t->remove((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 26: _t->setRepeatMode((*reinterpret_cast<std::add_pointer_t<enum RepeatMode>>(_a[1]))); break;
        case 27: _t->setAutoResume((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Playlist::*)()>(_a, &Playlist::canPlayChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Playlist::*)(TracksModel * )>(_a, &Playlist::modelChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Playlist::*)(QVariantMap )>(_a, &Playlist::currentTrackChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Playlist::*)(int )>(_a, &Playlist::currentIndexChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Playlist::*)(QVariantMap )>(_a, &Playlist::missingFile, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Playlist::*)(Playlist::PlayMode )>(_a, &Playlist::playModeChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (Playlist::*)(RepeatMode )>(_a, &Playlist::repeatModeChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (Playlist::*)(bool )>(_a, &Playlist::autoResumeChanged, 7))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<TracksModel**>(_v) = _t->model(); break;
        case 1: *reinterpret_cast<QVariantMap*>(_v) = _t->currentTrack(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->currentIndex(); break;
        case 3: *reinterpret_cast<enum PlayMode*>(_v) = _t->playMode(); break;
        case 4: *reinterpret_cast<enum RepeatMode*>(_v) = _t->repeatMode(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->autoResume(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setModel(*reinterpret_cast<TracksModel**>(_v)); break;
        case 3: _t->setPlayMode(*reinterpret_cast<enum PlayMode*>(_v)); break;
        case 4: _t->setRepeatMode(*reinterpret_cast<enum RepeatMode*>(_v)); break;
        case 5: _t->setAutoResume(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

void *Playlist::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8PlaylistE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QQmlParserStatus"))
        return static_cast< QQmlParserStatus*>(this);
    if (!strcmp(_clname, "org.qt-project.Qt.QQmlParserStatus"))
        return static_cast< QQmlParserStatus*>(this);
    return QObject::qt_metacast(_clname);
}

int Playlist::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 < 28)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 28;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 28)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 28;
    }
    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 Playlist::canPlayChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void Playlist::modelChanged(TracksModel * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Playlist::currentTrackChanged(QVariantMap _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Playlist::currentIndexChanged(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Playlist::missingFile(QVariantMap _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void Playlist::playModeChanged(Playlist::PlayMode _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void Playlist::repeatModeChanged(RepeatMode _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

// SIGNAL 7
void Playlist::autoResumeChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}
QT_WARNING_POP
