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

template <> constexpr inline auto TabReplays::qt_create_metaobjectdata<qt_meta_tag_ZN10TabReplaysE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "TabReplays",
        "openReplay",
        "",
        "GameReplay*",
        "replay",
        "handleConnected",
        "ServerInfo_User",
        "userInfo",
        "handleConnectionChanged",
        "ClientStatus",
        "status",
        "actLocalDoubleClick",
        "QModelIndex",
        "curLeft",
        "actRenameLocal",
        "actOpenLocalReplay",
        "actNewLocalFolder",
        "actDeleteLocalReplay",
        "actOpenReplaysFolder",
        "actRemoteDoubleClick",
        "actOpenRemoteReplay",
        "openRemoteReplayFinished",
        "Response",
        "r",
        "actDownload",
        "downloadFinished",
        "CommandContainer",
        "commandContainer",
        "QVariant",
        "extraData",
        "actKeepRemoteReplay",
        "keepRemoteReplayFinished",
        "actDeleteRemoteReplay",
        "deleteRemoteReplayFinished",
        "replayAddedEventReceived",
        "Event_ReplayAdded",
        "event"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'openReplay'
        QtMocHelpers::SignalData<void(GameReplay *)>(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 'actRenameLocal'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'actOpenLocalReplay'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'actNewLocalFolder'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'actDeleteLocalReplay'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'actOpenReplaysFolder'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'actRemoteDoubleClick'
        QtMocHelpers::SlotData<void(const QModelIndex &)>(19, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Slot 'actOpenRemoteReplay'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'openRemoteReplayFinished'
        QtMocHelpers::SlotData<void(const Response &)>(21, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 22, 23 },
        }}),
        // Slot 'actDownload'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'downloadFinished'
        QtMocHelpers::SlotData<void(const Response &, const CommandContainer &, const QVariant &)>(25, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 22, 23 }, { 0x80000000 | 26, 27 }, { 0x80000000 | 28, 29 },
        }}),
        // Slot 'actKeepRemoteReplay'
        QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'keepRemoteReplayFinished'
        QtMocHelpers::SlotData<void(const Response &, const CommandContainer &)>(31, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 22, 23 }, { 0x80000000 | 26, 27 },
        }}),
        // Slot 'actDeleteRemoteReplay'
        QtMocHelpers::SlotData<void()>(32, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'deleteRemoteReplayFinished'
        QtMocHelpers::SlotData<void(const Response &, const CommandContainer &)>(33, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 22, 23 }, { 0x80000000 | 26, 27 },
        }}),
        // Slot 'replayAddedEventReceived'
        QtMocHelpers::SlotData<void(const Event_ReplayAdded &)>(34, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 35, 36 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<TabReplays, qt_meta_tag_ZN10TabReplaysE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject TabReplays::staticMetaObject = { {
    QMetaObject::SuperData::link<Tab::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10TabReplaysE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10TabReplaysE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10TabReplaysE_t>.metaTypes,
    nullptr
} };

void TabReplays::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<TabReplays *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->openReplay((*reinterpret_cast< std::add_pointer_t<GameReplay*>>(_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->actRenameLocal(); break;
        case 5: _t->actOpenLocalReplay(); break;
        case 6: _t->actNewLocalFolder(); break;
        case 7: _t->actDeleteLocalReplay(); break;
        case 8: _t->actOpenReplaysFolder(); break;
        case 9: _t->actRemoteDoubleClick((*reinterpret_cast< std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 10: _t->actOpenRemoteReplay(); break;
        case 11: _t->openRemoteReplayFinished((*reinterpret_cast< std::add_pointer_t<Response>>(_a[1]))); break;
        case 12: _t->actDownload(); break;
        case 13: _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 14: _t->actKeepRemoteReplay(); break;
        case 15: _t->keepRemoteReplayFinished((*reinterpret_cast< std::add_pointer_t<Response>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<CommandContainer>>(_a[2]))); break;
        case 16: _t->actDeleteRemoteReplay(); break;
        case 17: _t->deleteRemoteReplayFinished((*reinterpret_cast< std::add_pointer_t<Response>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<CommandContainer>>(_a[2]))); break;
        case 18: _t->replayAddedEventReceived((*reinterpret_cast< std::add_pointer_t<Event_ReplayAdded>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (TabReplays::*)(GameReplay * )>(_a, &TabReplays::openReplay, 0))
            return;
    }
}

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

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

int TabReplays::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 < 19)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 19;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 19)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 19;
    }
    return _id;
}

// SIGNAL 0
void TabReplays::openReplay(GameReplay * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}
QT_WARNING_POP
