/****************************************************************************
** Meta object code from reading C++ file 'deck_editor_deck_dock_widget.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/client/ui/widgets/deck_editor/deck_editor_deck_dock_widget.h"
#include <QtGui/qtextcursor.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 'deck_editor_deck_dock_widget.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_ZN24DeckEditorDeckDockWidgetE_t {};
} // unnamed namespace

template <> constexpr inline auto DeckEditorDeckDockWidget::qt_create_metaobjectdata<qt_meta_tag_ZN24DeckEditorDeckDockWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "DeckEditorDeckDockWidget",
        "deckChanged",
        "",
        "cardChanged",
        "CardInfoPtr",
        "_card",
        "cleanDeck",
        "updateBannerCardComboBox",
        "setDeck",
        "DeckLoader*",
        "_deck",
        "getDeckList",
        "actIncrement",
        "swapCard",
        "QModelIndex",
        "idx",
        "actDecrementCard",
        "info",
        "zoneName",
        "actDecrementSelection",
        "actSwapCard",
        "actRemoveCard",
        "offsetCountAtIndex",
        "offset",
        "decklistCustomMenu",
        "point",
        "updateCard",
        "current",
        "updateName",
        "name",
        "updateComments",
        "setBannerCard",
        "updateHash",
        "refreshShortcuts"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'deckChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'cardChanged'
        QtMocHelpers::SignalData<void(CardInfoPtr)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Slot 'cleanDeck'
        QtMocHelpers::SlotData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'updateBannerCardComboBox'
        QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setDeck'
        QtMocHelpers::SlotData<void(DeckLoader *)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Slot 'getDeckList'
        QtMocHelpers::SlotData<DeckLoader *()>(11, 2, QMC::AccessPublic, 0x80000000 | 9),
        // Slot 'actIncrement'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'swapCard'
        QtMocHelpers::SlotData<bool(const QModelIndex &)>(13, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 14, 15 },
        }}),
        // Slot 'actDecrementCard'
        QtMocHelpers::SlotData<void(CardInfoPtr, QString)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 17 }, { QMetaType::QString, 18 },
        }}),
        // Slot 'actDecrementSelection'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'actSwapCard'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'actRemoveCard'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'offsetCountAtIndex'
        QtMocHelpers::SlotData<void(const QModelIndex &, int)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 15 }, { QMetaType::Int, 23 },
        }}),
        // Slot 'decklistCustomMenu'
        QtMocHelpers::SlotData<void(QPoint)>(24, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QPoint, 25 },
        }}),
        // Slot 'updateCard'
        QtMocHelpers::SlotData<void(QModelIndex, const QModelIndex &)>(26, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 14, 2 }, { 0x80000000 | 14, 27 },
        }}),
        // Slot 'updateName'
        QtMocHelpers::SlotData<void(const QString &)>(28, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 29 },
        }}),
        // Slot 'updateComments'
        QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'setBannerCard'
        QtMocHelpers::SlotData<void(int)>(31, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'updateHash'
        QtMocHelpers::SlotData<void()>(32, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'refreshShortcuts'
        QtMocHelpers::SlotData<void()>(33, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<DeckEditorDeckDockWidget, qt_meta_tag_ZN24DeckEditorDeckDockWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject DeckEditorDeckDockWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QDockWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN24DeckEditorDeckDockWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN24DeckEditorDeckDockWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN24DeckEditorDeckDockWidgetE_t>.metaTypes,
    nullptr
} };

void DeckEditorDeckDockWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DeckEditorDeckDockWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->deckChanged(); break;
        case 1: _t->cardChanged((*reinterpret_cast< std::add_pointer_t<CardInfoPtr>>(_a[1]))); break;
        case 2: _t->cleanDeck(); break;
        case 3: _t->updateBannerCardComboBox(); break;
        case 4: _t->setDeck((*reinterpret_cast< std::add_pointer_t<DeckLoader*>>(_a[1]))); break;
        case 5: { DeckLoader* _r = _t->getDeckList();
            if (_a[0]) *reinterpret_cast< DeckLoader**>(_a[0]) = std::move(_r); }  break;
        case 6: _t->actIncrement(); break;
        case 7: { bool _r = _t->swapCard((*reinterpret_cast< std::add_pointer_t<QModelIndex>>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 8: _t->actDecrementCard((*reinterpret_cast< std::add_pointer_t<CardInfoPtr>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QString>>(_a[2]))); break;
        case 9: _t->actDecrementSelection(); break;
        case 10: _t->actSwapCard(); break;
        case 11: _t->actRemoveCard(); break;
        case 12: _t->offsetCountAtIndex((*reinterpret_cast< std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<int>>(_a[2]))); break;
        case 13: _t->decklistCustomMenu((*reinterpret_cast< std::add_pointer_t<QPoint>>(_a[1]))); break;
        case 14: _t->updateCard((*reinterpret_cast< std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QModelIndex>>(_a[2]))); break;
        case 15: _t->updateName((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
        case 16: _t->updateComments(); break;
        case 17: _t->setBannerCard((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
        case 18: _t->updateHash(); break;
        case 19: _t->refreshShortcuts(); 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< CardInfoPtr >(); 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< DeckLoader* >(); 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< CardInfoPtr >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (DeckEditorDeckDockWidget::*)()>(_a, &DeckEditorDeckDockWidget::deckChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (DeckEditorDeckDockWidget::*)(CardInfoPtr )>(_a, &DeckEditorDeckDockWidget::cardChanged, 1))
            return;
    }
}

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

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

int DeckEditorDeckDockWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QDockWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    }
    return _id;
}

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

// SIGNAL 1
void DeckEditorDeckDockWidget::cardChanged(CardInfoPtr _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}
QT_WARNING_POP
