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

#include "../../../../cockatrice/src/game/cards/card_database.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 'card_database.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.9.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_ZN12CardDatabaseE_t {};
} // unnamed namespace

template <> constexpr inline auto CardDatabase::qt_create_metaobjectdata<qt_meta_tag_ZN12CardDatabaseE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "CardDatabase",
        "cardDatabaseLoadingFinished",
        "",
        "cardDatabaseLoadingFailed",
        "cardDatabaseNewSetsFound",
        "numUnknownSets",
        "unknownSetsNames",
        "cardDatabaseAllNewSetsEnabled",
        "cardDatabaseEnabledSetsChanged",
        "cardAdded",
        "CardInfoPtr",
        "card",
        "cardRemoved",
        "loadCardDatabases",
        "LoadStatus",
        "refreshPreferredPrintings",
        "addCard",
        "addSet",
        "CardSetPtr",
        "set",
        "loadCardDatabase",
        "path"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'cardDatabaseLoadingFinished'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'cardDatabaseLoadingFailed'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'cardDatabaseNewSetsFound'
        QtMocHelpers::SignalData<void(int, QStringList)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 5 }, { QMetaType::QStringList, 6 },
        }}),
        // Signal 'cardDatabaseAllNewSetsEnabled'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'cardDatabaseEnabledSetsChanged'
        QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'cardAdded'
        QtMocHelpers::SignalData<void(CardInfoPtr)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Signal 'cardRemoved'
        QtMocHelpers::SignalData<void(CardInfoPtr)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Slot 'loadCardDatabases'
        QtMocHelpers::SlotData<LoadStatus()>(13, 2, QMC::AccessPublic, 0x80000000 | 14),
        // Slot 'refreshPreferredPrintings'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'addCard'
        QtMocHelpers::SlotData<void(CardInfoPtr)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Slot 'addSet'
        QtMocHelpers::SlotData<void(CardSetPtr)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 18, 19 },
        }}),
        // Slot 'loadCardDatabase'
        QtMocHelpers::SlotData<LoadStatus(const QString &)>(20, 2, QMC::AccessProtected, 0x80000000 | 14, {{
            { QMetaType::QString, 21 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<CardDatabase, qt_meta_tag_ZN12CardDatabaseE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject CardDatabase::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12CardDatabaseE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12CardDatabaseE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12CardDatabaseE_t>.metaTypes,
    nullptr
} };

void CardDatabase::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<CardDatabase *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->cardDatabaseLoadingFinished(); break;
        case 1: _t->cardDatabaseLoadingFailed(); break;
        case 2: _t->cardDatabaseNewSetsFound((*reinterpret_cast< std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QStringList>>(_a[2]))); break;
        case 3: _t->cardDatabaseAllNewSetsEnabled(); break;
        case 4: _t->cardDatabaseEnabledSetsChanged(); break;
        case 5: _t->cardAdded((*reinterpret_cast< std::add_pointer_t<CardInfoPtr>>(_a[1]))); break;
        case 6: _t->cardRemoved((*reinterpret_cast< std::add_pointer_t<CardInfoPtr>>(_a[1]))); break;
        case 7: { LoadStatus _r = _t->loadCardDatabases();
            if (_a[0]) *reinterpret_cast< LoadStatus*>(_a[0]) = std::move(_r); }  break;
        case 8: _t->refreshPreferredPrintings(); break;
        case 9: _t->addCard((*reinterpret_cast< std::add_pointer_t<CardInfoPtr>>(_a[1]))); break;
        case 10: _t->addSet((*reinterpret_cast< std::add_pointer_t<CardSetPtr>>(_a[1]))); break;
        case 11: { LoadStatus _r = _t->loadCardDatabase((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast< LoadStatus*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< CardInfoPtr >(); 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< CardInfoPtr >(); 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< CardInfoPtr >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (CardDatabase::*)()>(_a, &CardDatabase::cardDatabaseLoadingFinished, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (CardDatabase::*)()>(_a, &CardDatabase::cardDatabaseLoadingFailed, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (CardDatabase::*)(int , QStringList )>(_a, &CardDatabase::cardDatabaseNewSetsFound, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (CardDatabase::*)()>(_a, &CardDatabase::cardDatabaseAllNewSetsEnabled, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (CardDatabase::*)()>(_a, &CardDatabase::cardDatabaseEnabledSetsChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (CardDatabase::*)(CardInfoPtr )>(_a, &CardDatabase::cardAdded, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (CardDatabase::*)(CardInfoPtr )>(_a, &CardDatabase::cardRemoved, 6))
            return;
    }
}

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

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

int CardDatabase::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)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    return _id;
}

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

// SIGNAL 1
void CardDatabase::cardDatabaseLoadingFailed()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void CardDatabase::cardDatabaseNewSetsFound(int _t1, QStringList _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}

// SIGNAL 3
void CardDatabase::cardDatabaseAllNewSetsEnabled()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void CardDatabase::cardDatabaseEnabledSetsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void CardDatabase::cardAdded(CardInfoPtr _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void CardDatabase::cardRemoved(CardInfoPtr _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}
QT_WARNING_POP
