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

#include "../../../../../../stellarium/plugins/Calendars/src/HebrewCalendar.hpp"
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'HebrewCalendar.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. 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_ZN14HebrewCalendarE_t {};
} // unnamed namespace

template <> constexpr inline auto HebrewCalendar::qt_create_metaobjectdata<qt_meta_tag_ZN14HebrewCalendarE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "HebrewCalendar",
        "retranslate",
        "",
        "setJD",
        "JD",
        "setDate",
        "QList<int>",
        "parts",
        "getDateStrings",
        "getFormattedDateString",
        "isLeap",
        "hYear",
        "lastMonthOfHebrewYear",
        "HebrewCalendar::month",
        "hebrewSabbaticalYear",
        "molad",
        "hMonth",
        "hebrewNewYear",
        "daysInHebrewYear",
        "lastDayOfHebrewMonth",
        "fixedFromHebrew",
        "hebrew",
        "hebrewFromFixed",
        "rd"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'retranslate'
        QtMocHelpers::SlotData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setJD'
        QtMocHelpers::SlotData<void(double)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 4 },
        }}),
        // Slot 'setDate'
        QtMocHelpers::SlotData<void(const QVector<int> &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'getDateStrings'
        QtMocHelpers::SlotData<QStringList() const>(8, 2, QMC::AccessPublic, QMetaType::QStringList),
        // Slot 'getFormattedDateString'
        QtMocHelpers::SlotData<QString() const>(9, 2, QMC::AccessPublic, QMetaType::QString),
        // Slot 'isLeap'
        QtMocHelpers::SlotData<bool(int)>(10, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::Int, 11 },
        }}),
        // Slot 'lastMonthOfHebrewYear'
        QtMocHelpers::SlotData<HebrewCalendar::month(int)>(12, 2, QMC::AccessPublic, 0x80000000 | 13, {{
            { QMetaType::Int, 11 },
        }}),
        // Slot 'hebrewSabbaticalYear'
        QtMocHelpers::SlotData<bool(int)>(14, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::Int, 11 },
        }}),
        // Slot 'molad'
        QtMocHelpers::SlotData<double(int, int)>(15, 2, QMC::AccessPublic, QMetaType::Double, {{
            { QMetaType::Int, 11 }, { QMetaType::Int, 16 },
        }}),
        // Slot 'hebrewNewYear'
        QtMocHelpers::SlotData<int(int)>(17, 2, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::Int, 11 },
        }}),
        // Slot 'daysInHebrewYear'
        QtMocHelpers::SlotData<int(int)>(18, 2, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::Int, 11 },
        }}),
        // Slot 'lastDayOfHebrewMonth'
        QtMocHelpers::SlotData<int(int, int)>(19, 2, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::Int, 11 }, { QMetaType::Int, 16 },
        }}),
        // Slot 'fixedFromHebrew'
        QtMocHelpers::SlotData<int(const QVector<int> &)>(20, 2, QMC::AccessPublic, QMetaType::Int, {{
            { 0x80000000 | 6, 21 },
        }}),
        // Slot 'hebrewFromFixed'
        QtMocHelpers::SlotData<QVector<int>(int)>(22, 2, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::Int, 23 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<HebrewCalendar, qt_meta_tag_ZN14HebrewCalendarE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject HebrewCalendar::staticMetaObject = { {
    QMetaObject::SuperData::link<Calendar::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14HebrewCalendarE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14HebrewCalendarE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN14HebrewCalendarE_t>.metaTypes,
    nullptr
} };

void HebrewCalendar::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<HebrewCalendar *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->retranslate(); break;
        case 1: _t->setJD((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        case 2: _t->setDate((*reinterpret_cast<std::add_pointer_t<QList<int>>>(_a[1]))); break;
        case 3: { QStringList _r = _t->getDateStrings();
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 4: { QString _r = _t->getFormattedDateString();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 5: { bool _r = _t->isLeap((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 6: { HebrewCalendar::month _r = _t->lastMonthOfHebrewYear((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<HebrewCalendar::month*>(_a[0]) = std::move(_r); }  break;
        case 7: { bool _r = _t->hebrewSabbaticalYear((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 8: { double _r = _t->molad((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<double*>(_a[0]) = std::move(_r); }  break;
        case 9: { int _r = _t->hebrewNewYear((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 10: { int _r = _t->daysInHebrewYear((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 11: { int _r = _t->lastDayOfHebrewMonth((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 12: { int _r = _t->fixedFromHebrew((*reinterpret_cast<std::add_pointer_t<QList<int>>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 13: { QList<int> _r = _t->hebrewFromFixed((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QList<int>*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<int> >(); break;
            }
            break;
        case 12:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<int> >(); break;
            }
            break;
        }
    }
}

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

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

int HebrewCalendar::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Calendar::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
    return _id;
}
QT_WARNING_POP
