/****************************************************************************
** Meta object code from reading C++ file 'user_context_menu.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/server/user/user_context_menu.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 'user_context_menu.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_ZN15UserContextMenuE_t {};
} // unnamed namespace

template <> constexpr inline auto UserContextMenu::qt_create_metaobjectdata<qt_meta_tag_ZN15UserContextMenuE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "UserContextMenu",
        "openMessageDialog",
        "",
        "userName",
        "focus",
        "banUser_processUserInfoResponse",
        "Response",
        "resp",
        "warnUser_processGetWarningsListResponse",
        "r",
        "warnUser_processUserInfoResponse",
        "banUserHistory_processResponse",
        "warnUserHistory_processResponse",
        "getAdminNotes_processResponse",
        "adjustMod_processUserResponse",
        "CommandContainer",
        "commandContainer",
        "banUser_dialogFinished",
        "warnUser_dialogFinished",
        "updateAdminNotes_dialogFinished",
        "gamesOfUserReceived"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'openMessageDialog'
        QtMocHelpers::SignalData<void(const QString &, bool)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 }, { QMetaType::Bool, 4 },
        }}),
        // Slot 'banUser_processUserInfoResponse'
        QtMocHelpers::SlotData<void(const Response &)>(5, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'warnUser_processGetWarningsListResponse'
        QtMocHelpers::SlotData<void(const Response &)>(8, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 6, 9 },
        }}),
        // Slot 'warnUser_processUserInfoResponse'
        QtMocHelpers::SlotData<void(const Response &)>(10, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'banUserHistory_processResponse'
        QtMocHelpers::SlotData<void(const Response &)>(11, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'warnUserHistory_processResponse'
        QtMocHelpers::SlotData<void(const Response &)>(12, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'getAdminNotes_processResponse'
        QtMocHelpers::SlotData<void(const Response &)>(13, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'adjustMod_processUserResponse'
        QtMocHelpers::SlotData<void(const Response &, const CommandContainer &)>(14, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 6, 7 }, { 0x80000000 | 15, 16 },
        }}),
        // Slot 'banUser_dialogFinished'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'warnUser_dialogFinished'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'updateAdminNotes_dialogFinished'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'gamesOfUserReceived'
        QtMocHelpers::SlotData<void(const Response &, const CommandContainer &)>(20, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 6, 7 }, { 0x80000000 | 15, 16 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<UserContextMenu, qt_meta_tag_ZN15UserContextMenuE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject UserContextMenu::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15UserContextMenuE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15UserContextMenuE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN15UserContextMenuE_t>.metaTypes,
    nullptr
} };

void UserContextMenu::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<UserContextMenu *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->openMessageDialog((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<bool>>(_a[2]))); break;
        case 1: _t->banUser_processUserInfoResponse((*reinterpret_cast< std::add_pointer_t<Response>>(_a[1]))); break;
        case 2: _t->warnUser_processGetWarningsListResponse((*reinterpret_cast< std::add_pointer_t<Response>>(_a[1]))); break;
        case 3: _t->warnUser_processUserInfoResponse((*reinterpret_cast< std::add_pointer_t<Response>>(_a[1]))); break;
        case 4: _t->banUserHistory_processResponse((*reinterpret_cast< std::add_pointer_t<Response>>(_a[1]))); break;
        case 5: _t->warnUserHistory_processResponse((*reinterpret_cast< std::add_pointer_t<Response>>(_a[1]))); break;
        case 6: _t->getAdminNotes_processResponse((*reinterpret_cast< std::add_pointer_t<Response>>(_a[1]))); break;
        case 7: _t->adjustMod_processUserResponse((*reinterpret_cast< std::add_pointer_t<Response>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<CommandContainer>>(_a[2]))); break;
        case 8: _t->banUser_dialogFinished(); break;
        case 9: _t->warnUser_dialogFinished(); break;
        case 10: _t->updateAdminNotes_dialogFinished(); break;
        case 11: _t->gamesOfUserReceived((*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 (UserContextMenu::*)(const QString & , bool )>(_a, &UserContextMenu::openMessageDialog, 0))
            return;
    }
}

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

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

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

// SIGNAL 0
void UserContextMenu::openMessageDialog(const QString & _t1, bool _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}
QT_WARNING_POP
