/****************************************************************************
** Meta object code from reading C++ file 'PlaylistProviderExporter.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/exporters/PlaylistProviderExporter.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 'PlaylistProviderExporter.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_ZN12AmarokScript25PlaylistProviderPrototypeE_t {};
} // unnamed namespace

template <> constexpr inline auto AmarokScript::PlaylistProviderPrototype::qt_create_metaobjectdata<qt_meta_tag_ZN12AmarokScript25PlaylistProviderPrototypeE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "AmarokScript::PlaylistProviderPrototype",
        "updated",
        "",
        "playlistAdded",
        "Playlists::PlaylistPtr",
        "playlist",
        "playlistRemoved",
        "toString",
        "playlists",
        "Playlists::PlaylistList",
        "addPlaylist",
        "renamePlaylist",
        "newName",
        "deletePlaylists",
        "playlistlist",
        "save",
        "Meta::TrackList",
        "tracks",
        "name",
        "isWritable",
        "prettyName",
        "isValid",
        "icon",
        "QIcon",
        "category",
        "playlistCount"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'updated'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'playlistAdded'
        QtMocHelpers::SignalData<void(Playlists::PlaylistPtr)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Signal 'playlistRemoved'
        QtMocHelpers::SignalData<void(Playlists::PlaylistPtr)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Method 'toString'
        QtMocHelpers::MethodData<QString() const>(7, 2, QMC::AccessPublic, QMetaType::QString),
        // Method 'playlists'
        QtMocHelpers::MethodData<Playlists::PlaylistList()>(8, 2, QMC::AccessPublic, 0x80000000 | 9),
        // Method 'addPlaylist'
        QtMocHelpers::MethodData<Playlists::PlaylistPtr(Playlists::PlaylistPtr)>(10, 2, QMC::AccessPublic, 0x80000000 | 4, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Method 'renamePlaylist'
        QtMocHelpers::MethodData<void(Playlists::PlaylistPtr, const QString &)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 }, { QMetaType::QString, 12 },
        }}),
        // Method 'deletePlaylists'
        QtMocHelpers::MethodData<bool(const Playlists::PlaylistList &)>(13, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 9, 14 },
        }}),
        // Method 'save'
        QtMocHelpers::MethodData<Playlists::PlaylistPtr(const Meta::TrackList &, const QString &)>(15, 2, QMC::AccessPublic, 0x80000000 | 4, {{
            { 0x80000000 | 16, 17 }, { QMetaType::QString, 18 },
        }}),
        // Method 'save'
        QtMocHelpers::MethodData<Playlists::PlaylistPtr(const Meta::TrackList &)>(15, 2, QMC::AccessPublic | QMC::MethodCloned, 0x80000000 | 4, {{
            { 0x80000000 | 16, 17 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'isWritable'
        QtMocHelpers::PropertyData<bool>(19, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'prettyName'
        QtMocHelpers::PropertyData<QString>(20, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'isValid'
        QtMocHelpers::PropertyData<bool>(21, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'icon'
        QtMocHelpers::PropertyData<QIcon>(22, 0x80000000 | 23, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
        // property 'category'
        QtMocHelpers::PropertyData<int>(24, QMetaType::Int, QMC::DefaultPropertyFlags),
        // property 'playlistCount'
        QtMocHelpers::PropertyData<int>(25, QMetaType::Int, QMC::DefaultPropertyFlags),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<PlaylistProviderPrototype, qt_meta_tag_ZN12AmarokScript25PlaylistProviderPrototypeE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject AmarokScript::PlaylistProviderPrototype::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript25PlaylistProviderPrototypeE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript25PlaylistProviderPrototypeE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12AmarokScript25PlaylistProviderPrototypeE_t>.metaTypes,
    nullptr
} };

void AmarokScript::PlaylistProviderPrototype::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PlaylistProviderPrototype *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->updated(); break;
        case 1: _t->playlistAdded((*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistPtr>>(_a[1]))); break;
        case 2: _t->playlistRemoved((*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistPtr>>(_a[1]))); break;
        case 3: { QString _r = _t->toString();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 4: { Playlists::PlaylistList _r = _t->playlists();
            if (_a[0]) *reinterpret_cast<Playlists::PlaylistList*>(_a[0]) = std::move(_r); }  break;
        case 5: { Playlists::PlaylistPtr _r = _t->addPlaylist((*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistPtr>>(_a[1])));
            if (_a[0]) *reinterpret_cast<Playlists::PlaylistPtr*>(_a[0]) = std::move(_r); }  break;
        case 6: _t->renamePlaylist((*reinterpret_cast<std::add_pointer_t<Playlists::PlaylistPtr>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 7: { 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 8: { Playlists::PlaylistPtr _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<Playlists::PlaylistPtr*>(_a[0]) = std::move(_r); }  break;
        case 9: { Playlists::PlaylistPtr _r = _t->save((*reinterpret_cast<std::add_pointer_t<Meta::TrackList>>(_a[1])));
            if (_a[0]) *reinterpret_cast<Playlists::PlaylistPtr*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 1:
            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 2:
            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 5:
            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 6:
            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 7:
            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;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PlaylistProviderPrototype::*)()>(_a, &PlaylistProviderPrototype::updated, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PlaylistProviderPrototype::*)(Playlists::PlaylistPtr )>(_a, &PlaylistProviderPrototype::playlistAdded, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (PlaylistProviderPrototype::*)(Playlists::PlaylistPtr )>(_a, &PlaylistProviderPrototype::playlistRemoved, 2))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->isWritable(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->toString(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->isValid(); break;
        case 3: *reinterpret_cast<QIcon*>(_v) = _t->icon(); break;
        case 4: *reinterpret_cast<int*>(_v) = _t->category(); break;
        case 5: *reinterpret_cast<int*>(_v) = _t->playlistCount(); break;
        default: break;
        }
    }
}

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

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

int AmarokScript::PlaylistProviderPrototype::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)
            qt_static_metacall(this, _c, _id, _a);
        _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 -= 6;
    }
    return _id;
}

// SIGNAL 0
void AmarokScript::PlaylistProviderPrototype::updated()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void AmarokScript::PlaylistProviderPrototype::playlistAdded(Playlists::PlaylistPtr _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void AmarokScript::PlaylistProviderPrototype::playlistRemoved(Playlists::PlaylistPtr _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
QT_WARNING_POP
