/****************************************************************************
** Meta object code from reading C++ file 'mpvpreview.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 "../../../../haruna-1.8.1/src/mpv/mpvpreview.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 'mpvpreview.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_ZN10MpvPreviewE_t {};
} // unnamed namespace

template <> constexpr inline auto MpvPreview::qt_create_metaobjectdata<qt_meta_tag_ZN10MpvPreviewE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "MpvPreview",
        "QML.Element",
        "auto",
        "positionChanged",
        "",
        "aspectRatioChanged",
        "fileChanged",
        "accuratePreviewChanged",
        "isLocalFileChanged",
        "isVideoChanged",
        "loadFile",
        "position",
        "aspectRatio",
        "file",
        "accuratePreview",
        "isLocalFile",
        "isVideo"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'positionChanged'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'aspectRatioChanged'
        QtMocHelpers::SignalData<void()>(5, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'fileChanged'
        QtMocHelpers::SignalData<void()>(6, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'accuratePreviewChanged'
        QtMocHelpers::SignalData<void()>(7, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'isLocalFileChanged'
        QtMocHelpers::SignalData<void()>(8, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'isVideoChanged'
        QtMocHelpers::SignalData<void()>(9, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'loadFile'
        QtMocHelpers::MethodData<void()>(10, 4, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'position'
        QtMocHelpers::PropertyData<double>(11, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'aspectRatio'
        QtMocHelpers::PropertyData<double>(12, QMetaType::Double, QMC::DefaultPropertyFlags, 1),
        // property 'file'
        QtMocHelpers::PropertyData<QString>(13, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'accuratePreview'
        QtMocHelpers::PropertyData<bool>(14, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
        // property 'isLocalFile'
        QtMocHelpers::PropertyData<bool>(15, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
        // property 'isVideo'
        QtMocHelpers::PropertyData<bool>(16, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 5),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<MpvPreview, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject MpvPreview::staticMetaObject = { {
    QMetaObject::SuperData::link<MpvAbstractItem::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10MpvPreviewE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10MpvPreviewE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10MpvPreviewE_t>.metaTypes,
    nullptr
} };

void MpvPreview::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MpvPreview *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->positionChanged(); break;
        case 1: _t->aspectRatioChanged(); break;
        case 2: _t->fileChanged(); break;
        case 3: _t->accuratePreviewChanged(); break;
        case 4: _t->isLocalFileChanged(); break;
        case 5: _t->isVideoChanged(); break;
        case 6: _t->loadFile(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (MpvPreview::*)()>(_a, &MpvPreview::positionChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (MpvPreview::*)()>(_a, &MpvPreview::aspectRatioChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (MpvPreview::*)()>(_a, &MpvPreview::fileChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (MpvPreview::*)()>(_a, &MpvPreview::accuratePreviewChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (MpvPreview::*)()>(_a, &MpvPreview::isLocalFileChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (MpvPreview::*)()>(_a, &MpvPreview::isVideoChanged, 5))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<double*>(_v) = _t->position(); break;
        case 1: *reinterpret_cast<double*>(_v) = _t->aspectRatio(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->file(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->accuratePreview(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->isLocalFile(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->isVideo(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setPosition(*reinterpret_cast<double*>(_v)); break;
        case 2: _t->setFile(*reinterpret_cast<QString*>(_v)); break;
        case 3: _t->setAccuratePreview(*reinterpret_cast<bool*>(_v)); break;
        case 4: _t->setIsLocalFile(*reinterpret_cast<bool*>(_v)); break;
        case 5: _t->setIsVideo(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

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

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

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

// SIGNAL 2
void MpvPreview::fileChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void MpvPreview::accuratePreviewChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void MpvPreview::isLocalFileChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void MpvPreview::isVideoChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
QT_WARNING_POP
