/****************************************************************************
** Meta object code from reading C++ file 'view_zone.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/game/zones/view_zone.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 'view_zone.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_ZN12ZoneViewZoneE_t {};
} // unnamed namespace

template <> constexpr inline auto ZoneViewZone::qt_create_metaobjectdata<qt_meta_tag_ZN12ZoneViewZoneE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ZoneViewZone",
        "closed",
        "",
        "optimumRectChanged",
        "wheelEventReceived",
        "QGraphicsSceneWheelEvent*",
        "event",
        "close",
        "setGroupBy",
        "CardList::SortOption",
        "_groupBy",
        "setSortBy",
        "_sortBy",
        "setPileView",
        "_pileView",
        "zoneDumpReceived",
        "Response",
        "r"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'closed'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'optimumRectChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'wheelEventReceived'
        QtMocHelpers::SignalData<void(QGraphicsSceneWheelEvent *)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Slot 'close'
        QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setGroupBy'
        QtMocHelpers::SlotData<void(CardList::SortOption)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Slot 'setSortBy'
        QtMocHelpers::SlotData<void(CardList::SortOption)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 12 },
        }}),
        // Slot 'setPileView'
        QtMocHelpers::SlotData<void(int)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 14 },
        }}),
        // Slot 'zoneDumpReceived'
        QtMocHelpers::SlotData<void(const Response &)>(15, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 16, 17 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ZoneViewZone, qt_meta_tag_ZN12ZoneViewZoneE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ZoneViewZone::staticMetaObject = { {
    QMetaObject::SuperData::link<SelectZone::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12ZoneViewZoneE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12ZoneViewZoneE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12ZoneViewZoneE_t>.metaTypes,
    nullptr
} };

void ZoneViewZone::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ZoneViewZone *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->closed(); break;
        case 1: _t->optimumRectChanged(); break;
        case 2: _t->wheelEventReceived((*reinterpret_cast< std::add_pointer_t<QGraphicsSceneWheelEvent*>>(_a[1]))); break;
        case 3: _t->close(); break;
        case 4: _t->setGroupBy((*reinterpret_cast< std::add_pointer_t<CardList::SortOption>>(_a[1]))); break;
        case 5: _t->setSortBy((*reinterpret_cast< std::add_pointer_t<CardList::SortOption>>(_a[1]))); break;
        case 6: _t->setPileView((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
        case 7: _t->zoneDumpReceived((*reinterpret_cast< std::add_pointer_t<Response>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ZoneViewZone::*)()>(_a, &ZoneViewZone::closed, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ZoneViewZone::*)()>(_a, &ZoneViewZone::optimumRectChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ZoneViewZone::*)(QGraphicsSceneWheelEvent * )>(_a, &ZoneViewZone::wheelEventReceived, 2))
            return;
    }
}

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

void *ZoneViewZone::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12ZoneViewZoneE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QGraphicsLayoutItem"))
        return static_cast< QGraphicsLayoutItem*>(this);
    if (!strcmp(_clname, "org.qt-project.Qt.QGraphicsLayoutItem"))
        return static_cast< QGraphicsLayoutItem*>(this);
    return SelectZone::qt_metacast(_clname);
}

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

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

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

// SIGNAL 2
void ZoneViewZone::wheelEventReceived(QGraphicsSceneWheelEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
QT_WARNING_POP
