/****************************************************************************
** Meta object code from reading C++ file 'personalizationmanager.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 "../../../../src/modules/personalization/personalizationmanager.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 'personalizationmanager.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_ZN15PersonalizationE_t {};
} // unnamed namespace

template <> constexpr inline auto Personalization::qt_create_metaobjectdata<qt_meta_tag_ZN15PersonalizationE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Personalization",
        "QML.Element",
        "anonymous",
        "backgroundTypeChanged",
        "",
        "cornerRadiusChanged",
        "shadowChanged",
        "borderChanged",
        "windowStateChanged",
        "backgroundType",
        "int32_t",
        "cornerRadius",
        "shadow",
        "Shadow",
        "border",
        "Border",
        "noTitlebar",
        "BackgroundType",
        "Normal",
        "Wallpaper",
        "Blur"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'backgroundTypeChanged'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'cornerRadiusChanged'
        QtMocHelpers::SignalData<void()>(5, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'shadowChanged'
        QtMocHelpers::SignalData<void()>(6, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'borderChanged'
        QtMocHelpers::SignalData<void()>(7, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'windowStateChanged'
        QtMocHelpers::SignalData<void()>(8, 4, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'backgroundType'
        QtMocHelpers::PropertyData<int32_t>(9, 0x80000000 | 10, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 0),
        // property 'cornerRadius'
        QtMocHelpers::PropertyData<int32_t>(11, 0x80000000 | 10, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 1),
        // property 'shadow'
        QtMocHelpers::PropertyData<Shadow>(12, 0x80000000 | 13, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 2),
        // property 'border'
        QtMocHelpers::PropertyData<Border>(14, 0x80000000 | 15, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 3),
        // property 'noTitlebar'
        QtMocHelpers::PropertyData<bool>(16, QMetaType::Bool, QMC::DefaultPropertyFlags, 4),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'BackgroundType'
        QtMocHelpers::EnumData<enum BackgroundType>(17, 17, QMC::EnumFlags{}).add({
            {   18, BackgroundType::Normal },
            {   19, BackgroundType::Wallpaper },
            {   20, BackgroundType::Blur },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<Personalization, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject Personalization::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15PersonalizationE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15PersonalizationE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN15PersonalizationE_t>.metaTypes,
    nullptr
} };

void Personalization::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Personalization *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->backgroundTypeChanged(); break;
        case 1: _t->cornerRadiusChanged(); break;
        case 2: _t->shadowChanged(); break;
        case 3: _t->borderChanged(); break;
        case 4: _t->windowStateChanged(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Personalization::*)()>(_a, &Personalization::backgroundTypeChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Personalization::*)()>(_a, &Personalization::cornerRadiusChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Personalization::*)()>(_a, &Personalization::shadowChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Personalization::*)()>(_a, &Personalization::borderChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Personalization::*)()>(_a, &Personalization::windowStateChanged, 4))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<int32_t*>(_v) = _t->backgroundType(); break;
        case 1: *reinterpret_cast<int32_t*>(_v) = _t->cornerRadius(); break;
        case 2: *reinterpret_cast<Shadow*>(_v) = _t->shadow(); break;
        case 3: *reinterpret_cast<Border*>(_v) = _t->border(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->noTitlebar(); break;
        default: break;
        }
    }
}

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

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

int Personalization::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 < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 5)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 5;
    }
    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 Personalization::backgroundTypeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

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

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

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

// SIGNAL 4
void Personalization::windowStateChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}
namespace {
struct qt_meta_tag_ZN17PersonalizationV1E_t {};
} // unnamed namespace

template <> constexpr inline auto PersonalizationV1::qt_create_metaobjectdata<qt_meta_tag_ZN17PersonalizationV1E_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PersonalizationV1",
        "userIdChanged",
        "",
        "uid_t",
        "uid",
        "backgroundChanged",
        "output",
        "isdark",
        "lockscreenChanged",
        "cursorThemeChanged",
        "name",
        "cursorSizeChanged",
        "QSize",
        "size",
        "windowContextCreated",
        "personalization_window_context_v1*",
        "context",
        "background",
        "workspaceId",
        "lockscreen",
        "backgroundIsDark",
        "isAnimagedImage",
        "source",
        "userId",
        "cursorTheme",
        "cursorSize"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'userIdChanged'
        QtMocHelpers::SignalData<void(uid_t)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'backgroundChanged'
        QtMocHelpers::SignalData<void(const QString &, bool)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 6 }, { QMetaType::Bool, 7 },
        }}),
        // Signal 'lockscreenChanged'
        QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'cursorThemeChanged'
        QtMocHelpers::SignalData<void(const QString &)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 10 },
        }}),
        // Signal 'cursorSizeChanged'
        QtMocHelpers::SignalData<void(const QSize &)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Signal 'windowContextCreated'
        QtMocHelpers::SignalData<void(personalization_window_context_v1 *)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 16 },
        }}),
        // Slot 'background'
        QtMocHelpers::SlotData<QString(const QString &, int)>(17, 2, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 6 }, { QMetaType::Int, 18 },
        }}),
        // Slot 'background'
        QtMocHelpers::SlotData<QString(const QString &)>(17, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::QString, {{
            { QMetaType::QString, 6 },
        }}),
        // Slot 'lockscreen'
        QtMocHelpers::SlotData<QString(const QString &, int)>(19, 2, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 6 }, { QMetaType::Int, 18 },
        }}),
        // Slot 'lockscreen'
        QtMocHelpers::SlotData<QString(const QString &)>(19, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::QString, {{
            { QMetaType::QString, 6 },
        }}),
        // Slot 'backgroundIsDark'
        QtMocHelpers::SlotData<bool(const QString &, int)>(20, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 6 }, { QMetaType::Int, 18 },
        }}),
        // Slot 'backgroundIsDark'
        QtMocHelpers::SlotData<bool(const QString &)>(20, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { QMetaType::QString, 6 },
        }}),
        // Slot 'isAnimagedImage'
        QtMocHelpers::SlotData<bool(const QString &)>(21, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 22 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'userId'
        QtMocHelpers::PropertyData<uid_t>(23, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet | QMC::Final, 0),
        // property 'cursorTheme'
        QtMocHelpers::PropertyData<QString>(24, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet | QMC::Final, 3),
        // property 'cursorSize'
        QtMocHelpers::PropertyData<QSize>(25, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet | QMC::Final, 4),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<PersonalizationV1, qt_meta_tag_ZN17PersonalizationV1E_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject PersonalizationV1::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17PersonalizationV1E_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17PersonalizationV1E_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN17PersonalizationV1E_t>.metaTypes,
    nullptr
} };

void PersonalizationV1::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PersonalizationV1 *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->userIdChanged((*reinterpret_cast<std::add_pointer_t<uid_t>>(_a[1]))); break;
        case 1: _t->backgroundChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 2: _t->lockscreenChanged(); break;
        case 3: _t->cursorThemeChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->cursorSizeChanged((*reinterpret_cast<std::add_pointer_t<QSize>>(_a[1]))); break;
        case 5: _t->windowContextCreated((*reinterpret_cast<std::add_pointer_t<personalization_window_context_v1*>>(_a[1]))); break;
        case 6: { QString _r = _t->background((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 7: { QString _r = _t->background((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 8: { QString _r = _t->lockscreen((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 9: { QString _r = _t->lockscreen((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 10: { bool _r = _t->backgroundIsDark((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 11: { bool _r = _t->backgroundIsDark((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 12: { bool _r = _t->isAnimagedImage((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< personalization_window_context_v1* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PersonalizationV1::*)(uid_t )>(_a, &PersonalizationV1::userIdChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PersonalizationV1::*)(const QString & , bool )>(_a, &PersonalizationV1::backgroundChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (PersonalizationV1::*)()>(_a, &PersonalizationV1::lockscreenChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (PersonalizationV1::*)(const QString & )>(_a, &PersonalizationV1::cursorThemeChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (PersonalizationV1::*)(const QSize & )>(_a, &PersonalizationV1::cursorSizeChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (PersonalizationV1::*)(personalization_window_context_v1 * )>(_a, &PersonalizationV1::windowContextCreated, 5))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<uid_t*>(_v) = _t->userId(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->cursorTheme(); break;
        case 2: *reinterpret_cast<QSize*>(_v) = _t->cursorSize(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setUserId(*reinterpret_cast<uid_t*>(_v)); break;
        case 1: _t->setCursorTheme(*reinterpret_cast<QString*>(_v)); break;
        case 2: _t->setCursorSize(*reinterpret_cast<QSize*>(_v)); break;
        default: break;
        }
    }
}

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

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

int PersonalizationV1::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 < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
    return _id;
}

// SIGNAL 0
void PersonalizationV1::userIdChanged(uid_t _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void PersonalizationV1::backgroundChanged(const QString & _t1, bool _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

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

// SIGNAL 3
void PersonalizationV1::cursorThemeChanged(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void PersonalizationV1::cursorSizeChanged(const QSize & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void PersonalizationV1::windowContextCreated(personalization_window_context_v1 * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}
QT_WARNING_POP
