/****************************************************************************
** Meta object code from reading C++ file 'collectionDB.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 "../../../../vvave-4.0.2/src/db/collectionDB.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 'collectionDB.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_ZN12CollectionDBE_t {};
} // unnamed namespace

template <> constexpr inline auto CollectionDB::qt_create_metaobjectdata<qt_meta_tag_ZN12CollectionDBE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "CollectionDB",
        "trackInserted",
        "",
        "QVariantMap",
        "item",
        "albumInserted",
        "albumsInserted",
        "QVariantList",
        "items",
        "artistInserted",
        "artistsInserted",
        "sourceInserted",
        "sourcesInserted",
        "albumsCleaned",
        "amount",
        "artistsCleaned",
        "rateTrack",
        "path",
        "value",
        "playedTrack",
        "url"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'trackInserted'
        QtMocHelpers::SignalData<void(QVariantMap)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'albumInserted'
        QtMocHelpers::SignalData<void(QVariantMap)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'albumsInserted'
        QtMocHelpers::SignalData<void(QVariantList)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 8 },
        }}),
        // Signal 'artistInserted'
        QtMocHelpers::SignalData<void(QVariantMap)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'artistsInserted'
        QtMocHelpers::SignalData<void(QVariantList)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 8 },
        }}),
        // Signal 'sourceInserted'
        QtMocHelpers::SignalData<void(QVariantMap)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'sourcesInserted'
        QtMocHelpers::SignalData<void(QVariantList)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 8 },
        }}),
        // Signal 'albumsCleaned'
        QtMocHelpers::SignalData<void(const int &)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 14 },
        }}),
        // Signal 'artistsCleaned'
        QtMocHelpers::SignalData<void(const int &)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 14 },
        }}),
        // Method 'rateTrack'
        QtMocHelpers::MethodData<bool(const QString &, const int &)>(16, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 17 }, { QMetaType::Int, 18 },
        }}),
        // Method 'playedTrack'
        QtMocHelpers::MethodData<bool(const QString &)>(19, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 20 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<CollectionDB, qt_meta_tag_ZN12CollectionDBE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject CollectionDB::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12CollectionDBE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12CollectionDBE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12CollectionDBE_t>.metaTypes,
    nullptr
} };

void CollectionDB::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<CollectionDB *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->trackInserted((*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[1]))); break;
        case 1: _t->albumInserted((*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[1]))); break;
        case 2: _t->albumsInserted((*reinterpret_cast<std::add_pointer_t<QVariantList>>(_a[1]))); break;
        case 3: _t->artistInserted((*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[1]))); break;
        case 4: _t->artistsInserted((*reinterpret_cast<std::add_pointer_t<QVariantList>>(_a[1]))); break;
        case 5: _t->sourceInserted((*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[1]))); break;
        case 6: _t->sourcesInserted((*reinterpret_cast<std::add_pointer_t<QVariantList>>(_a[1]))); break;
        case 7: _t->albumsCleaned((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 8: _t->artistsCleaned((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 9: { bool _r = _t->rateTrack((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 10: { bool _r = _t->playedTrack((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (CollectionDB::*)(QVariantMap )>(_a, &CollectionDB::trackInserted, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollectionDB::*)(QVariantMap )>(_a, &CollectionDB::albumInserted, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollectionDB::*)(QVariantList )>(_a, &CollectionDB::albumsInserted, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollectionDB::*)(QVariantMap )>(_a, &CollectionDB::artistInserted, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollectionDB::*)(QVariantList )>(_a, &CollectionDB::artistsInserted, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollectionDB::*)(QVariantMap )>(_a, &CollectionDB::sourceInserted, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollectionDB::*)(QVariantList )>(_a, &CollectionDB::sourcesInserted, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollectionDB::*)(const int & )>(_a, &CollectionDB::albumsCleaned, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollectionDB::*)(const int & )>(_a, &CollectionDB::artistsCleaned, 8))
            return;
    }
}

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

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

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

// SIGNAL 0
void CollectionDB::trackInserted(QVariantMap _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void CollectionDB::albumInserted(QVariantMap _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void CollectionDB::albumsInserted(QVariantList _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void CollectionDB::artistInserted(QVariantMap _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void CollectionDB::artistsInserted(QVariantList _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void CollectionDB::sourceInserted(QVariantMap _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void CollectionDB::sourcesInserted(QVariantList _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

// SIGNAL 7
void CollectionDB::albumsCleaned(const int & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}

// SIGNAL 8
void CollectionDB::artistsCleaned(const int & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}
QT_WARNING_POP
