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

#include "../../../livestacker/src/fits/fitsdata.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 'fitsdata.h' 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_ZN8FITSDataE_t {};
} // unnamed namespace

template <> constexpr inline auto FITSData::qt_create_metaobjectdata<qt_meta_tag_ZN8FITSDataE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "FITSData",
        "converted",
        "",
        "QImage",
        "histogramReady",
        "dataChanged",
        "makeRoiBuffer",
        "QRect",
        "roi",
        "filename",
        "extension",
        "size",
        "width",
        "height",
        "mode",
        "FITSMode",
        "channels",
        "bpp",
        "hasWCS",
        "hasDebayer"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'converted'
        QtMocHelpers::SignalData<void(QImage)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Signal 'histogramReady'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'dataChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'makeRoiBuffer'
        QtMocHelpers::SlotData<void(QRect)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 8 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'filename'
        QtMocHelpers::PropertyData<QString>(9, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'extension'
        QtMocHelpers::PropertyData<QString>(10, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'size'
        QtMocHelpers::PropertyData<qint64>(11, QMetaType::LongLong, QMC::DefaultPropertyFlags),
        // property 'width'
        QtMocHelpers::PropertyData<quint16>(12, QMetaType::UShort, QMC::DefaultPropertyFlags),
        // property 'height'
        QtMocHelpers::PropertyData<quint16>(13, QMetaType::UShort, QMC::DefaultPropertyFlags),
        // property 'mode'
        QtMocHelpers::PropertyData<FITSMode>(14, 0x80000000 | 15, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag),
        // property 'channels'
        QtMocHelpers::PropertyData<quint8>(16, QMetaType::UChar, QMC::DefaultPropertyFlags),
        // property 'bpp'
        QtMocHelpers::PropertyData<quint8>(17, QMetaType::UChar, QMC::DefaultPropertyFlags),
        // property 'hasWCS'
        QtMocHelpers::PropertyData<bool>(18, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'hasDebayer'
        QtMocHelpers::PropertyData<bool>(19, QMetaType::Bool, QMC::DefaultPropertyFlags),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<FITSData, qt_meta_tag_ZN8FITSDataE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject FITSData::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8FITSDataE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8FITSDataE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8FITSDataE_t>.metaTypes,
    nullptr
} };

void FITSData::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<FITSData *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->converted((*reinterpret_cast<std::add_pointer_t<QImage>>(_a[1]))); break;
        case 1: _t->histogramReady(); break;
        case 2: _t->dataChanged(); break;
        case 3: _t->makeRoiBuffer((*reinterpret_cast<std::add_pointer_t<QRect>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (FITSData::*)(QImage )>(_a, &FITSData::converted, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (FITSData::*)()>(_a, &FITSData::histogramReady, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (FITSData::*)()>(_a, &FITSData::dataChanged, 2))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->filename(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->extension(); break;
        case 2: *reinterpret_cast<qint64*>(_v) = _t->size(); break;
        case 3: *reinterpret_cast<quint16*>(_v) = _t->width(); break;
        case 4: *reinterpret_cast<quint16*>(_v) = _t->height(); break;
        case 5: *reinterpret_cast<FITSMode*>(_v) = _t->m_Mode; break;
        case 6: *reinterpret_cast<quint8*>(_v) = _t->channels(); break;
        case 7: *reinterpret_cast<quint8*>(_v) = _t->bpp(); break;
        case 8: *reinterpret_cast<bool*>(_v) = _t->hasWCS(); break;
        case 9: *reinterpret_cast<bool*>(_v) = _t->hasDebayer(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 5: QtMocHelpers::setProperty(_t->m_Mode, *reinterpret_cast<FITSMode*>(_v)); break;
        default: break;
        }
    }
}

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

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

int FITSData::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 < 4)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 4)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 4;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    return _id;
}

// SIGNAL 0
void FITSData::converted(QImage _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

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

// SIGNAL 2
void FITSData::dataChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
