/****************************************************************************
** Meta object code from reading C++ file 'mauiapp.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 "../../../../mauikit-4.0.2/src/utils/mauiapp.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 'mauiapp.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_ZN7MauiAppE_t {};
} // unnamed namespace

template <> constexpr inline auto MauiApp::qt_create_metaobjectdata<qt_meta_tag_ZN7MauiAppE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "MauiApp",
        "QML.Element",
        "App",
        "QML.Attached",
        "QML.Creatable",
        "false",
        "QML.UncreatableReason",
        "Cannot be created MauiApp",
        "iconNameChanged",
        "",
        "donationPageChanged",
        "currentIconThemeChanged",
        "currentIconTheme",
        "rootComponentChanged",
        "setRootComponent",
        "item",
        "aboutDialog",
        "windowsOpened",
        "about",
        "KAboutData",
        "iconName",
        "donationPage",
        "mauikitVersion",
        "rootComponent"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'iconNameChanged'
        QtMocHelpers::SignalData<void()>(8, 9, QMC::AccessPublic, QMetaType::Void),
        // Signal 'donationPageChanged'
        QtMocHelpers::SignalData<void()>(10, 9, QMC::AccessPublic, QMetaType::Void),
        // Signal 'currentIconThemeChanged'
        QtMocHelpers::SignalData<void(QString)>(11, 9, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 12 },
        }}),
        // Signal 'rootComponentChanged'
        QtMocHelpers::SignalData<void()>(13, 9, QMC::AccessPublic, QMetaType::Void),
        // Method 'setRootComponent'
        QtMocHelpers::MethodData<void(QObject *)>(14, 9, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QObjectStar, 15 },
        }}),
        // Method 'aboutDialog'
        QtMocHelpers::MethodData<void()>(16, 9, QMC::AccessPublic, QMetaType::Void),
        // Method 'windowsOpened'
        QtMocHelpers::MethodData<int()>(17, 9, QMC::AccessPublic, QMetaType::Int),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'about'
        QtMocHelpers::PropertyData<KAboutData>(18, 0x80000000 | 19, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant | QMC::Final),
        // property 'iconName'
        QtMocHelpers::PropertyData<QString>(20, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'donationPage'
        QtMocHelpers::PropertyData<QString>(21, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'mauikitVersion'
        QtMocHelpers::PropertyData<QString>(22, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant | QMC::Final),
        // property 'rootComponent'
        QtMocHelpers::PropertyData<QObject*>(23, QMetaType::QObjectStar, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    0 },
            {    4,    5 },
            {    6,    7 },
    });
    return QtMocHelpers::metaObjectData<MauiApp, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject MauiApp::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7MauiAppE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7MauiAppE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN7MauiAppE_t>.metaTypes,
    nullptr
} };

void MauiApp::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MauiApp *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->iconNameChanged(); break;
        case 1: _t->donationPageChanged(); break;
        case 2: _t->currentIconThemeChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->rootComponentChanged(); break;
        case 4: _t->setRootComponent((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1]))); break;
        case 5: _t->aboutDialog(); break;
        case 6: { int _r = _t->windowsOpened();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (MauiApp::*)()>(_a, &MauiApp::iconNameChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiApp::*)()>(_a, &MauiApp::donationPageChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiApp::*)(QString )>(_a, &MauiApp::currentIconThemeChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiApp::*)()>(_a, &MauiApp::rootComponentChanged, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<KAboutData*>(_v) = _t->getAbout(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->getIconName(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->getDonationPage(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->getMauikitVersion(); break;
        case 4: *reinterpret_cast<QObject**>(_v) = _t->rootComponent(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setIconName(*reinterpret_cast<QString*>(_v)); break;
        case 2: _t->setDonationPage(*reinterpret_cast<QString*>(_v)); break;
        case 4: _t->setRootComponent(*reinterpret_cast<QObject**>(_v)); break;
        default: break;
        }
    }
}

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

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

int MauiApp::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 < 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 -= 5;
    }
    return _id;
}

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

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

// SIGNAL 2
void MauiApp::currentIconThemeChanged(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void MauiApp::rootComponentChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
