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

template <> constexpr inline auto CollectionTreeItemModelBase::qt_create_metaobjectdata<qt_meta_tag_ZN27CollectionTreeItemModelBaseE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "CollectionTreeItemModelBase",
        "expandIndex",
        "",
        "QModelIndex",
        "index",
        "allQueriesFinished",
        "autoExpand",
        "queryDone",
        "newTracksReady",
        "Meta::TrackList",
        "newArtistsReady",
        "Meta::ArtistList",
        "newAlbumsReady",
        "Meta::AlbumList",
        "newGenresReady",
        "Meta::GenreList",
        "newComposersReady",
        "Meta::ComposerList",
        "newYearsReady",
        "Meta::YearList",
        "newLabelsReady",
        "Meta::LabelList",
        "newDataReady",
        "Meta::DataList",
        "data",
        "slotFilter",
        "slotFilterWithoutAutoExpand",
        "slotCollapsed",
        "slotExpanded",
        "startAnimationTick",
        "loadingAnimationTick"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'expandIndex'
        QtMocHelpers::SignalData<void(const QModelIndex &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'allQueriesFinished'
        QtMocHelpers::SignalData<void(bool)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 6 },
        }}),
        // Slot 'queryDone'
        QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'newTracksReady'
        QtMocHelpers::SlotData<void(const Meta::TrackList &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 2 },
        }}),
        // Slot 'newArtistsReady'
        QtMocHelpers::SlotData<void(const Meta::ArtistList &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 2 },
        }}),
        // Slot 'newAlbumsReady'
        QtMocHelpers::SlotData<void(const Meta::AlbumList &)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 13, 2 },
        }}),
        // Slot 'newGenresReady'
        QtMocHelpers::SlotData<void(const Meta::GenreList &)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 2 },
        }}),
        // Slot 'newComposersReady'
        QtMocHelpers::SlotData<void(const Meta::ComposerList &)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 17, 2 },
        }}),
        // Slot 'newYearsReady'
        QtMocHelpers::SlotData<void(const Meta::YearList &)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 19, 2 },
        }}),
        // Slot 'newLabelsReady'
        QtMocHelpers::SlotData<void(const Meta::LabelList &)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 21, 2 },
        }}),
        // Slot 'newDataReady'
        QtMocHelpers::SlotData<void(const Meta::DataList &)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 23, 24 },
        }}),
        // Slot 'slotFilter'
        QtMocHelpers::SlotData<void(bool)>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 6 },
        }}),
        // Slot 'slotFilter'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'slotFilterWithoutAutoExpand'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotCollapsed'
        QtMocHelpers::SlotData<void(const QModelIndex &)>(27, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'slotExpanded'
        QtMocHelpers::SlotData<void(const QModelIndex &)>(28, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'startAnimationTick'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'loadingAnimationTick'
        QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessProtected, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<CollectionTreeItemModelBase, qt_meta_tag_ZN27CollectionTreeItemModelBaseE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject CollectionTreeItemModelBase::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractItemModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN27CollectionTreeItemModelBaseE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN27CollectionTreeItemModelBaseE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN27CollectionTreeItemModelBaseE_t>.metaTypes,
    nullptr
} };

void CollectionTreeItemModelBase::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<CollectionTreeItemModelBase *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->expandIndex((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 1: _t->allQueriesFinished((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 2: _t->queryDone(); break;
        case 3: _t->newTracksReady((*reinterpret_cast<std::add_pointer_t<Meta::TrackList>>(_a[1]))); break;
        case 4: _t->newArtistsReady((*reinterpret_cast<std::add_pointer_t<Meta::ArtistList>>(_a[1]))); break;
        case 5: _t->newAlbumsReady((*reinterpret_cast<std::add_pointer_t<Meta::AlbumList>>(_a[1]))); break;
        case 6: _t->newGenresReady((*reinterpret_cast<std::add_pointer_t<Meta::GenreList>>(_a[1]))); break;
        case 7: _t->newComposersReady((*reinterpret_cast<std::add_pointer_t<Meta::ComposerList>>(_a[1]))); break;
        case 8: _t->newYearsReady((*reinterpret_cast<std::add_pointer_t<Meta::YearList>>(_a[1]))); break;
        case 9: _t->newLabelsReady((*reinterpret_cast<std::add_pointer_t<Meta::LabelList>>(_a[1]))); break;
        case 10: _t->newDataReady((*reinterpret_cast<std::add_pointer_t<Meta::DataList>>(_a[1]))); break;
        case 11: _t->slotFilter((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 12: _t->slotFilter(); break;
        case 13: _t->slotFilterWithoutAutoExpand(); break;
        case 14: _t->slotCollapsed((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 15: _t->slotExpanded((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 16: _t->startAnimationTick(); break;
        case 17: _t->loadingAnimationTick(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (CollectionTreeItemModelBase::*)(const QModelIndex & )>(_a, &CollectionTreeItemModelBase::expandIndex, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollectionTreeItemModelBase::*)(bool )>(_a, &CollectionTreeItemModelBase::allQueriesFinished, 1))
            return;
    }
}

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

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

int CollectionTreeItemModelBase::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractItemModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 18)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 18;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 18)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 18;
    }
    return _id;
}

// SIGNAL 0
void CollectionTreeItemModelBase::expandIndex(const QModelIndex & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void CollectionTreeItemModelBase::allQueriesFinished(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}
QT_WARNING_POP
