/****************************************************************************
** Meta object code from reading C++ file 'CollectionManager.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/core-impl/collections/support/CollectionManager.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 'CollectionManager.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_ZN17CollectionManagerE_t {};
} // unnamed namespace

template <> constexpr inline auto CollectionManager::qt_create_metaobjectdata<qt_meta_tag_ZN17CollectionManagerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "CollectionManager",
        "collectionAdded",
        "",
        "Collections::Collection*",
        "newCollection",
        "CollectionManager::CollectionStatus",
        "status",
        "collectionRemoved",
        "collectionId",
        "trackProviderAdded",
        "Collections::TrackProvider*",
        "provider",
        "collectionDataChanged",
        "changedCollection",
        "startFullScan",
        "startIncrementalScan",
        "directory",
        "stopScan",
        "checkCollectionChanges",
        "slotNewCollection",
        "slotRemoveCollection",
        "slotCollectionChanged",
        "CollectionStatus",
        "CollectionDisabled",
        "CollectionViewable",
        "CollectionQueryable",
        "CollectionEnabled"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'collectionAdded'
        QtMocHelpers::SignalData<void(Collections::Collection *, CollectionManager::CollectionStatus)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 5, 6 },
        }}),
        // Signal 'collectionRemoved'
        QtMocHelpers::SignalData<void(const QString &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 },
        }}),
        // Signal 'trackProviderAdded'
        QtMocHelpers::SignalData<void(Collections::TrackProvider *)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Signal 'collectionDataChanged'
        QtMocHelpers::SignalData<void(Collections::Collection *)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 13 },
        }}),
        // Slot 'startFullScan'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'startIncrementalScan'
        QtMocHelpers::SlotData<void(const QString &)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 16 },
        }}),
        // Slot 'startIncrementalScan'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'stopScan'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'checkCollectionChanges'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotNewCollection'
        QtMocHelpers::SlotData<void(Collections::Collection *)>(19, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'slotRemoveCollection'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'slotCollectionChanged'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'CollectionStatus'
        QtMocHelpers::EnumData<enum CollectionStatus>(22, 22, QMC::EnumFlags{}).add({
            {   23, CollectionStatus::CollectionDisabled },
            {   24, CollectionStatus::CollectionViewable },
            {   25, CollectionStatus::CollectionQueryable },
            {   26, CollectionStatus::CollectionEnabled },
        }),
    };
    return QtMocHelpers::metaObjectData<CollectionManager, qt_meta_tag_ZN17CollectionManagerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject CollectionManager::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17CollectionManagerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17CollectionManagerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN17CollectionManagerE_t>.metaTypes,
    nullptr
} };

void CollectionManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<CollectionManager *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->collectionAdded((*reinterpret_cast<std::add_pointer_t<Collections::Collection*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<CollectionManager::CollectionStatus>>(_a[2]))); break;
        case 1: _t->collectionRemoved((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->trackProviderAdded((*reinterpret_cast<std::add_pointer_t<Collections::TrackProvider*>>(_a[1]))); break;
        case 3: _t->collectionDataChanged((*reinterpret_cast<std::add_pointer_t<Collections::Collection*>>(_a[1]))); break;
        case 4: _t->startFullScan(); break;
        case 5: _t->startIncrementalScan((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 6: _t->startIncrementalScan(); break;
        case 7: _t->stopScan(); break;
        case 8: _t->checkCollectionChanges(); break;
        case 9: _t->slotNewCollection((*reinterpret_cast<std::add_pointer_t<Collections::Collection*>>(_a[1]))); break;
        case 10: _t->slotRemoveCollection(); break;
        case 11: _t->slotCollectionChanged(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (CollectionManager::*)(Collections::Collection * , CollectionManager::CollectionStatus )>(_a, &CollectionManager::collectionAdded, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollectionManager::*)(const QString & )>(_a, &CollectionManager::collectionRemoved, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollectionManager::*)(Collections::TrackProvider * )>(_a, &CollectionManager::trackProviderAdded, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollectionManager::*)(Collections::Collection * )>(_a, &CollectionManager::collectionDataChanged, 3))
            return;
    }
}

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

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

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

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

// SIGNAL 1
void CollectionManager::collectionRemoved(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void CollectionManager::trackProviderAdded(Collections::TrackProvider * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void CollectionManager::collectionDataChanged(Collections::Collection * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}
QT_WARNING_POP
