/****************************************************************************
** Meta object code from reading C++ file 'utils_screen.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 "../../../../../thirdparty/AppUtils/utils_screen.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 'utils_screen.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_ZN11UtilsScreenE_t {};
} // unnamed namespace

template <> constexpr inline auto UtilsScreen::qt_create_metaobjectdata<qt_meta_tag_ZN11UtilsScreenE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "UtilsScreen",
        "screenChanged",
        "",
        "getScreenInfos",
        "const QScreen*",
        "scr",
        "printScreenInfos",
        "keepScreenOn",
        "on",
        "application",
        "explanation",
        "lockScreenOrientation",
        "orientation",
        "UtilsScreen::ScreenOrientation",
        "autoRotate",
        "screenWidth",
        "screenHeight",
        "screenDepth",
        "screenRefreshRate",
        "screenDpi",
        "screenPar",
        "screenSize",
        "screenDar",
        "screenDarStr",
        "ScreenOrientation",
        "ScreenOrientation_UNLOCKED",
        "ScreenOrientation_PORTRAIT",
        "ScreenOrientation_PORTRAIT_UPSIDEDOWN",
        "ScreenOrientation_LANDSCAPE",
        "ScreenOrientation_LANDSCAPE_LEFT"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'screenChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'getScreenInfos'
        QtMocHelpers::SlotData<void(const QScreen *)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Method 'printScreenInfos'
        QtMocHelpers::MethodData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'keepScreenOn'
        QtMocHelpers::MethodData<void(bool, const QString &, const QString &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 8 }, { QMetaType::QString, 9 }, { QMetaType::QString, 10 },
        }}),
        // Method 'keepScreenOn'
        QtMocHelpers::MethodData<void(bool, const QString &)>(7, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::Bool, 8 }, { QMetaType::QString, 9 },
        }}),
        // Method 'keepScreenOn'
        QtMocHelpers::MethodData<void(bool)>(7, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::Bool, 8 },
        }}),
        // Method 'lockScreenOrientation'
        QtMocHelpers::MethodData<void(int)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 12 },
        }}),
        // Method 'lockScreenOrientation'
        QtMocHelpers::MethodData<void(UtilsScreen::ScreenOrientation, bool)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 13, 12 }, { QMetaType::Bool, 14 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'screenWidth'
        QtMocHelpers::PropertyData<int>(15, QMetaType::Int, QMC::DefaultPropertyFlags, 0),
        // property 'screenHeight'
        QtMocHelpers::PropertyData<int>(16, QMetaType::Int, QMC::DefaultPropertyFlags, 0),
        // property 'screenDepth'
        QtMocHelpers::PropertyData<int>(17, QMetaType::Int, QMC::DefaultPropertyFlags, 0),
        // property 'screenRefreshRate'
        QtMocHelpers::PropertyData<double>(18, QMetaType::Double, QMC::DefaultPropertyFlags, 0),
        // property 'screenDpi'
        QtMocHelpers::PropertyData<int>(19, QMetaType::Int, QMC::DefaultPropertyFlags, 0),
        // property 'screenPar'
        QtMocHelpers::PropertyData<double>(20, QMetaType::Double, QMC::DefaultPropertyFlags, 0),
        // property 'screenSize'
        QtMocHelpers::PropertyData<double>(21, QMetaType::Double, QMC::DefaultPropertyFlags, 0),
        // property 'screenDar'
        QtMocHelpers::PropertyData<double>(22, QMetaType::Double, QMC::DefaultPropertyFlags, 0),
        // property 'screenDarStr'
        QtMocHelpers::PropertyData<QString>(23, QMetaType::QString, QMC::DefaultPropertyFlags, 0),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'ScreenOrientation'
        QtMocHelpers::EnumData<enum ScreenOrientation>(24, 24, QMC::EnumFlags{}).add({
            {   25, ScreenOrientation::ScreenOrientation_UNLOCKED },
            {   26, ScreenOrientation::ScreenOrientation_PORTRAIT },
            {   27, ScreenOrientation::ScreenOrientation_PORTRAIT_UPSIDEDOWN },
            {   28, ScreenOrientation::ScreenOrientation_LANDSCAPE },
            {   29, ScreenOrientation::ScreenOrientation_LANDSCAPE_LEFT },
        }),
    };
    return QtMocHelpers::metaObjectData<UtilsScreen, qt_meta_tag_ZN11UtilsScreenE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject UtilsScreen::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11UtilsScreenE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11UtilsScreenE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11UtilsScreenE_t>.metaTypes,
    nullptr
} };

void UtilsScreen::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<UtilsScreen *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->screenChanged(); break;
        case 1: _t->getScreenInfos((*reinterpret_cast<std::add_pointer_t<const QScreen*>>(_a[1]))); break;
        case 2: _t->printScreenInfos(); break;
        case 3: _t->keepScreenOn((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3]))); break;
        case 4: _t->keepScreenOn((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 5: _t->keepScreenOn((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 6: _t->lockScreenOrientation((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 7: _t->lockScreenOrientation((*reinterpret_cast<std::add_pointer_t<UtilsScreen::ScreenOrientation>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (UtilsScreen::*)()>(_a, &UtilsScreen::screenChanged, 0))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<int*>(_v) = _t->getScreenWidth(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->getScreenHeight(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->getScreenDepth(); break;
        case 3: *reinterpret_cast<double*>(_v) = _t->getScreenRefreshRate(); break;
        case 4: *reinterpret_cast<int*>(_v) = _t->getScreenDpi(); break;
        case 5: *reinterpret_cast<double*>(_v) = _t->getScreenPar(); break;
        case 6: *reinterpret_cast<double*>(_v) = _t->getScreenSize_inch(); break;
        case 7: *reinterpret_cast<double*>(_v) = _t->getScreenDar(); break;
        case 8: *reinterpret_cast<QString*>(_v) = _t->getScreenDarStr(); break;
        default: break;
        }
    }
}

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

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

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

// SIGNAL 0
void UtilsScreen::screenChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
QT_WARNING_POP
