/****************************************************************************
** Meta object code from reading C++ file 'AmarokPlaylistManagerScript.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/scripting/scriptengine/AmarokPlaylistManagerScript.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 'AmarokPlaylistManagerScript.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_ZN12AmarokScript27AmarokPlaylistManagerScriptE_t {};
} // unnamed namespace

template <> constexpr inline auto AmarokScript::AmarokPlaylistManagerScript::qt_create_metaobjectdata<qt_meta_tag_ZN12AmarokScript27AmarokPlaylistManagerScriptE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "AmarokScript::AmarokPlaylistManagerScript",
        "updated",
        "",
        "category",
        "categoryAdded",
        "providerAdded",
        "Playlists::PlaylistProvider*",
        "provider",
        "providerRemoved",
        "playlistAdded",
        "Playlists::PlaylistPtr",
        "playlist",
        "playlistRemoved",
        "playlistUpdated",
        "renamePlaylist",
        "playlistsOfCategory",
        "Playlists::PlaylistList",
        "playlistCategory",
        "providersForCategory",
        "Playlists::PlaylistProviderList",
        "playlistProvider",
        "name",
        "save",
        "Meta::TrackList",
        "tracks",
        "toProvider",
        "import",
        "QUrl",
        "fromLocation",
        "rename",
        "newName",
        "deletePlaylists",
        "playlistList",
        "getProvidersForPlaylist",
        "QList<Playlists::PlaylistProvider*>",
        "isWritable",
        "availableCategories",
        "QList<int>"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'updated'
        QtMocHelpers::SignalData<void(int)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 },
        }}),
        // Signal 'categoryAdded'
        QtMocHelpers::SignalData<void(int)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 },
        }}),
        // Signal 'providerAdded'
        QtMocHelpers::SignalData<void(Playlists::PlaylistProvider *, int)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 }, { QMetaType::Int, 3 },
        }}),
        // Signal 'providerRemoved'
        QtMocHelpers::SignalData<void(Playlists::PlaylistProvider *, int)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 }, { QMetaType::Int, 3 },
        }}),
        // Signal 'playlistAdded'
        QtMocHelpers::SignalData<void(Playlists::PlaylistPtr, int)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 }, { QMetaType::Int, 3 },
        }}),
        // Signal 'playlistRemoved'
        QtMocHelpers::SignalData<void(Playlists::PlaylistPtr, int)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 }, { QMetaType::Int, 3 },
        }}),
        // Signal 'playlistUpdated'
        QtMocHelpers::SignalData<void(Playlists::PlaylistPtr, int)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 }, { QMetaType::Int, 3 },
        }}),
        // Signal 'renamePlaylist'
        QtMocHelpers::SignalData<void(Playlists::PlaylistPtr)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Method 'playlistsOfCategory'
        QtMocHelpers::MethodData<Playlists::PlaylistList(int)>(15, 2, QMC::AccessPublic, 0x80000000 | 16, {{
            { QMetaType::Int, 17 },
        }}),
        // Method 'providersForCategory'
        QtMocHelpers::MethodData<Playlists::PlaylistProviderList(int)>(18, 2, QMC::AccessPublic, 0x80000000 | 19, {{
            { QMetaType::Int, 17 },
        }}),
        // Method 'playlistProvider'
        QtMocHelpers::MethodData<Playlists::PlaylistProvider *(int, QString)>(20, 2, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::Int, 3 }, { QMetaType::QString, 21 },
        }}),
        // Method 'save'
        QtMocHelpers::MethodData<bool(Meta::TrackList, const QString &, Playlists::PlaylistProvider *)>(22, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 23, 24 }, { QMetaType::QString, 21 }, { 0x80000000 | 6, 25 },
        }}),
        // Method 'save'
        QtMocHelpers::MethodData<bool(Meta::TrackList, const QString &)>(22, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { 0x80000000 | 23, 24 }, { QMetaType::QString, 21 },
        }}),
        // Method 'save'
        QtMocHelpers::MethodData<bool(Meta::TrackList)>(22, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { 0x80000000 | 23, 24 },
        }}),
        // Method 'import'
        QtMocHelpers::MethodData<bool(const QUrl &)>(26, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 27, 28 },
        }}),
        // Method 'rename'
        QtMocHelpers::MethodData<bool(Playlists::PlaylistPtr, const QString &)>(29, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 10, 11 }, { QMetaType::QString, 30 },
        }}),
        // Method 'deletePlaylists'
        QtMocHelpers::MethodData<bool(Playlists::PlaylistList)>(31, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 16, 32 },
        }}),
        // Method 'getProvidersForPlaylist'
        QtMocHelpers::MethodData<QList<Playlists::PlaylistProvider*>(const Playlists::PlaylistPtr)>(33, 2, QMC::AccessPublic, 0x80000000 | 34, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Method 'isWritable'
        QtMocHelpers::MethodData<bool(const Playlists::PlaylistPtr &)>(35, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 10, 11 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'availableCategories'
        QtMocHelpers::PropertyData<QList<int>>(36, 0x80000000 | 37, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<AmarokPlaylistManagerScript, qt_meta_tag_ZN12AmarokScript27AmarokPlaylistManagerScriptE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject AmarokScript::AmarokPlaylistManagerScript::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript27AmarokPlaylistManagerScriptE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript27AmarokPlaylistManagerScriptE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12AmarokScript27AmarokPlaylistManagerScriptE_t>.metaTypes,
    nullptr
} };

void AmarokScript::AmarokPlaylistManagerScript::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<AmarokPlaylistManagerScript *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->updated((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 1: _t->categoryAdded((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 2: _t->providerAdded((*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistProvider*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 3: _t->providerRemoved((*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistProvider*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 4: _t->playlistAdded((*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistPtr>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 5: _t->playlistRemoved((*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistPtr>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 6: _t->playlistUpdated((*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistPtr>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 7: _t->renamePlaylist((*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistPtr>>(_a[1]))); break;
        case 8: { Playlists::PlaylistList _r = _t->playlistsOfCategory((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<Playlists::PlaylistList*>(_a[0]) = std::move(_r); }  break;
        case 9: { Playlists::PlaylistProviderList _r = _t->providersForCategory((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<Playlists::PlaylistProviderList*>(_a[0]) = std::move(_r); }  break;
        case 10: { Playlists::PlaylistProvider* _r = _t->playlistProvider((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<Playlists::PlaylistProvider**>(_a[0]) = std::move(_r); }  break;
        case 11: { bool _r = _t->save((*reinterpret_cast<std::add_pointer_t<Meta::TrackList>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistProvider*>>(_a[3])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 12: { bool _r = _t->save((*reinterpret_cast<std::add_pointer_t<Meta::TrackList>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 13: { bool _r = _t->save((*reinterpret_cast<std::add_pointer_t<Meta::TrackList>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 14: { bool _r = _t->import((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 15: { bool _r = _t->rename((*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistPtr>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 16: { bool _r = _t->deletePlaylists((*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistList>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 17: { QList<Playlists::PlaylistProvider*> _r = _t->getProvidersForPlaylist((*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistPtr>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QList<Playlists::PlaylistProvider*>*>(_a[0]) = std::move(_r); }  break;
        case 18: { bool _r = _t->isWritable((*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistPtr>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (AmarokPlaylistManagerScript::*)(int )>(_a, &AmarokPlaylistManagerScript::updated, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (AmarokPlaylistManagerScript::*)(int )>(_a, &AmarokPlaylistManagerScript::categoryAdded, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (AmarokPlaylistManagerScript::*)(Playlists::PlaylistProvider * , int )>(_a, &AmarokPlaylistManagerScript::providerAdded, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (AmarokPlaylistManagerScript::*)(Playlists::PlaylistProvider * , int )>(_a, &AmarokPlaylistManagerScript::providerRemoved, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (AmarokPlaylistManagerScript::*)(Playlists::PlaylistPtr , int )>(_a, &AmarokPlaylistManagerScript::playlistAdded, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (AmarokPlaylistManagerScript::*)(Playlists::PlaylistPtr , int )>(_a, &AmarokPlaylistManagerScript::playlistRemoved, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (AmarokPlaylistManagerScript::*)(Playlists::PlaylistPtr , int )>(_a, &AmarokPlaylistManagerScript::playlistUpdated, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (AmarokPlaylistManagerScript::*)(Playlists::PlaylistPtr )>(_a, &AmarokPlaylistManagerScript::renamePlaylist, 7))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<int> >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QList<int>*>(_v) = _t->availableCategories(); break;
        default: break;
        }
    }
}

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

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

int AmarokScript::AmarokPlaylistManagerScript::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 < 19)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 19;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 19)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 19;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
    return _id;
}

// SIGNAL 0
void AmarokScript::AmarokPlaylistManagerScript::updated(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void AmarokScript::AmarokPlaylistManagerScript::categoryAdded(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void AmarokScript::AmarokPlaylistManagerScript::providerAdded(Playlists::PlaylistProvider * _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}

// SIGNAL 3
void AmarokScript::AmarokPlaylistManagerScript::providerRemoved(Playlists::PlaylistProvider * _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1, _t2);
}

// SIGNAL 4
void AmarokScript::AmarokPlaylistManagerScript::playlistAdded(Playlists::PlaylistPtr _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1, _t2);
}

// SIGNAL 5
void AmarokScript::AmarokPlaylistManagerScript::playlistRemoved(Playlists::PlaylistPtr _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1, _t2);
}

// SIGNAL 6
void AmarokScript::AmarokPlaylistManagerScript::playlistUpdated(Playlists::PlaylistPtr _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1, _t2);
}

// SIGNAL 7
void AmarokScript::AmarokPlaylistManagerScript::renamePlaylist(Playlists::PlaylistPtr _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}
QT_WARNING_POP
