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

template <> constexpr inline auto AmarokScript::AmarokPlaylistScript::qt_create_metaobjectdata<qt_meta_tag_ZN12AmarokScript20AmarokPlaylistScriptE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "AmarokScript::AmarokPlaylistScript",
        "trackInserted",
        "",
        "start",
        "end",
        "trackRemoved",
        "slotTrackInserted",
        "QModelIndex",
        "slotTrackRemoved",
        "activeIndex",
        "totalTrackCount",
        "saveCurrentPlaylist",
        "addMedia",
        "QUrl",
        "url",
        "addTrack",
        "Meta::TrackPtr",
        "track",
        "addMediaList",
        "QList<QUrl>",
        "urls",
        "addTrackList",
        "Meta::TrackList",
        "tracks",
        "clearPlaylist",
        "playByIndex",
        "index",
        "playMedia",
        "playTrack",
        "playMediaList",
        "playTrackList",
        "trackList",
        "removeCurrentTrack",
        "removeByIndex",
        "savePlaylist",
        "path",
        "setStopAfterCurrent",
        "on",
        "stopAfterCurrent",
        "togglePlaylist",
        "filenames",
        "trackAt",
        "row",
        "selectedIndexes",
        "QList<int>",
        "selectedFilenames"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'trackInserted'
        QtMocHelpers::SignalData<void(int, int)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::Int, 4 },
        }}),
        // Signal 'trackRemoved'
        QtMocHelpers::SignalData<void(int, int)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::Int, 4 },
        }}),
        // Slot 'slotTrackInserted'
        QtMocHelpers::SlotData<void(const QModelIndex &, int, int)>(6, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 7, 2 }, { QMetaType::Int, 3 }, { QMetaType::Int, 4 },
        }}),
        // Slot 'slotTrackRemoved'
        QtMocHelpers::SlotData<void(const QModelIndex &, int, int)>(8, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 7, 2 }, { QMetaType::Int, 3 }, { QMetaType::Int, 4 },
        }}),
        // Method 'activeIndex'
        QtMocHelpers::MethodData<int()>(9, 2, QMC::AccessPublic, QMetaType::Int),
        // Method 'totalTrackCount'
        QtMocHelpers::MethodData<int()>(10, 2, QMC::AccessPublic, QMetaType::Int),
        // Method 'saveCurrentPlaylist'
        QtMocHelpers::MethodData<QString()>(11, 2, QMC::AccessPublic, QMetaType::QString),
        // Method 'addMedia'
        QtMocHelpers::MethodData<void(const QUrl &)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 13, 14 },
        }}),
        // Method 'addTrack'
        QtMocHelpers::MethodData<void(const Meta::TrackPtr &)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 16, 17 },
        }}),
        // Method 'addMediaList'
        QtMocHelpers::MethodData<void(const QList<QUrl> &)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 19, 20 },
        }}),
        // Method 'addTrackList'
        QtMocHelpers::MethodData<void(const Meta::TrackList &)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 22, 23 },
        }}),
        // Method 'clearPlaylist'
        QtMocHelpers::MethodData<void()>(24, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'playByIndex'
        QtMocHelpers::MethodData<void(int)>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 26 },
        }}),
        // Method 'playMedia'
        QtMocHelpers::MethodData<void(const QUrl &)>(27, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 13, 14 },
        }}),
        // Method 'playTrack'
        QtMocHelpers::MethodData<void(const Meta::TrackPtr &)>(28, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 16, 17 },
        }}),
        // Method 'playMediaList'
        QtMocHelpers::MethodData<void(const QList<QUrl> &)>(29, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 19, 20 },
        }}),
        // Method 'playTrackList'
        QtMocHelpers::MethodData<void(const Meta::TrackList &)>(30, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 22, 31 },
        }}),
        // Method 'removeCurrentTrack'
        QtMocHelpers::MethodData<void()>(32, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'removeByIndex'
        QtMocHelpers::MethodData<void(int)>(33, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 26 },
        }}),
        // Method 'savePlaylist'
        QtMocHelpers::MethodData<void(const QString &)>(34, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 35 },
        }}),
        // Method 'setStopAfterCurrent'
        QtMocHelpers::MethodData<void(bool)>(36, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 37 },
        }}),
        // Method 'stopAfterCurrent'
        QtMocHelpers::MethodData<bool()>(38, 2, QMC::AccessPublic, QMetaType::Bool),
        // Method 'togglePlaylist'
        QtMocHelpers::MethodData<void()>(39, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'filenames'
        QtMocHelpers::MethodData<QStringList()>(40, 2, QMC::AccessPublic, QMetaType::QStringList),
        // Method 'trackAt'
        QtMocHelpers::MethodData<Meta::TrackPtr(int)>(41, 2, QMC::AccessPublic, 0x80000000 | 16, {{
            { QMetaType::Int, 42 },
        }}),
        // Method 'selectedIndexes'
        QtMocHelpers::MethodData<QList<int>()>(43, 2, QMC::AccessPublic, 0x80000000 | 44),
        // Method 'selectedFilenames'
        QtMocHelpers::MethodData<QStringList()>(45, 2, QMC::AccessPublic, QMetaType::QStringList),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<AmarokPlaylistScript, qt_meta_tag_ZN12AmarokScript20AmarokPlaylistScriptE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject AmarokScript::AmarokPlaylistScript::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript20AmarokPlaylistScriptE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript20AmarokPlaylistScriptE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12AmarokScript20AmarokPlaylistScriptE_t>.metaTypes,
    nullptr
} };

void AmarokScript::AmarokPlaylistScript::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<AmarokPlaylistScript *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->trackInserted((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 1: _t->trackRemoved((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 2: _t->slotTrackInserted((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 3: _t->slotTrackRemoved((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 4: { int _r = _t->activeIndex();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 5: { int _r = _t->totalTrackCount();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 6: { QString _r = _t->saveCurrentPlaylist();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 7: _t->addMedia((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 8: _t->addTrack((*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[1]))); break;
        case 9: _t->addMediaList((*reinterpret_cast<std::add_pointer_t<QList<QUrl>>>(_a[1]))); break;
        case 10: _t->addTrackList((*reinterpret_cast<std::add_pointer_t<Meta::TrackList>>(_a[1]))); break;
        case 11: _t->clearPlaylist(); break;
        case 12: _t->playByIndex((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 13: _t->playMedia((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 14: _t->playTrack((*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[1]))); break;
        case 15: _t->playMediaList((*reinterpret_cast<std::add_pointer_t<QList<QUrl>>>(_a[1]))); break;
        case 16: _t->playTrackList((*reinterpret_cast<std::add_pointer_t<Meta::TrackList>>(_a[1]))); break;
        case 17: _t->removeCurrentTrack(); break;
        case 18: _t->removeByIndex((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 19: _t->savePlaylist((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 20: _t->setStopAfterCurrent((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 21: { bool _r = _t->stopAfterCurrent();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 22: _t->togglePlaylist(); break;
        case 23: { QStringList _r = _t->filenames();
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 24: { Meta::TrackPtr _r = _t->trackAt((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<Meta::TrackPtr*>(_a[0]) = std::move(_r); }  break;
        case 25: { QList<int> _r = _t->selectedIndexes();
            if (_a[0]) *reinterpret_cast<QList<int>*>(_a[0]) = std::move(_r); }  break;
        case 26: { QStringList _r = _t->selectedFilenames();
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (AmarokPlaylistScript::*)(int , int )>(_a, &AmarokPlaylistScript::trackInserted, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (AmarokPlaylistScript::*)(int , int )>(_a, &AmarokPlaylistScript::trackRemoved, 1))
            return;
    }
}

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

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

int AmarokScript::AmarokPlaylistScript::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 < 27)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 27;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 27)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 27;
    }
    return _id;
}

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

// SIGNAL 1
void AmarokScript::AmarokPlaylistScript::trackRemoved(int _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}
QT_WARNING_POP
