/****************************************************************************
** Meta object code from reading C++ file 'playlistsmanager.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 "../../../../../haruna/src/playlist/playlistsmanager.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 'playlistsmanager.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_ZN16PlaylistsManagerE_t {};
} // unnamed namespace

template <> constexpr inline auto PlaylistsManager::qt_create_metaobjectdata<qt_meta_tag_ZN16PlaylistsManagerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PlaylistsManager",
        "QML.Element",
        "auto",
        "activePlaylistChanged",
        "",
        "visiblePlaylistChanged",
        "defaultPlaylistChanged",
        "playlistsChanged",
        "playingItemChanged",
        "initialize",
        "QList<QUrl>",
        "urls",
        "playNext",
        "playPrevious",
        "activeItemPath",
        "activePlaylist",
        "PlaylistFilterProxyModel*",
        "visiblePlaylist",
        "defaultPlaylist",
        "playlists",
        "PlaylistMultiProxiesModel*"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'activePlaylistChanged'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'visiblePlaylistChanged'
        QtMocHelpers::SignalData<void()>(5, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'defaultPlaylistChanged'
        QtMocHelpers::SignalData<void()>(6, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'playlistsChanged'
        QtMocHelpers::SignalData<void()>(7, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'playingItemChanged'
        QtMocHelpers::SignalData<void()>(8, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'initialize'
        QtMocHelpers::MethodData<void(QList<QUrl>)>(9, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Method 'initialize'
        QtMocHelpers::MethodData<void()>(9, 4, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Method 'playNext'
        QtMocHelpers::MethodData<void()>(12, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'playPrevious'
        QtMocHelpers::MethodData<void()>(13, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'activeItemPath'
        QtMocHelpers::MethodData<QString()>(14, 4, QMC::AccessPublic, QMetaType::QString),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'activePlaylist'
        QtMocHelpers::PropertyData<PlaylistFilterProxyModel*>(15, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Final, 0),
        // property 'visiblePlaylist'
        QtMocHelpers::PropertyData<PlaylistFilterProxyModel*>(17, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Final, 1),
        // property 'defaultPlaylist'
        QtMocHelpers::PropertyData<PlaylistFilterProxyModel*>(18, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Final, 2),
        // property 'playlists'
        QtMocHelpers::PropertyData<PlaylistMultiProxiesModel*>(19, 0x80000000 | 20, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 3),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<PlaylistsManager, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject PlaylistsManager::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16PlaylistsManagerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16PlaylistsManagerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN16PlaylistsManagerE_t>.metaTypes,
    nullptr
} };

void PlaylistsManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PlaylistsManager *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->activePlaylistChanged(); break;
        case 1: _t->visiblePlaylistChanged(); break;
        case 2: _t->defaultPlaylistChanged(); break;
        case 3: _t->playlistsChanged(); break;
        case 4: _t->playingItemChanged(); break;
        case 5: _t->initialize((*reinterpret_cast<std::add_pointer_t<QList<QUrl>>>(_a[1]))); break;
        case 6: _t->initialize(); break;
        case 7: _t->playNext(); break;
        case 8: _t->playPrevious(); break;
        case 9: { QString _r = _t->activeItemPath();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PlaylistsManager::*)()>(_a, &PlaylistsManager::activePlaylistChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PlaylistsManager::*)()>(_a, &PlaylistsManager::visiblePlaylistChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (PlaylistsManager::*)()>(_a, &PlaylistsManager::defaultPlaylistChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (PlaylistsManager::*)()>(_a, &PlaylistsManager::playlistsChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (PlaylistsManager::*)()>(_a, &PlaylistsManager::playingItemChanged, 4))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 2:
        case 1:
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< PlaylistFilterProxyModel* >(); break;
        case 3:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< PlaylistMultiProxiesModel* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<PlaylistFilterProxyModel**>(_v) = _t->activePlaylist(); break;
        case 1: *reinterpret_cast<PlaylistFilterProxyModel**>(_v) = _t->visiblePlaylist(); break;
        case 2: *reinterpret_cast<PlaylistFilterProxyModel**>(_v) = _t->defaultPlaylist(); break;
        case 3: *reinterpret_cast<PlaylistMultiProxiesModel**>(_v) = _t->playlists(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 3: _t->setPlaylists(*reinterpret_cast<PlaylistMultiProxiesModel**>(_v)); break;
        default: break;
        }
    }
}

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

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

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

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

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

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

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