/****************************************************************************
** Meta object code from reading C++ file 'csdcontrols.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/csdcontrols.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 'csdcontrols.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_ZN9CSDButtonE_t {};
} // unnamed namespace

template <> constexpr inline auto CSDButton::qt_create_metaobjectdata<qt_meta_tag_ZN9CSDButtonE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "CSDButton",
        "QML.Element",
        "auto",
        "stateChanged",
        "",
        "sourceChanged",
        "isHoveredChanged",
        "isMaximizedChanged",
        "isPressedChanged",
        "isFocusedChanged",
        "typeChanged",
        "styleChanged",
        "mapType",
        "CSDButton::CSDButtonType",
        "value",
        "isHovered",
        "isMaximized",
        "isPressed",
        "isFocused",
        "type",
        "CSDButtonType",
        "source",
        "QUrl",
        "style",
        "CSDButtonState",
        "Normal",
        "Hover",
        "Pressed",
        "Backdrop",
        "Disabled",
        "Close",
        "Minimize",
        "Maximize",
        "Restore",
        "Fullscreen",
        "None"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'stateChanged'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sourceChanged'
        QtMocHelpers::SignalData<void()>(5, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'isHoveredChanged'
        QtMocHelpers::SignalData<void()>(6, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'isMaximizedChanged'
        QtMocHelpers::SignalData<void()>(7, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'isPressedChanged'
        QtMocHelpers::SignalData<void()>(8, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'isFocusedChanged'
        QtMocHelpers::SignalData<void()>(9, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'typeChanged'
        QtMocHelpers::SignalData<void()>(10, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'styleChanged'
        QtMocHelpers::SignalData<void()>(11, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'mapType'
        QtMocHelpers::SlotData<CSDButton::CSDButtonType(const QString &)>(12, 4, QMC::AccessPublic, 0x80000000 | 13, {{
            { QMetaType::QString, 14 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'isHovered'
        QtMocHelpers::PropertyData<bool>(15, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'isMaximized'
        QtMocHelpers::PropertyData<bool>(16, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
        // property 'isPressed'
        QtMocHelpers::PropertyData<bool>(17, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
        // property 'isFocused'
        QtMocHelpers::PropertyData<bool>(18, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 5),
        // property 'type'
        QtMocHelpers::PropertyData<enum CSDButtonType>(19, 0x80000000 | 20, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 6),
        // property 'source'
        QtMocHelpers::PropertyData<QUrl>(21, 0x80000000 | 22, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Final, 1),
        // property 'style'
        QtMocHelpers::PropertyData<QString>(23, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 7),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'CSDButtonState'
        QtMocHelpers::EnumData<enum CSDButtonState>(24, 24, QMC::EnumFlags{}).add({
            {   25, CSDButtonState::Normal },
            {   26, CSDButtonState::Hover },
            {   27, CSDButtonState::Pressed },
            {   28, CSDButtonState::Backdrop },
            {   29, CSDButtonState::Disabled },
        }),
        // enum 'CSDButtonType'
        QtMocHelpers::EnumData<enum CSDButtonType>(20, 20, QMC::EnumFlags{}).add({
            {   30, CSDButtonType::Close },
            {   31, CSDButtonType::Minimize },
            {   32, CSDButtonType::Maximize },
            {   33, CSDButtonType::Restore },
            {   34, CSDButtonType::Fullscreen },
            {   35, CSDButtonType::None },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<CSDButton, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject CSDButton::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9CSDButtonE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9CSDButtonE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9CSDButtonE_t>.metaTypes,
    nullptr
} };

void CSDButton::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<CSDButton *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->stateChanged(); break;
        case 1: _t->sourceChanged(); break;
        case 2: _t->isHoveredChanged(); break;
        case 3: _t->isMaximizedChanged(); break;
        case 4: _t->isPressedChanged(); break;
        case 5: _t->isFocusedChanged(); break;
        case 6: _t->typeChanged(); break;
        case 7: _t->styleChanged(); break;
        case 8: { CSDButton::CSDButtonType _r = _t->mapType((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<CSDButton::CSDButtonType*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (CSDButton::*)()>(_a, &CSDButton::stateChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (CSDButton::*)()>(_a, &CSDButton::sourceChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (CSDButton::*)()>(_a, &CSDButton::isHoveredChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (CSDButton::*)()>(_a, &CSDButton::isMaximizedChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (CSDButton::*)()>(_a, &CSDButton::isPressedChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (CSDButton::*)()>(_a, &CSDButton::isFocusedChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (CSDButton::*)()>(_a, &CSDButton::typeChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (CSDButton::*)()>(_a, &CSDButton::styleChanged, 7))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->isHovered(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->isMaximized(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->isPressed(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->isFocused(); break;
        case 4: *reinterpret_cast<enum CSDButtonType*>(_v) = _t->type(); break;
        case 5: *reinterpret_cast<QUrl*>(_v) = _t->source(); break;
        case 6: *reinterpret_cast<QString*>(_v) = _t->style(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setIsHovered(*reinterpret_cast<bool*>(_v)); break;
        case 1: _t->setIsMaximized(*reinterpret_cast<bool*>(_v)); break;
        case 2: _t->setIsPressed(*reinterpret_cast<bool*>(_v)); break;
        case 3: _t->setIsFocused(*reinterpret_cast<bool*>(_v)); break;
        case 4: _t->setType(*reinterpret_cast<enum CSDButtonType*>(_v)); break;
        case 6: _t->setStyle(*reinterpret_cast<QString*>(_v)); break;
        default: break;
        }
    }
}

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

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

int CSDButton::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 < 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;
}

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

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

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

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

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

// SIGNAL 5
void CSDButton::isFocusedChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void CSDButton::typeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void CSDButton::styleChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}
namespace {
struct qt_meta_tag_ZN11CSDControlsE_t {};
} // unnamed namespace

template <> constexpr inline auto CSDControls::qt_create_metaobjectdata<qt_meta_tag_ZN11CSDControlsE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "CSDControls",
        "QML.Element",
        "CSD",
        "QML.Attached",
        "QML.Creatable",
        "false",
        "QML.UncreatableReason",
        "Cannot be created CSDControls",
        "enableCSDChanged",
        "",
        "styleNameChanged",
        "sourceChanged",
        "enabled",
        "source",
        "QUrl",
        "styleName",
        "rightWindowControls"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'enableCSDChanged'
        QtMocHelpers::SignalData<void()>(8, 9, QMC::AccessPublic, QMetaType::Void),
        // Signal 'styleNameChanged'
        QtMocHelpers::SignalData<void()>(10, 9, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sourceChanged'
        QtMocHelpers::SignalData<void()>(11, 9, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'enabled'
        QtMocHelpers::PropertyData<bool>(12, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Resettable, 0),
        // property 'source'
        QtMocHelpers::PropertyData<QUrl>(13, 0x80000000 | 14, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Final, 2),
        // property 'styleName'
        QtMocHelpers::PropertyData<QString>(15, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Final, 1),
        // property 'rightWindowControls'
        QtMocHelpers::PropertyData<QStringList>(16, QMetaType::QStringList, QMC::DefaultPropertyFlags | QMC::Constant | QMC::Final),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    0 },
            {    4,    5 },
            {    6,    7 },
    });
    return QtMocHelpers::metaObjectData<CSDControls, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject CSDControls::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11CSDControlsE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11CSDControlsE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11CSDControlsE_t>.metaTypes,
    nullptr
} };

void CSDControls::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<CSDControls *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->enableCSDChanged(); break;
        case 1: _t->styleNameChanged(); break;
        case 2: _t->sourceChanged(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (CSDControls::*)()>(_a, &CSDControls::enableCSDChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (CSDControls::*)()>(_a, &CSDControls::styleNameChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (CSDControls::*)()>(_a, &CSDControls::sourceChanged, 2))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->enableCSD(); break;
        case 1: *reinterpret_cast<QUrl*>(_v) = _t->source(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->styleName(); break;
        case 3: *reinterpret_cast<QStringList*>(_v) = _t->m_rightWindowControls; break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setEnableCSD(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
    if (_c == QMetaObject::ResetProperty) {
        switch (_id) {
        case 0: _t->resetEnableCSD(); break;
        default: break;
        }
    }
}

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

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

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

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

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

// SIGNAL 2
void CSDControls::sourceChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
