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

template <> constexpr inline auto AmarokScript::AmarokCollectionScript::qt_create_metaobjectdata<qt_meta_tag_ZN12AmarokScript22AmarokCollectionScriptE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "AmarokScript::AmarokCollectionScript",
        "collectionAdded",
        "",
        "Collections::Collection*",
        "newCollection",
        "collectionDataChanged",
        "changedCollection",
        "collectionRemoved",
        "collectionId",
        "totalAlbums",
        "totalArtists",
        "totalComposers",
        "totalGenres",
        "totalTracks",
        "collectionLocation",
        "query",
        "sql",
        "escape",
        "scanCollection",
        "scanCollectionChanges",
        "queryMaker",
        "Collections::QueryMaker*",
        "viewableCollections",
        "Collections::CollectionList"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'collectionAdded'
        QtMocHelpers::SignalData<void(Collections::Collection *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'collectionDataChanged'
        QtMocHelpers::SignalData<void(Collections::Collection *)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 6 },
        }}),
        // Signal 'collectionRemoved'
        QtMocHelpers::SignalData<void(QString)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 },
        }}),
        // Method 'totalAlbums'
        QtMocHelpers::MethodData<int() const>(9, 2, QMC::AccessPublic, QMetaType::Int),
        // Method 'totalArtists'
        QtMocHelpers::MethodData<int() const>(10, 2, QMC::AccessPublic, QMetaType::Int),
        // Method 'totalComposers'
        QtMocHelpers::MethodData<int() const>(11, 2, QMC::AccessPublic, QMetaType::Int),
        // Method 'totalGenres'
        QtMocHelpers::MethodData<int() const>(12, 2, QMC::AccessPublic, QMetaType::Int),
        // Method 'totalTracks'
        QtMocHelpers::MethodData<int() const>(13, 2, QMC::AccessPublic, QMetaType::Int),
        // Method 'collectionLocation'
        QtMocHelpers::MethodData<QStringList() const>(14, 2, QMC::AccessPublic, QMetaType::QStringList),
        // Method 'query'
        QtMocHelpers::MethodData<QStringList(const QString &) const>(15, 2, QMC::AccessPublic, QMetaType::QStringList, {{
            { QMetaType::QString, 16 },
        }}),
        // Method 'escape'
        QtMocHelpers::MethodData<QString(const QString &) const>(17, 2, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 16 },
        }}),
        // Method 'scanCollection'
        QtMocHelpers::MethodData<void() const>(18, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'scanCollectionChanges'
        QtMocHelpers::MethodData<void() const>(19, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'queryMaker'
        QtMocHelpers::MethodData<Collections::QueryMaker *() const>(20, 2, QMC::AccessPublic, 0x80000000 | 21),
        // Method 'viewableCollections'
        QtMocHelpers::MethodData<Collections::CollectionList() const>(22, 2, QMC::AccessPublic, 0x80000000 | 23),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<AmarokCollectionScript, qt_meta_tag_ZN12AmarokScript22AmarokCollectionScriptE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject AmarokScript::AmarokCollectionScript::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript22AmarokCollectionScriptE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript22AmarokCollectionScriptE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12AmarokScript22AmarokCollectionScriptE_t>.metaTypes,
    nullptr
} };

void AmarokScript::AmarokCollectionScript::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<AmarokCollectionScript *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->collectionAdded((*reinterpret_cast<std::add_pointer_t<Collections::Collection*>>(_a[1]))); break;
        case 1: _t->collectionDataChanged((*reinterpret_cast<std::add_pointer_t<Collections::Collection*>>(_a[1]))); break;
        case 2: _t->collectionRemoved((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: { int _r = _t->totalAlbums();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 4: { int _r = _t->totalArtists();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 5: { int _r = _t->totalComposers();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 6: { int _r = _t->totalGenres();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 7: { int _r = _t->totalTracks();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 8: { QStringList _r = _t->collectionLocation();
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 9: { QStringList _r = _t->query((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 10: { QString _r = _t->escape((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 11: _t->scanCollection(); break;
        case 12: _t->scanCollectionChanges(); break;
        case 13: { Collections::QueryMaker* _r = _t->queryMaker();
            if (_a[0]) *reinterpret_cast<Collections::QueryMaker**>(_a[0]) = std::move(_r); }  break;
        case 14: { Collections::CollectionList _r = _t->viewableCollections();
            if (_a[0]) *reinterpret_cast<Collections::CollectionList*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (AmarokCollectionScript::*)(Collections::Collection * )>(_a, &AmarokCollectionScript::collectionAdded, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (AmarokCollectionScript::*)(Collections::Collection * )>(_a, &AmarokCollectionScript::collectionDataChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (AmarokCollectionScript::*)(QString )>(_a, &AmarokCollectionScript::collectionRemoved, 2))
            return;
    }
}

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

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

int AmarokScript::AmarokCollectionScript::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)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 15;
    }
    return _id;
}

// SIGNAL 0
void AmarokScript::AmarokCollectionScript::collectionAdded(Collections::Collection * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void AmarokScript::AmarokCollectionScript::collectionDataChanged(Collections::Collection * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void AmarokScript::AmarokCollectionScript::collectionRemoved(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
QT_WARNING_POP
