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

template <> constexpr inline auto ServiceFactory::qt_create_metaobjectdata<qt_meta_tag_ZN14ServiceFactoryE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ServiceFactory",
        "newService",
        "",
        "ServiceBase*",
        "removeService",
        "removedService",
        "slotServiceReady",
        "slotNewService",
        "slotRemoveService",
        "service"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'newService'
        QtMocHelpers::SignalData<void(ServiceBase *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 1 },
        }}),
        // Signal 'removeService'
        QtMocHelpers::SignalData<void(ServiceBase *)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 5 },
        }}),
        // Slot 'slotServiceReady'
        QtMocHelpers::SlotData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotNewService'
        QtMocHelpers::SlotData<void(ServiceBase *)>(7, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 1 },
        }}),
        // Slot 'slotRemoveService'
        QtMocHelpers::SlotData<void(ServiceBase *)>(8, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 9 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ServiceFactory, qt_meta_tag_ZN14ServiceFactoryE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ServiceFactory::staticMetaObject = { {
    QMetaObject::SuperData::link<Plugins::PluginFactory::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14ServiceFactoryE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14ServiceFactoryE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN14ServiceFactoryE_t>.metaTypes,
    nullptr
} };

void ServiceFactory::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ServiceFactory *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->newService((*reinterpret_cast<std::add_pointer_t<ServiceBase*>>(_a[1]))); break;
        case 1: _t->removeService((*reinterpret_cast<std::add_pointer_t<ServiceBase*>>(_a[1]))); break;
        case 2: _t->slotServiceReady(); break;
        case 3: _t->slotNewService((*reinterpret_cast<std::add_pointer_t<ServiceBase*>>(_a[1]))); break;
        case 4: _t->slotRemoveService((*reinterpret_cast<std::add_pointer_t<ServiceBase*>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< ServiceBase* >(); break;
            }
            break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< ServiceBase* >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< ServiceBase* >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< ServiceBase* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ServiceFactory::*)(ServiceBase * )>(_a, &ServiceFactory::newService, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ServiceFactory::*)(ServiceBase * )>(_a, &ServiceFactory::removeService, 1))
            return;
    }
}

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

void *ServiceFactory::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14ServiceFactoryE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "Collections::TrackProvider"))
        return static_cast< Collections::TrackProvider*>(this);
    return Plugins::PluginFactory::qt_metacast(_clname);
}

int ServiceFactory::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Plugins::PluginFactory::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
    return _id;
}

// SIGNAL 0
void ServiceFactory::newService(ServiceBase * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void ServiceFactory::removeService(ServiceBase * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}
namespace {
struct qt_meta_tag_ZN11ServiceBaseE_t {};
} // unnamed namespace

template <> constexpr inline auto ServiceBase::qt_create_metaobjectdata<qt_meta_tag_ZN11ServiceBaseE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ServiceBase",
        "home",
        "",
        "selectionChanged",
        "CollectionTreeItem*",
        "item",
        "ready",
        "infoChanged",
        "infoHtml",
        "sortByArtistAlbum",
        "sortByArtist",
        "sortByAlbum",
        "sortByGenreArtist",
        "sortByGenreArtistAlbum",
        "setLevels",
        "QList<CategoryId::CatMenuId>",
        "levels",
        "itemActivated",
        "QModelIndex",
        "index",
        "itemSelected"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'home'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'selectionChanged'
        QtMocHelpers::SignalData<void(CollectionTreeItem *)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Signal 'ready'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'infoChanged'
        QtMocHelpers::SlotData<void(const QString &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 },
        }}),
        // Slot 'sortByArtistAlbum'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'sortByArtist'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'sortByAlbum'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'sortByGenreArtist'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'sortByGenreArtistAlbum'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setLevels'
        QtMocHelpers::SlotData<void(const QList<CategoryId::CatMenuId> &)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 16 },
        }}),
        // Slot 'itemActivated'
        QtMocHelpers::SlotData<void(const QModelIndex &)>(17, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 18, 19 },
        }}),
        // Slot 'itemSelected'
        QtMocHelpers::SlotData<void(CollectionTreeItem *)>(20, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ServiceBase, qt_meta_tag_ZN11ServiceBaseE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ServiceBase::staticMetaObject = { {
    QMetaObject::SuperData::link<BrowserCategory::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11ServiceBaseE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11ServiceBaseE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11ServiceBaseE_t>.metaTypes,
    nullptr
} };

void ServiceBase::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ServiceBase *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->home(); break;
        case 1: _t->selectionChanged((*reinterpret_cast<std::add_pointer_t<CollectionTreeItem*>>(_a[1]))); break;
        case 2: _t->ready(); break;
        case 3: _t->infoChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->sortByArtistAlbum(); break;
        case 5: _t->sortByArtist(); break;
        case 6: _t->sortByAlbum(); break;
        case 7: _t->sortByGenreArtist(); break;
        case 8: _t->sortByGenreArtistAlbum(); break;
        case 9: _t->setLevels((*reinterpret_cast<std::add_pointer_t<QList<CategoryId::CatMenuId>>>(_a[1]))); break;
        case 10: _t->itemActivated((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 11: _t->itemSelected((*reinterpret_cast<std::add_pointer_t<CollectionTreeItem*>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< CollectionTreeItem* >(); break;
            }
            break;
        case 9:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<CategoryId::CatMenuId> >(); 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< CollectionTreeItem* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ServiceBase::*)()>(_a, &ServiceBase::home, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ServiceBase::*)(CollectionTreeItem * )>(_a, &ServiceBase::selectionChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ServiceBase::*)()>(_a, &ServiceBase::ready, 2))
            return;
    }
}

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

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

int ServiceBase::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = BrowserCategory::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)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    return _id;
}

// SIGNAL 0
void ServiceBase::home()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void ServiceBase::selectionChanged(CollectionTreeItem * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void ServiceBase::ready()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
