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

template <> constexpr inline auto TabDeckStorage::qt_create_metaobjectdata<qt_meta_tag_ZN14TabDeckStorageE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "TabDeckStorage",
        "openDeckEditor",
        "",
        "const DeckLoader*",
        "deckLoader",
        "handleConnected",
        "ServerInfo_User",
        "userInfo",
        "handleConnectionChanged",
        "ClientStatus",
        "status",
        "actLocalDoubleClick",
        "QModelIndex",
        "curLeft",
        "actOpenLocalDeck",
        "actRenameLocal",
        "actUpload",
        "uploadFinished",
        "Response",
        "r",
        "CommandContainer",
        "commandContainer",
        "actNewLocalFolder",
        "actDeleteLocalDeck",
        "actOpenDecksFolder",
        "actRemoteDoubleClick",
        "curRight",
        "actOpenRemoteDeck",
        "openRemoteDeckFinished",
        "actDownload",
        "downloadFinished",
        "QVariant",
        "extraData",
        "actNewFolder",
        "newFolderFinished",
        "response",
        "actDeleteRemoteDeck",
        "deleteFolderFinished",
        "deleteDeckFinished"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'openDeckEditor'
        QtMocHelpers::SignalData<void(const DeckLoader *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'handleConnected'
        QtMocHelpers::SlotData<void(const ServerInfo_User &)>(5, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'handleConnectionChanged'
        QtMocHelpers::SlotData<void(ClientStatus)>(8, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Slot 'actLocalDoubleClick'
        QtMocHelpers::SlotData<void(const QModelIndex &)>(11, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Slot 'actOpenLocalDeck'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'actRenameLocal'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'actUpload'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'uploadFinished'
        QtMocHelpers::SlotData<void(const Response &, const CommandContainer &)>(17, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 18, 19 }, { 0x80000000 | 20, 21 },
        }}),
        // Slot 'actNewLocalFolder'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'actDeleteLocalDeck'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'actOpenDecksFolder'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'actRemoteDoubleClick'
        QtMocHelpers::SlotData<void(const QModelIndex &)>(25, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 12, 26 },
        }}),
        // Slot 'actOpenRemoteDeck'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'openRemoteDeckFinished'
        QtMocHelpers::SlotData<void(const Response &, const CommandContainer &)>(28, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 18, 19 }, { 0x80000000 | 20, 21 },
        }}),
        // Slot 'actDownload'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'downloadFinished'
        QtMocHelpers::SlotData<void(const Response &, const CommandContainer &, const QVariant &)>(30, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 18, 19 }, { 0x80000000 | 20, 21 }, { 0x80000000 | 31, 32 },
        }}),
        // Slot 'actNewFolder'
        QtMocHelpers::SlotData<void()>(33, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'newFolderFinished'
        QtMocHelpers::SlotData<void(const Response &, const CommandContainer &)>(34, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 18, 35 }, { 0x80000000 | 20, 21 },
        }}),
        // Slot 'actDeleteRemoteDeck'
        QtMocHelpers::SlotData<void()>(36, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'deleteFolderFinished'
        QtMocHelpers::SlotData<void(const Response &, const CommandContainer &)>(37, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 18, 35 }, { 0x80000000 | 20, 21 },
        }}),
        // Slot 'deleteDeckFinished'
        QtMocHelpers::SlotData<void(const Response &, const CommandContainer &)>(38, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 18, 35 }, { 0x80000000 | 20, 21 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<TabDeckStorage, qt_meta_tag_ZN14TabDeckStorageE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject TabDeckStorage::staticMetaObject = { {
    QMetaObject::SuperData::link<Tab::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14TabDeckStorageE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14TabDeckStorageE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN14TabDeckStorageE_t>.metaTypes,
    nullptr
} };

void TabDeckStorage::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<TabDeckStorage *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->openDeckEditor((*reinterpret_cast< std::add_pointer_t<const DeckLoader*>>(_a[1]))); break;
        case 1: _t->handleConnected((*reinterpret_cast< std::add_pointer_t<ServerInfo_User>>(_a[1]))); break;
        case 2: _t->handleConnectionChanged((*reinterpret_cast< std::add_pointer_t<ClientStatus>>(_a[1]))); break;
        case 3: _t->actLocalDoubleClick((*reinterpret_cast< std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 4: _t->actOpenLocalDeck(); break;
        case 5: _t->actRenameLocal(); break;
        case 6: _t->actUpload(); break;
        case 7: _t->uploadFinished((*reinterpret_cast< std::add_pointer_t<Response>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<CommandContainer>>(_a[2]))); break;
        case 8: _t->actNewLocalFolder(); break;
        case 9: _t->actDeleteLocalDeck(); break;
        case 10: _t->actOpenDecksFolder(); break;
        case 11: _t->actRemoteDoubleClick((*reinterpret_cast< std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 12: _t->actOpenRemoteDeck(); break;
        case 13: _t->openRemoteDeckFinished((*reinterpret_cast< std::add_pointer_t<Response>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<CommandContainer>>(_a[2]))); break;
        case 14: _t->actDownload(); break;
        case 15: _t->downloadFinished((*reinterpret_cast< std::add_pointer_t<Response>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<CommandContainer>>(_a[2])),(*reinterpret_cast< std::add_pointer_t<QVariant>>(_a[3]))); break;
        case 16: _t->actNewFolder(); break;
        case 17: _t->newFolderFinished((*reinterpret_cast< std::add_pointer_t<Response>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<CommandContainer>>(_a[2]))); break;
        case 18: _t->actDeleteRemoteDeck(); break;
        case 19: _t->deleteFolderFinished((*reinterpret_cast< std::add_pointer_t<Response>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<CommandContainer>>(_a[2]))); break;
        case 20: _t->deleteDeckFinished((*reinterpret_cast< std::add_pointer_t<Response>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<CommandContainer>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (TabDeckStorage::*)(const DeckLoader * )>(_a, &TabDeckStorage::openDeckEditor, 0))
            return;
    }
}

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

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

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

// SIGNAL 0
void TabDeckStorage::openDeckEditor(const DeckLoader * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}
QT_WARNING_POP
