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

#include "../../../../phonon-4.12.0/phonon/videowidget.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 'videowidget.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.2. 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_ZN6Phonon11VideoWidgetE_t {};
} // unnamed namespace

template <> constexpr inline auto Phonon::VideoWidget::qt_create_metaobjectdata<qt_meta_tag_ZN6Phonon11VideoWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Phonon::VideoWidget",
        "setFullScreen",
        "",
        "fullscreen",
        "exitFullScreen",
        "enterFullScreen",
        "setAspectRatio",
        "AspectRatio",
        "setScaleMode",
        "ScaleMode",
        "setBrightness",
        "value",
        "setContrast",
        "setHue",
        "setSaturation",
        "fullScreen",
        "aspectRatio",
        "scaleMode",
        "brightness",
        "contrast",
        "hue",
        "saturation",
        "AspectRatioAuto",
        "AspectRatioWidget",
        "AspectRatio4_3",
        "AspectRatio16_9",
        "FitInView",
        "ScaleAndCrop"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'setFullScreen'
        QtMocHelpers::SlotData<void(bool)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
        // Slot 'exitFullScreen'
        QtMocHelpers::SlotData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'enterFullScreen'
        QtMocHelpers::SlotData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setAspectRatio'
        QtMocHelpers::SlotData<void(enum AspectRatio)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 2 },
        }}),
        // Slot 'setScaleMode'
        QtMocHelpers::SlotData<void(enum ScaleMode)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 2 },
        }}),
        // Slot 'setBrightness'
        QtMocHelpers::SlotData<void(qreal)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QReal, 11 },
        }}),
        // Slot 'setContrast'
        QtMocHelpers::SlotData<void(qreal)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QReal, 11 },
        }}),
        // Slot 'setHue'
        QtMocHelpers::SlotData<void(qreal)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QReal, 11 },
        }}),
        // Slot 'setSaturation'
        QtMocHelpers::SlotData<void(qreal)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QReal, 11 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'fullScreen'
        QtMocHelpers::PropertyData<bool>(15, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'aspectRatio'
        QtMocHelpers::PropertyData<enum AspectRatio>(16, 0x80000000 | 7, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'scaleMode'
        QtMocHelpers::PropertyData<enum ScaleMode>(17, 0x80000000 | 9, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'brightness'
        QtMocHelpers::PropertyData<qreal>(18, QMetaType::QReal, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'contrast'
        QtMocHelpers::PropertyData<qreal>(19, QMetaType::QReal, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'hue'
        QtMocHelpers::PropertyData<qreal>(20, QMetaType::QReal, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'saturation'
        QtMocHelpers::PropertyData<qreal>(21, QMetaType::QReal, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'AspectRatio'
        QtMocHelpers::EnumData<enum AspectRatio>(7, 7, QMC::EnumFlags{}).add({
            {   22, AspectRatio::AspectRatioAuto },
            {   23, AspectRatio::AspectRatioWidget },
            {   24, AspectRatio::AspectRatio4_3 },
            {   25, AspectRatio::AspectRatio16_9 },
        }),
        // enum 'ScaleMode'
        QtMocHelpers::EnumData<enum ScaleMode>(9, 9, QMC::EnumFlags{}).add({
            {   26, ScaleMode::FitInView },
            {   27, ScaleMode::ScaleAndCrop },
        }),
    };
    return QtMocHelpers::metaObjectData<VideoWidget, qt_meta_tag_ZN6Phonon11VideoWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Phonon::VideoWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Phonon11VideoWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Phonon11VideoWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN6Phonon11VideoWidgetE_t>.metaTypes,
    nullptr
} };

void Phonon::VideoWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<VideoWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->setFullScreen((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 1: _t->exitFullScreen(); break;
        case 2: _t->enterFullScreen(); break;
        case 3: _t->setAspectRatio((*reinterpret_cast<std::add_pointer_t<enum AspectRatio>>(_a[1]))); break;
        case 4: _t->setScaleMode((*reinterpret_cast<std::add_pointer_t<enum ScaleMode>>(_a[1]))); break;
        case 5: _t->setBrightness((*reinterpret_cast<std::add_pointer_t<qreal>>(_a[1]))); break;
        case 6: _t->setContrast((*reinterpret_cast<std::add_pointer_t<qreal>>(_a[1]))); break;
        case 7: _t->setHue((*reinterpret_cast<std::add_pointer_t<qreal>>(_a[1]))); break;
        case 8: _t->setSaturation((*reinterpret_cast<std::add_pointer_t<qreal>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->isFullScreen(); break;
        case 1: *reinterpret_cast<enum AspectRatio*>(_v) = _t->aspectRatio(); break;
        case 2: *reinterpret_cast<enum ScaleMode*>(_v) = _t->scaleMode(); break;
        case 3: *reinterpret_cast<qreal*>(_v) = _t->brightness(); break;
        case 4: *reinterpret_cast<qreal*>(_v) = _t->contrast(); break;
        case 5: *reinterpret_cast<qreal*>(_v) = _t->hue(); break;
        case 6: *reinterpret_cast<qreal*>(_v) = _t->saturation(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setFullScreen(*reinterpret_cast<bool*>(_v)); break;
        case 1: _t->setAspectRatio(*reinterpret_cast<enum AspectRatio*>(_v)); break;
        case 2: _t->setScaleMode(*reinterpret_cast<enum ScaleMode*>(_v)); break;
        case 3: _t->setBrightness(*reinterpret_cast<qreal*>(_v)); break;
        case 4: _t->setContrast(*reinterpret_cast<qreal*>(_v)); break;
        case 5: _t->setHue(*reinterpret_cast<qreal*>(_v)); break;
        case 6: _t->setSaturation(*reinterpret_cast<qreal*>(_v)); break;
        default: break;
        }
    }
}

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

void *Phonon::VideoWidget::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Phonon11VideoWidgetE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "Phonon::AbstractVideoOutput"))
        return static_cast< Phonon::AbstractVideoOutput*>(this);
    return QWidget::qt_metacast(_clname);
}

int Phonon::VideoWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 9)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 9;
    }
    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;
}
QT_WARNING_POP
