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

template <> constexpr inline auto DlgConnect::qt_create_metaobjectdata<qt_meta_tag_ZN10DlgConnectE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "DlgConnect",
        "sigStartForgotPasswordRequest",
        "",
        "sigPublicServersDownloaded",
        "downloadThePublicServers",
        "actOk",
        "passwordSaved",
        "Qt::CheckState",
        "state",
        "previousHostSelected",
        "newHostSelected",
        "actForgotPassword",
        "actRemoveSavedServer",
        "updateDisplayInfo",
        "saveName",
        "preRebuildComboBoxList",
        "rebuildComboBoxList",
        "failure"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'sigStartForgotPasswordRequest'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sigPublicServersDownloaded'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'downloadThePublicServers'
        QtMocHelpers::SlotData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'actOk'
        QtMocHelpers::SlotData<void()>(5, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'passwordSaved'
        QtMocHelpers::SlotData<void(Qt::CheckState)>(6, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 7, 8 },
        }}),
        // Slot 'previousHostSelected'
        QtMocHelpers::SlotData<void(bool)>(9, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 8 },
        }}),
        // Slot 'newHostSelected'
        QtMocHelpers::SlotData<void(bool)>(10, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 8 },
        }}),
        // Slot 'actForgotPassword'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'actRemoveSavedServer'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'updateDisplayInfo'
        QtMocHelpers::SlotData<void(const QString &)>(13, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 14 },
        }}),
        // Slot 'preRebuildComboBoxList'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'rebuildComboBoxList'
        QtMocHelpers::SlotData<void(int)>(16, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 17 },
        }}),
        // Slot 'rebuildComboBoxList'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate | QMC::MethodCloned, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<DlgConnect, qt_meta_tag_ZN10DlgConnectE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject DlgConnect::staticMetaObject = { {
    QMetaObject::SuperData::link<QDialog::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10DlgConnectE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10DlgConnectE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10DlgConnectE_t>.metaTypes,
    nullptr
} };

void DlgConnect::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DlgConnect *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->sigStartForgotPasswordRequest(); break;
        case 1: _t->sigPublicServersDownloaded(); break;
        case 2: _t->downloadThePublicServers(); break;
        case 3: _t->actOk(); break;
        case 4: _t->passwordSaved((*reinterpret_cast< std::add_pointer_t<Qt::CheckState>>(_a[1]))); break;
        case 5: _t->previousHostSelected((*reinterpret_cast< std::add_pointer_t<bool>>(_a[1]))); break;
        case 6: _t->newHostSelected((*reinterpret_cast< std::add_pointer_t<bool>>(_a[1]))); break;
        case 7: _t->actForgotPassword(); break;
        case 8: _t->actRemoveSavedServer(); break;
        case 9: _t->updateDisplayInfo((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
        case 10: _t->preRebuildComboBoxList(); break;
        case 11: _t->rebuildComboBoxList((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
        case 12: _t->rebuildComboBoxList(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (DlgConnect::*)()>(_a, &DlgConnect::sigStartForgotPasswordRequest, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (DlgConnect::*)()>(_a, &DlgConnect::sigPublicServersDownloaded, 1))
            return;
    }
}

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

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

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

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

// SIGNAL 1
void DlgConnect::sigPublicServersDownloaded()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
