/****************************************************************************
** Meta object code from reading C++ file 'playlistmultiproxiesmodel.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-1.8.1/src/playlist/playlistmultiproxiesmodel.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 'playlistmultiproxiesmodel.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_ZN25PlaylistMultiProxiesModelE_t {};
} // unnamed namespace

template <> constexpr inline auto PlaylistMultiProxiesModel::qt_create_metaobjectdata<qt_meta_tag_ZN25PlaylistMultiProxiesModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PlaylistMultiProxiesModel",
        "QML.Element",
        "playingItemChanged",
        "",
        "visibleIndexChanged",
        "activeIndexChanged",
        "createNewPlaylist",
        "playlistName",
        "removePlaylist",
        "pIndex",
        "movePlaylist",
        "row",
        "destinationRow",
        "renamePlaylist",
        "resetTabView",
        "activeIndex",
        "visibleIndex",
        "Roles",
        "NameRole",
        "VisibleRole",
        "ActiveRole"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'playingItemChanged'
        QtMocHelpers::SignalData<void()>(2, 3, QMC::AccessPublic, QMetaType::Void),
        // Signal 'visibleIndexChanged'
        QtMocHelpers::SignalData<void()>(4, 3, QMC::AccessPublic, QMetaType::Void),
        // Signal 'activeIndexChanged'
        QtMocHelpers::SignalData<void()>(5, 3, QMC::AccessPublic, QMetaType::Void),
        // Method 'createNewPlaylist'
        QtMocHelpers::MethodData<void(const QString &)>(6, 3, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 },
        }}),
        // Method 'removePlaylist'
        QtMocHelpers::MethodData<void(uint)>(8, 3, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 9 },
        }}),
        // Method 'movePlaylist'
        QtMocHelpers::MethodData<void(uint, uint)>(10, 3, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 11 }, { QMetaType::UInt, 12 },
        }}),
        // Method 'renamePlaylist'
        QtMocHelpers::MethodData<void(uint)>(13, 3, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 9 },
        }}),
        // Method 'resetTabView'
        QtMocHelpers::MethodData<void()>(14, 3, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'activeIndex'
        QtMocHelpers::PropertyData<uint>(15, QMetaType::UInt, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'visibleIndex'
        QtMocHelpers::PropertyData<uint>(16, QMetaType::UInt, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Roles'
        QtMocHelpers::EnumData<enum Roles>(17, 17, QMC::EnumFlags{}).add({
            {   18, Roles::NameRole },
            {   19, Roles::VisibleRole },
            {   20, Roles::ActiveRole },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    0 },
    });
    return QtMocHelpers::metaObjectData<PlaylistMultiProxiesModel, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject PlaylistMultiProxiesModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractListModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN25PlaylistMultiProxiesModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN25PlaylistMultiProxiesModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN25PlaylistMultiProxiesModelE_t>.metaTypes,
    nullptr
} };

void PlaylistMultiProxiesModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PlaylistMultiProxiesModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->playingItemChanged(); break;
        case 1: _t->visibleIndexChanged(); break;
        case 2: _t->activeIndexChanged(); break;
        case 3: _t->createNewPlaylist((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->removePlaylist((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1]))); break;
        case 5: _t->movePlaylist((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<uint>>(_a[2]))); break;
        case 6: _t->renamePlaylist((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1]))); break;
        case 7: _t->resetTabView(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PlaylistMultiProxiesModel::*)()>(_a, &PlaylistMultiProxiesModel::playingItemChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PlaylistMultiProxiesModel::*)()>(_a, &PlaylistMultiProxiesModel::visibleIndexChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (PlaylistMultiProxiesModel::*)()>(_a, &PlaylistMultiProxiesModel::activeIndexChanged, 2))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<uint*>(_v) = _t->activeIndex(); break;
        case 1: *reinterpret_cast<uint*>(_v) = _t->visibleIndex(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setActiveIndex(*reinterpret_cast<uint*>(_v)); break;
        case 1: _t->setVisibleIndex(*reinterpret_cast<uint*>(_v)); break;
        default: break;
        }
    }
}

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

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

int PlaylistMultiProxiesModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractListModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 8;
    }
    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 PlaylistMultiProxiesModel::playingItemChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

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

// SIGNAL 2
void PlaylistMultiProxiesModel::activeIndexChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
