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

template <> constexpr inline auto AmarokScript::PlaylistPrototype::qt_create_metaobjectdata<qt_meta_tag_ZN12AmarokScript17PlaylistPrototypeE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "AmarokScript::PlaylistPrototype",
        "loaded",
        "",
        "Meta::TrackList",
        "tracks",
        "addedTrack",
        "Meta::TrackPtr",
        "track",
        "position",
        "removedTrack",
        "triggerFullLoad",
        "triggerQuickLoad",
        "addTrack",
        "removeTrack",
        "toString",
        "isValid",
        "name",
        "uidUrl",
        "QUrl",
        "trackCount",
        "provider",
        "Playlists::PlaylistProvider*"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'loaded'
        QtMocHelpers::SignalData<void(Meta::TrackList)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'addedTrack'
        QtMocHelpers::SignalData<void(Meta::TrackPtr, int)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 }, { QMetaType::Int, 8 },
        }}),
        // Signal 'removedTrack'
        QtMocHelpers::SignalData<void(int)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 8 },
        }}),
        // Method 'tracks'
        QtMocHelpers::MethodData<Meta::TrackList()>(4, 2, QMC::AccessPublic, 0x80000000 | 3),
        // Method 'triggerFullLoad'
        QtMocHelpers::MethodData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'triggerQuickLoad'
        QtMocHelpers::MethodData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'addTrack'
        QtMocHelpers::MethodData<void(Meta::TrackPtr, int)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 }, { QMetaType::Int, 8 },
        }}),
        // Method 'addTrack'
        QtMocHelpers::MethodData<void(Meta::TrackPtr)>(12, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Method 'removeTrack'
        QtMocHelpers::MethodData<void(int)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 8 },
        }}),
        // Method 'toString'
        QtMocHelpers::MethodData<QString() const>(14, 2, QMC::AccessPublic, QMetaType::QString),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'isValid'
        QtMocHelpers::PropertyData<bool>(15, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'name'
        QtMocHelpers::PropertyData<QString>(16, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'uidUrl'
        QtMocHelpers::PropertyData<QUrl>(17, 0x80000000 | 18, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
        // property 'trackCount'
        QtMocHelpers::PropertyData<int>(19, QMetaType::Int, QMC::DefaultPropertyFlags),
        // property 'provider'
        QtMocHelpers::PropertyData<Playlists::PlaylistProvider*>(20, 0x80000000 | 21, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<PlaylistPrototype, qt_meta_tag_ZN12AmarokScript17PlaylistPrototypeE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject AmarokScript::PlaylistPrototype::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript17PlaylistPrototypeE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript17PlaylistPrototypeE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12AmarokScript17PlaylistPrototypeE_t>.metaTypes,
    nullptr
} };

void AmarokScript::PlaylistPrototype::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PlaylistPrototype *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->loaded((*reinterpret_cast<std::add_pointer_t<Meta::TrackList>>(_a[1]))); break;
        case 1: _t->addedTrack((*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 2: _t->removedTrack((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 3: { Meta::TrackList _r = _t->tracks();
            if (_a[0]) *reinterpret_cast<Meta::TrackList*>(_a[0]) = std::move(_r); }  break;
        case 4: _t->triggerFullLoad(); break;
        case 5: _t->triggerQuickLoad(); break;
        case 6: _t->addTrack((*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 7: _t->addTrack((*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[1]))); break;
        case 8: _t->removeTrack((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 9: { QString _r = _t->toString();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PlaylistPrototype::*)(Meta::TrackList )>(_a, &PlaylistPrototype::loaded, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PlaylistPrototype::*)(Meta::TrackPtr , int )>(_a, &PlaylistPrototype::addedTrack, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (PlaylistPrototype::*)(int )>(_a, &PlaylistPrototype::removedTrack, 2))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->isValid(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->toString(); break;
        case 2: *reinterpret_cast<QUrl*>(_v) = _t->uidUrl(); break;
        case 3: *reinterpret_cast<int*>(_v) = _t->trackCount(); break;
        case 4: *reinterpret_cast<Playlists::PlaylistProvider**>(_v) = _t->provider(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setName(*reinterpret_cast<QString*>(_v)); break;
        default: break;
        }
    }
}

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

void *AmarokScript::PlaylistPrototype::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript17PlaylistPrototypeE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "Playlists::PlaylistObserver"))
        return static_cast< Playlists::PlaylistObserver*>(this);
    return QObject::qt_metacast(_clname);
}

int AmarokScript::PlaylistPrototype::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 -= 5;
    }
    return _id;
}

// SIGNAL 0
void AmarokScript::PlaylistPrototype::loaded(Meta::TrackList _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void AmarokScript::PlaylistPrototype::addedTrack(Meta::TrackPtr _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void AmarokScript::PlaylistPrototype::removedTrack(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
QT_WARNING_POP
