/****************************************************************************
** Meta object code from reading C++ file 'barcodequickitem.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 "../../../../../prison-6.25.0/src/quick/barcodequickitem.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 'barcodequickitem.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_ZN6Prison16BarcodeQuickItemE_t {};
} // unnamed namespace

template <> constexpr inline auto Prison::BarcodeQuickItem::qt_create_metaobjectdata<qt_meta_tag_ZN6Prison16BarcodeQuickItemE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Prison::BarcodeQuickItem",
        "QML.Element",
        "Barcode",
        "contentChanged",
        "",
        "barcodeTypeChanged",
        "foregroundColorChanged",
        "backgroundColorChanged",
        "dimensionsChanged",
        "implicitHeightChanged",
        "implicitWidthChanged",
        "content",
        "QVariant",
        "barcodeType",
        "QJSValue",
        "foregroundColor",
        "QColor",
        "backgroundColor",
        "dimensions",
        "Dimensions",
        "minimumHeight",
        "minimumWidth",
        "BarcodeType",
        "QRCode",
        "DataMatrix",
        "Aztec",
        "Code39",
        "Code93",
        "Code128",
        "PDF417",
        "EAN13",
        "NoDimensions",
        "OneDimension",
        "TwoDimensions"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'contentChanged'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'barcodeTypeChanged'
        QtMocHelpers::SignalData<void()>(5, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'foregroundColorChanged'
        QtMocHelpers::SignalData<void()>(6, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'backgroundColorChanged'
        QtMocHelpers::SignalData<void()>(7, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'dimensionsChanged'
        QtMocHelpers::SignalData<void()>(8, 4, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'content'
        QtMocHelpers::PropertyData<QVariant>(11, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'barcodeType'
        QtMocHelpers::PropertyData<QJSValue>(13, 0x80000000 | 14, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'foregroundColor'
        QtMocHelpers::PropertyData<QColor>(15, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 2),
        // property 'backgroundColor'
        QtMocHelpers::PropertyData<QColor>(17, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 3),
        // property 'dimensions'
        QtMocHelpers::PropertyData<enum Dimensions>(18, 0x80000000 | 19, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 4),
        // property 'minimumHeight'
        QtMocHelpers::PropertyData<qreal>(20, QMetaType::QReal, QMC::DefaultPropertyFlags, 0x70000000 | 9),
        // property 'minimumWidth'
        QtMocHelpers::PropertyData<qreal>(21, QMetaType::QReal, QMC::DefaultPropertyFlags, 0x70000000 | 10),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'BarcodeType'
        QtMocHelpers::EnumData<enum BarcodeType>(22, 22, QMC::EnumFlags{}).add({
            {   23, BarcodeType::QRCode },
            {   24, BarcodeType::DataMatrix },
            {   25, BarcodeType::Aztec },
            {   26, BarcodeType::Code39 },
            {   27, BarcodeType::Code93 },
            {   28, BarcodeType::Code128 },
            {   29, BarcodeType::PDF417 },
            {   30, BarcodeType::EAN13 },
        }),
        // enum 'Dimensions'
        QtMocHelpers::EnumData<enum Dimensions>(19, 19, QMC::EnumFlags{}).add({
            {   31, Dimensions::NoDimensions },
            {   32, Dimensions::OneDimension },
            {   33, Dimensions::TwoDimensions },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<BarcodeQuickItem, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject Prison::BarcodeQuickItem::staticMetaObject = { {
    QMetaObject::SuperData::link<QQuickPaintedItem::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Prison16BarcodeQuickItemE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Prison16BarcodeQuickItemE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN6Prison16BarcodeQuickItemE_t>.metaTypes,
    nullptr
} };

void Prison::BarcodeQuickItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<BarcodeQuickItem *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->contentChanged(); break;
        case 1: _t->barcodeTypeChanged(); break;
        case 2: _t->foregroundColorChanged(); break;
        case 3: _t->backgroundColorChanged(); break;
        case 4: _t->dimensionsChanged(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (BarcodeQuickItem::*)()>(_a, &BarcodeQuickItem::contentChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (BarcodeQuickItem::*)()>(_a, &BarcodeQuickItem::barcodeTypeChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (BarcodeQuickItem::*)()>(_a, &BarcodeQuickItem::foregroundColorChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (BarcodeQuickItem::*)()>(_a, &BarcodeQuickItem::backgroundColorChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (BarcodeQuickItem::*)()>(_a, &BarcodeQuickItem::dimensionsChanged, 4))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 1:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QJSValue >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QVariant*>(_v) = _t->content(); break;
        case 1: *reinterpret_cast<QJSValue*>(_v) = _t->barcodeType(); break;
        case 2: *reinterpret_cast<QColor*>(_v) = _t->foregroundColor(); break;
        case 3: *reinterpret_cast<QColor*>(_v) = _t->backgroundColor(); break;
        case 4: *reinterpret_cast<enum Dimensions*>(_v) = _t->dimensions(); break;
        case 5: *reinterpret_cast<qreal*>(_v) = _t->minimumHeight(); break;
        case 6: *reinterpret_cast<qreal*>(_v) = _t->minimumWidth(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setContent(*reinterpret_cast<QVariant*>(_v)); break;
        case 1: _t->setBarcodeType(*reinterpret_cast<QJSValue*>(_v)); break;
        case 2: _t->setForegroundColor(*reinterpret_cast<QColor*>(_v)); break;
        case 3: _t->setBackgroundColor(*reinterpret_cast<QColor*>(_v)); break;
        default: break;
        }
    }
}

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

void *Prison::BarcodeQuickItem::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Prison16BarcodeQuickItemE_t>.strings))
        return static_cast<void*>(this);
    return QQuickPaintedItem::qt_metacast(_clname);
}

int Prison::BarcodeQuickItem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QQuickPaintedItem::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 5)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 5;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    return _id;
}

// SIGNAL 0
void Prison::BarcodeQuickItem::contentChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void Prison::BarcodeQuickItem::barcodeTypeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void Prison::BarcodeQuickItem::foregroundColorChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void Prison::BarcodeQuickItem::backgroundColorChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void Prison::BarcodeQuickItem::dimensionsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}
namespace CheckNotifySignalValidity_ZN6Prison16BarcodeQuickItemE {
template<typename T> using has_nullary_implicitHeightChanged = decltype(std::declval<T>().implicitHeightChanged());
template<typename T> using has_unary_implicitHeightChanged = decltype(std::declval<T>().implicitHeightChanged(std::declval<qreal>()));
static_assert(qxp::is_detected_v<has_nullary_implicitHeightChanged, Prison::BarcodeQuickItem> || qxp::is_detected_v<has_unary_implicitHeightChanged, Prison::BarcodeQuickItem>,
              "NOTIFY signal implicitHeightChanged does not exist in class (or is private in its parent)");
template<typename T> using has_nullary_implicitWidthChanged = decltype(std::declval<T>().implicitWidthChanged());
template<typename T> using has_unary_implicitWidthChanged = decltype(std::declval<T>().implicitWidthChanged(std::declval<qreal>()));
static_assert(qxp::is_detected_v<has_nullary_implicitWidthChanged, Prison::BarcodeQuickItem> || qxp::is_detected_v<has_unary_implicitWidthChanged, Prison::BarcodeQuickItem>,
              "NOTIFY signal implicitWidthChanged does not exist in class (or is private in its parent)");
}
QT_WARNING_POP
