/****************************************************************************
** Meta object code from reading C++ file 'device_install_dialog.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.11.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../../../../src/emu/qt/include/qt/device_install_dialog.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 'device_install_dialog.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.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_ZN21device_install_dialogE_t {};
} // unnamed namespace

template <> constexpr inline auto device_install_dialog::qt_create_metaobjectdata<qt_meta_tag_ZN21device_install_dialogE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "device_install_dialog",
        "progress_bar_update",
        "",
        "std::size_t",
        "so_far",
        "total",
        "new_device_added",
        "firmware_variant_selects",
        "std::vector<std::string>",
        "list",
        "on_current_index_changed",
        "new_index",
        "on_vpl_browse_triggered",
        "on_rom_browse_triggered",
        "on_rpkg_browse_triggered",
        "on_install_triggered",
        "on_cancel_triggered",
        "on_progress_bar_update",
        "on_firmware_variant_selects"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'progress_bar_update'
        QtMocHelpers::SignalData<void(const std::size_t, const std::size_t)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 3, 5 },
        }}),
        // Signal 'new_device_added'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'firmware_variant_selects'
        QtMocHelpers::SignalData<int(const std::vector<std::string> &)>(7, 2, QMC::AccessPublic, QMetaType::Int, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Slot 'on_current_index_changed'
        QtMocHelpers::SlotData<void(int)>(10, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 11 },
        }}),
        // Slot 'on_vpl_browse_triggered'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'on_rom_browse_triggered'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'on_rpkg_browse_triggered'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'on_install_triggered'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'on_cancel_triggered'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'on_progress_bar_update'
        QtMocHelpers::SlotData<void(const std::size_t, const std::size_t)>(17, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 3, 5 },
        }}),
        // Slot 'on_firmware_variant_selects'
        QtMocHelpers::SlotData<int(const std::vector<std::string> &)>(18, 2, QMC::AccessPrivate, QMetaType::Int, {{
            { 0x80000000 | 8, 9 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<device_install_dialog, qt_meta_tag_ZN21device_install_dialogE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject device_install_dialog::staticMetaObject = { {
    QMetaObject::SuperData::link<QDialog::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN21device_install_dialogE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN21device_install_dialogE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN21device_install_dialogE_t>.metaTypes,
    nullptr
} };

void device_install_dialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<device_install_dialog *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->progress_bar_update((*reinterpret_cast<std::add_pointer_t<std::size_t>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<std::size_t>>(_a[2]))); break;
        case 1: _t->new_device_added(); break;
        case 2: { int _r = _t->firmware_variant_selects((*reinterpret_cast<std::add_pointer_t<std::vector<std::string>>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 3: _t->on_current_index_changed((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 4: _t->on_vpl_browse_triggered(); break;
        case 5: _t->on_rom_browse_triggered(); break;
        case 6: _t->on_rpkg_browse_triggered(); break;
        case 7: _t->on_install_triggered(); break;
        case 8: _t->on_cancel_triggered(); break;
        case 9: _t->on_progress_bar_update((*reinterpret_cast<std::add_pointer_t<std::size_t>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<std::size_t>>(_a[2]))); break;
        case 10: { int _r = _t->on_firmware_variant_selects((*reinterpret_cast<std::add_pointer_t<std::vector<std::string>>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (device_install_dialog::*)(const std::size_t , const std::size_t )>(_a, &device_install_dialog::progress_bar_update, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (device_install_dialog::*)()>(_a, &device_install_dialog::new_device_added, 1))
            return;
        if (QtMocHelpers::indexOfMethod<int (device_install_dialog::*)(const std::vector<std::string> & )>(_a, &device_install_dialog::firmware_variant_selects, 2))
            return;
    }
}

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

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

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

// SIGNAL 0
void device_install_dialog::progress_bar_update(const std::size_t _t1, const std::size_t _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void device_install_dialog::new_device_added()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
int device_install_dialog::firmware_variant_selects(const std::vector<std::string> & _t1)
{
    int _t0{};
    QMetaObject::activate<int>(this, &staticMetaObject, 2, std::addressof(_t0), _t1);
    return _t0;
}
QT_WARNING_POP
