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

template <> constexpr inline auto AmarokScript::CollectionPrototype::qt_create_metaobjectdata<qt_meta_tag_ZN12AmarokScript19CollectionPrototypeE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "AmarokScript::CollectionPrototype",
        "updated",
        "",
        "removed",
        "finishCopy",
        "finishRemove",
        "aborted",
        "copyTracks",
        "Meta::TrackList",
        "tracks",
        "Collections::Collection*",
        "targetCollection",
        "Meta::TrackPtr",
        "track",
        "queryAndCopyTracks",
        "Collections::QueryMaker*",
        "queryMaker",
        "moveTracks",
        "queryAndMoveTracks",
        "removeTracks",
        "trackList",
        "queryAndRemoveTracks",
        "qm",
        "isOrganizable",
        "isWritable",
        "collectionId",
        "prettyName",
        "usedCapacity",
        "totalCapacity",
        "isValid",
        "icon",
        "QIcon",
        "isQueryable",
        "isViewable",
        "supportsTranscode",
        "prettyLocation",
        "actualLocation"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'updated'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'removed'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'finishCopy'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'finishRemove'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'aborted'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'copyTracks'
        QtMocHelpers::MethodData<void(const Meta::TrackList &, Collections::Collection *)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 }, { 0x80000000 | 10, 11 },
        }}),
        // Method 'copyTracks'
        QtMocHelpers::MethodData<void(const Meta::TrackPtr &, Collections::Collection *)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 }, { 0x80000000 | 10, 11 },
        }}),
        // Method 'queryAndCopyTracks'
        QtMocHelpers::MethodData<void(Collections::QueryMaker *, Collections::Collection *)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 16 }, { 0x80000000 | 10, 11 },
        }}),
        // Method 'moveTracks'
        QtMocHelpers::MethodData<void(const Meta::TrackList &, Collections::Collection *)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 }, { 0x80000000 | 10, 11 },
        }}),
        // Method 'moveTracks'
        QtMocHelpers::MethodData<void(const Meta::TrackPtr &, Collections::Collection *)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 }, { 0x80000000 | 10, 11 },
        }}),
        // Method 'queryAndMoveTracks'
        QtMocHelpers::MethodData<void(Collections::QueryMaker *, Collections::Collection *)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 16 }, { 0x80000000 | 10, 11 },
        }}),
        // Method 'removeTracks'
        QtMocHelpers::MethodData<void(const Meta::TrackList &)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 20 },
        }}),
        // Method 'removeTracks'
        QtMocHelpers::MethodData<void(const Meta::TrackPtr &)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Method 'queryAndRemoveTracks'
        QtMocHelpers::MethodData<void(Collections::QueryMaker *)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 22 },
        }}),
        // Method 'queryMaker'
        QtMocHelpers::MethodData<Collections::QueryMaker *()>(16, 2, QMC::AccessPublic, 0x80000000 | 15),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'isOrganizable'
        QtMocHelpers::PropertyData<bool>(23, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'isWritable'
        QtMocHelpers::PropertyData<bool>(24, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'collectionId'
        QtMocHelpers::PropertyData<QString>(25, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'prettyName'
        QtMocHelpers::PropertyData<QString>(26, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'usedCapacity'
        QtMocHelpers::PropertyData<float>(27, QMetaType::Float, QMC::DefaultPropertyFlags),
        // property 'totalCapacity'
        QtMocHelpers::PropertyData<float>(28, QMetaType::Float, QMC::DefaultPropertyFlags),
        // property 'isValid'
        QtMocHelpers::PropertyData<bool>(29, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'icon'
        QtMocHelpers::PropertyData<QIcon>(30, 0x80000000 | 31, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
        // property 'isQueryable'
        QtMocHelpers::PropertyData<bool>(32, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'isViewable'
        QtMocHelpers::PropertyData<bool>(33, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'supportsTranscode'
        QtMocHelpers::PropertyData<bool>(34, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'prettyLocation'
        QtMocHelpers::PropertyData<QString>(35, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'actualLocation'
        QtMocHelpers::PropertyData<QStringList>(36, QMetaType::QStringList, QMC::DefaultPropertyFlags),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<CollectionPrototype, qt_meta_tag_ZN12AmarokScript19CollectionPrototypeE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject AmarokScript::CollectionPrototype::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript19CollectionPrototypeE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript19CollectionPrototypeE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12AmarokScript19CollectionPrototypeE_t>.metaTypes,
    nullptr
} };

void AmarokScript::CollectionPrototype::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<CollectionPrototype *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->updated(); break;
        case 1: _t->removed(); break;
        case 2: _t->finishCopy(); break;
        case 3: _t->finishRemove(); break;
        case 4: _t->aborted(); break;
        case 5: _t->copyTracks((*reinterpret_cast<std::add_pointer_t<Meta::TrackList>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Collections::Collection*>>(_a[2]))); break;
        case 6: _t->copyTracks((*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Collections::Collection*>>(_a[2]))); break;
        case 7: _t->queryAndCopyTracks((*reinterpret_cast<std::add_pointer_t<Collections::QueryMaker*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Collections::Collection*>>(_a[2]))); break;
        case 8: _t->moveTracks((*reinterpret_cast<std::add_pointer_t<Meta::TrackList>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Collections::Collection*>>(_a[2]))); break;
        case 9: _t->moveTracks((*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Collections::Collection*>>(_a[2]))); break;
        case 10: _t->queryAndMoveTracks((*reinterpret_cast<std::add_pointer_t<Collections::QueryMaker*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Collections::Collection*>>(_a[2]))); break;
        case 11: _t->removeTracks((*reinterpret_cast<std::add_pointer_t<Meta::TrackList>>(_a[1]))); break;
        case 12: _t->removeTracks((*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[1]))); break;
        case 13: _t->queryAndRemoveTracks((*reinterpret_cast<std::add_pointer_t<Collections::QueryMaker*>>(_a[1]))); break;
        case 14: { Collections::QueryMaker* _r = _t->queryMaker();
            if (_a[0]) *reinterpret_cast<Collections::QueryMaker**>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Collections::Collection* >(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Meta::TrackList >(); break;
            }
            break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Collections::Collection* >(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Meta::TrackPtr >(); break;
            }
            break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Collections::Collection* >(); break;
            }
            break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Collections::Collection* >(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Meta::TrackList >(); break;
            }
            break;
        case 9:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Collections::Collection* >(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Meta::TrackPtr >(); break;
            }
            break;
        case 10:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Collections::Collection* >(); 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< Meta::TrackList >(); break;
            }
            break;
        case 12:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Meta::TrackPtr >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (CollectionPrototype::*)()>(_a, &CollectionPrototype::updated, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollectionPrototype::*)()>(_a, &CollectionPrototype::removed, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollectionPrototype::*)()>(_a, &CollectionPrototype::finishCopy, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollectionPrototype::*)()>(_a, &CollectionPrototype::finishRemove, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollectionPrototype::*)()>(_a, &CollectionPrototype::aborted, 4))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->isOrganizable(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->isWritable(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->collectionId(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->toString(); break;
        case 4: *reinterpret_cast<float*>(_v) = _t->usedCapacity(); break;
        case 5: *reinterpret_cast<float*>(_v) = _t->totalCapacity(); break;
        case 6: *reinterpret_cast<bool*>(_v) = _t->isValid(); break;
        case 7: *reinterpret_cast<QIcon*>(_v) = _t->icon(); break;
        case 8: *reinterpret_cast<bool*>(_v) = _t->isQueryable(); break;
        case 9: *reinterpret_cast<bool*>(_v) = _t->isViewable(); break;
        case 10: *reinterpret_cast<bool*>(_v) = _t->supportsTranscode(); break;
        case 11: *reinterpret_cast<QString*>(_v) = _t->prettyLocation(); break;
        case 12: *reinterpret_cast<QStringList*>(_v) = _t->actualLocation(); break;
        default: break;
        }
    }
}

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

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

int AmarokScript::CollectionPrototype::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 < 15)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 15;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 15)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 15;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    return _id;
}

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

// SIGNAL 1
void AmarokScript::CollectionPrototype::removed()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void AmarokScript::CollectionPrototype::finishCopy()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void AmarokScript::CollectionPrototype::finishRemove()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void AmarokScript::CollectionPrototype::aborted()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}
QT_WARNING_POP
