/****************************************************************************
** Meta object code from reading C++ file 'trackcollection.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.11.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../mixxx-2.5.6/src/library/trackcollection.h"
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#include <QtCore/QSet>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'trackcollection.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.0. 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_ZN15TrackCollectionE_t {};
} // unnamed namespace

template <> constexpr inline auto TrackCollection::qt_create_metaobjectdata<qt_meta_tag_ZN15TrackCollectionE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "TrackCollection",
        "scanTrackAdded",
        "",
        "TrackPointer",
        "pTrack",
        "trackDirty",
        "TrackId",
        "trackId",
        "tracksAdded",
        "QSet<TrackId>",
        "trackIds",
        "tracksChanged",
        "tracksRemoved",
        "multipleTracksChanged",
        "crateInserted",
        "CrateId",
        "id",
        "crateUpdated",
        "crateDeleted",
        "crateTracksChanged",
        "crate",
        "QList<TrackId>",
        "crateSummaryChanged",
        "QSet<CrateId>",
        "crates"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'scanTrackAdded'
        QtMocHelpers::SignalData<void(TrackPointer)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'trackDirty'
        QtMocHelpers::SignalData<void(TrackId)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Signal 'tracksAdded'
        QtMocHelpers::SignalData<void(const QSet<TrackId> &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Signal 'tracksChanged'
        QtMocHelpers::SignalData<void(const QSet<TrackId> &)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Signal 'tracksRemoved'
        QtMocHelpers::SignalData<void(const QSet<TrackId> &)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Signal 'multipleTracksChanged'
        QtMocHelpers::SignalData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'crateInserted'
        QtMocHelpers::SignalData<void(CrateId)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 16 },
        }}),
        // Signal 'crateUpdated'
        QtMocHelpers::SignalData<void(CrateId)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 16 },
        }}),
        // Signal 'crateDeleted'
        QtMocHelpers::SignalData<void(CrateId)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 16 },
        }}),
        // Signal 'crateTracksChanged'
        QtMocHelpers::SignalData<void(CrateId, const QList<TrackId> &, const QList<TrackId> &)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 20 }, { 0x80000000 | 21, 8 }, { 0x80000000 | 21, 12 },
        }}),
        // Signal 'crateSummaryChanged'
        QtMocHelpers::SignalData<void(const QSet<CrateId> &)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 23, 24 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<TrackCollection, qt_meta_tag_ZN15TrackCollectionE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject TrackCollection::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15TrackCollectionE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15TrackCollectionE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN15TrackCollectionE_t>.metaTypes,
    nullptr
} };

void TrackCollection::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<TrackCollection *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->scanTrackAdded((*reinterpret_cast<std::add_pointer_t<TrackPointer>>(_a[1]))); break;
        case 1: _t->trackDirty((*reinterpret_cast<std::add_pointer_t<TrackId>>(_a[1]))); break;
        case 2: _t->tracksAdded((*reinterpret_cast<std::add_pointer_t<QSet<TrackId>>>(_a[1]))); break;
        case 3: _t->tracksChanged((*reinterpret_cast<std::add_pointer_t<QSet<TrackId>>>(_a[1]))); break;
        case 4: _t->tracksRemoved((*reinterpret_cast<std::add_pointer_t<QSet<TrackId>>>(_a[1]))); break;
        case 5: _t->multipleTracksChanged(); break;
        case 6: _t->crateInserted((*reinterpret_cast<std::add_pointer_t<CrateId>>(_a[1]))); break;
        case 7: _t->crateUpdated((*reinterpret_cast<std::add_pointer_t<CrateId>>(_a[1]))); break;
        case 8: _t->crateDeleted((*reinterpret_cast<std::add_pointer_t<CrateId>>(_a[1]))); break;
        case 9: _t->crateTracksChanged((*reinterpret_cast<std::add_pointer_t<CrateId>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QList<TrackId>>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QList<TrackId>>>(_a[3]))); break;
        case 10: _t->crateSummaryChanged((*reinterpret_cast<std::add_pointer_t<QSet<CrateId>>>(_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< TrackPointer >(); 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< TrackId >(); break;
            }
            break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QSet<TrackId> >(); 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< QSet<TrackId> >(); 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< QSet<TrackId> >(); break;
            }
            break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< CrateId >(); break;
            }
            break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< CrateId >(); break;
            }
            break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< CrateId >(); 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< CrateId >(); break;
            case 2:
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<TrackId> >(); break;
            }
            break;
        case 10:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QSet<CrateId> >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (TrackCollection::*)(TrackPointer )>(_a, &TrackCollection::scanTrackAdded, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (TrackCollection::*)(TrackId )>(_a, &TrackCollection::trackDirty, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (TrackCollection::*)(const QSet<TrackId> & )>(_a, &TrackCollection::tracksAdded, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (TrackCollection::*)(const QSet<TrackId> & )>(_a, &TrackCollection::tracksChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (TrackCollection::*)(const QSet<TrackId> & )>(_a, &TrackCollection::tracksRemoved, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (TrackCollection::*)()>(_a, &TrackCollection::multipleTracksChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (TrackCollection::*)(CrateId )>(_a, &TrackCollection::crateInserted, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (TrackCollection::*)(CrateId )>(_a, &TrackCollection::crateUpdated, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (TrackCollection::*)(CrateId )>(_a, &TrackCollection::crateDeleted, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (TrackCollection::*)(CrateId , const QList<TrackId> & , const QList<TrackId> & )>(_a, &TrackCollection::crateTracksChanged, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (TrackCollection::*)(const QSet<CrateId> & )>(_a, &TrackCollection::crateSummaryChanged, 10))
            return;
    }
}

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

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

int TrackCollection::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 < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    return _id;
}

// SIGNAL 0
void TrackCollection::scanTrackAdded(TrackPointer _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void TrackCollection::trackDirty(TrackId _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void TrackCollection::tracksAdded(const QSet<TrackId> & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void TrackCollection::tracksChanged(const QSet<TrackId> & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void TrackCollection::tracksRemoved(const QSet<TrackId> & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void TrackCollection::multipleTracksChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void TrackCollection::crateInserted(CrateId _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

// SIGNAL 7
void TrackCollection::crateUpdated(CrateId _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}

// SIGNAL 8
void TrackCollection::crateDeleted(CrateId _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}

// SIGNAL 9
void TrackCollection::crateTracksChanged(CrateId _t1, const QList<TrackId> & _t2, const QList<TrackId> & _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 9, nullptr, _t1, _t2, _t3);
}

// SIGNAL 10
void TrackCollection::crateSummaryChanged(const QSet<CrateId> & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 10, nullptr, _t1);
}
QT_WARNING_POP
