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

template <> constexpr inline auto Playlist::Controller::qt_create_metaobjectdata<qt_meta_tag_ZN8Playlist10ControllerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Playlist::Controller",
        "canRedoChanged",
        "",
        "canUndoChanged",
        "changed",
        "replacingPlaylist",
        "insertOptioned",
        "Meta::TrackPtr",
        "track",
        "AddOptions",
        "options",
        "Meta::TrackList",
        "list",
        "Playlists::PlaylistPtr",
        "playlist",
        "Playlists::PlaylistList",
        "QUrl",
        "url",
        "QList<QUrl>&",
        "urls",
        "insertTrack",
        "topModelRow",
        "insertTracks",
        "insertPlaylist",
        "insertPlaylists",
        "playlists",
        "insertUrls",
        "removeRow",
        "removeRows",
        "count",
        "QList<int>&",
        "topModelRows",
        "removeDeadAndDuplicates",
        "moveRow",
        "topModelFrom",
        "topModelTo",
        "moveRows",
        "reorderRows",
        "QList<int>",
        "undo",
        "redo",
        "clear",
        "slotLoaderWithOptionsFinished",
        "tracks",
        "slotLoaderWithRowFinished"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'canRedoChanged'
        QtMocHelpers::SignalData<void(bool)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Signal 'canUndoChanged'
        QtMocHelpers::SignalData<void(bool)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Signal 'changed'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'replacingPlaylist'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'insertOptioned'
        QtMocHelpers::SlotData<void(Meta::TrackPtr, AddOptions)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 8 }, { 0x80000000 | 9, 10 },
        }}),
        // Slot 'insertOptioned'
        QtMocHelpers::SlotData<void(Meta::TrackPtr)>(6, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 7, 8 },
        }}),
        // Slot 'insertOptioned'
        QtMocHelpers::SlotData<void(Meta::TrackList, AddOptions)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 12 }, { 0x80000000 | 9, 10 },
        }}),
        // Slot 'insertOptioned'
        QtMocHelpers::SlotData<void(Meta::TrackList)>(6, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Slot 'insertOptioned'
        QtMocHelpers::SlotData<void(Playlists::PlaylistPtr, AddOptions)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 13, 14 }, { 0x80000000 | 9, 10 },
        }}),
        // Slot 'insertOptioned'
        QtMocHelpers::SlotData<void(Playlists::PlaylistPtr)>(6, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 13, 14 },
        }}),
        // Slot 'insertOptioned'
        QtMocHelpers::SlotData<void(Playlists::PlaylistList, AddOptions)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 12 }, { 0x80000000 | 9, 10 },
        }}),
        // Slot 'insertOptioned'
        QtMocHelpers::SlotData<void(Playlists::PlaylistList)>(6, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 15, 12 },
        }}),
        // Slot 'insertOptioned'
        QtMocHelpers::SlotData<void(const QUrl &, AddOptions)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 16, 17 }, { 0x80000000 | 9, 10 },
        }}),
        // Slot 'insertOptioned'
        QtMocHelpers::SlotData<void(const QUrl &)>(6, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 16, 17 },
        }}),
        // Slot 'insertOptioned'
        QtMocHelpers::SlotData<void(QList<QUrl> &, AddOptions)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 18, 19 }, { 0x80000000 | 9, 10 },
        }}),
        // Slot 'insertOptioned'
        QtMocHelpers::SlotData<void(QList<QUrl> &)>(6, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 18, 19 },
        }}),
        // Slot 'insertTrack'
        QtMocHelpers::SlotData<void(int, Meta::TrackPtr)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 21 }, { 0x80000000 | 7, 8 },
        }}),
        // Slot 'insertTracks'
        QtMocHelpers::SlotData<void(int, Meta::TrackList)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 21 }, { 0x80000000 | 11, 12 },
        }}),
        // Slot 'insertPlaylist'
        QtMocHelpers::SlotData<void(int, Playlists::PlaylistPtr)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 21 }, { 0x80000000 | 13, 14 },
        }}),
        // Slot 'insertPlaylists'
        QtMocHelpers::SlotData<void(int, Playlists::PlaylistList)>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 21 }, { 0x80000000 | 15, 25 },
        }}),
        // Slot 'insertUrls'
        QtMocHelpers::SlotData<void(int, QList<QUrl> &)>(26, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 21 }, { 0x80000000 | 18, 19 },
        }}),
        // Slot 'removeRow'
        QtMocHelpers::SlotData<void(int)>(27, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 21 },
        }}),
        // Slot 'removeRows'
        QtMocHelpers::SlotData<void(int, int)>(28, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 21 }, { QMetaType::Int, 29 },
        }}),
        // Slot 'removeRows'
        QtMocHelpers::SlotData<void(QList<int> &)>(28, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 30, 31 },
        }}),
        // Slot 'removeDeadAndDuplicates'
        QtMocHelpers::SlotData<void()>(32, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'moveRow'
        QtMocHelpers::SlotData<void(int, int)>(33, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 34 }, { QMetaType::Int, 35 },
        }}),
        // Slot 'moveRows'
        QtMocHelpers::SlotData<int(QList<int> &, int)>(36, 2, QMC::AccessPublic, QMetaType::Int, {{
            { 0x80000000 | 30, 34 }, { QMetaType::Int, 35 },
        }}),
        // Slot 'reorderRows'
        QtMocHelpers::SlotData<void(const QList<int> &, const QList<int> &)>(37, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 38, 34 }, { 0x80000000 | 38, 35 },
        }}),
        // Slot 'undo'
        QtMocHelpers::SlotData<void()>(39, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'redo'
        QtMocHelpers::SlotData<void()>(40, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'clear'
        QtMocHelpers::SlotData<void()>(41, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotLoaderWithOptionsFinished'
        QtMocHelpers::SlotData<void(const Meta::TrackList &)>(42, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 11, 43 },
        }}),
        // Slot 'slotLoaderWithRowFinished'
        QtMocHelpers::SlotData<void(const Meta::TrackList &)>(44, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 11, 43 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Controller, qt_meta_tag_ZN8Playlist10ControllerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Playlist::Controller::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Playlist10ControllerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Playlist10ControllerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Playlist10ControllerE_t>.metaTypes,
    nullptr
} };

void Playlist::Controller::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Controller *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->canRedoChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 1: _t->canUndoChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 2: _t->changed(); break;
        case 3: _t->replacingPlaylist(); break;
        case 4: _t->insertOptioned((*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<AddOptions>>(_a[2]))); break;
        case 5: _t->insertOptioned((*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[1]))); break;
        case 6: _t->insertOptioned((*reinterpret_cast<std::add_pointer_t<Meta::TrackList>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<AddOptions>>(_a[2]))); break;
        case 7: _t->insertOptioned((*reinterpret_cast<std::add_pointer_t<Meta::TrackList>>(_a[1]))); break;
        case 8: _t->insertOptioned((*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistPtr>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<AddOptions>>(_a[2]))); break;
        case 9: _t->insertOptioned((*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistPtr>>(_a[1]))); break;
        case 10: _t->insertOptioned((*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistList>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<AddOptions>>(_a[2]))); break;
        case 11: _t->insertOptioned((*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistList>>(_a[1]))); break;
        case 12: _t->insertOptioned((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<AddOptions>>(_a[2]))); break;
        case 13: _t->insertOptioned((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 14: _t->insertOptioned((*reinterpret_cast<std::add_pointer_t<QList<QUrl>&>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<AddOptions>>(_a[2]))); break;
        case 15: _t->insertOptioned((*reinterpret_cast<std::add_pointer_t<QList<QUrl>&>>(_a[1]))); break;
        case 16: _t->insertTrack((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[2]))); break;
        case 17: _t->insertTracks((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Meta::TrackList>>(_a[2]))); break;
        case 18: _t->insertPlaylist((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistPtr>>(_a[2]))); break;
        case 19: _t->insertPlaylists((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistList>>(_a[2]))); break;
        case 20: _t->insertUrls((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QList<QUrl>&>>(_a[2]))); break;
        case 21: _t->removeRow((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 22: _t->removeRows((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 23: _t->removeRows((*reinterpret_cast<std::add_pointer_t<QList<int>&>>(_a[1]))); break;
        case 24: _t->removeDeadAndDuplicates(); break;
        case 25: _t->moveRow((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 26: { int _r = _t->moveRows((*reinterpret_cast<std::add_pointer_t<QList<int>&>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 27: _t->reorderRows((*reinterpret_cast<std::add_pointer_t<QList<int>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QList<int>>>(_a[2]))); break;
        case 28: _t->undo(); break;
        case 29: _t->redo(); break;
        case 30: _t->clear(); break;
        case 31: _t->slotLoaderWithOptionsFinished((*reinterpret_cast<std::add_pointer_t<Meta::TrackList>>(_a[1]))); break;
        case 32: _t->slotLoaderWithRowFinished((*reinterpret_cast<std::add_pointer_t<Meta::TrackList>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Playlists::PlaylistPtr >(); break;
            }
            break;
        case 9:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Playlists::PlaylistPtr >(); break;
            }
            break;
        case 10:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Playlists::PlaylistList >(); break;
            }
            break;
        case 11:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Playlists::PlaylistList >(); break;
            }
            break;
        case 18:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Playlists::PlaylistPtr >(); break;
            }
            break;
        case 19:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Playlists::PlaylistList >(); break;
            }
            break;
        case 27:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<int> >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Controller::*)(bool )>(_a, &Controller::canRedoChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Controller::*)(bool )>(_a, &Controller::canUndoChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Controller::*)()>(_a, &Controller::changed, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Controller::*)()>(_a, &Controller::replacingPlaylist, 3))
            return;
    }
}

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

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

int Playlist::Controller::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 < 33)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 33;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 33)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 33;
    }
    return _id;
}

// SIGNAL 0
void Playlist::Controller::canRedoChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Playlist::Controller::canUndoChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Playlist::Controller::changed()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void Playlist::Controller::replacingPlaylist()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
