/****************************************************************************
** Meta object code from reading C++ file 'settings.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.10)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include <memory>
#include "../../../src/settings/settings.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'settings.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.10. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_UkuiMenu__GlobalSetting_t {
    QByteArrayData data[16];
    char stringdata0[184];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_UkuiMenu__GlobalSetting_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_UkuiMenu__GlobalSetting_t qt_meta_stringdata_UkuiMenu__GlobalSetting = {
    {
QT_MOC_LITERAL(0, 0, 23), // "UkuiMenu::GlobalSetting"
QT_MOC_LITERAL(1, 24, 12), // "styleChanged"
QT_MOC_LITERAL(2, 37, 0), // ""
QT_MOC_LITERAL(3, 38, 18), // "GlobalSetting::Key"
QT_MOC_LITERAL(4, 57, 3), // "key"
QT_MOC_LITERAL(5, 61, 16), // "onSysModeChanged"
QT_MOC_LITERAL(6, 78, 3), // "map"
QT_MOC_LITERAL(7, 82, 3), // "Key"
QT_MOC_LITERAL(8, 86, 9), // "UnKnowKey"
QT_MOC_LITERAL(9, 96, 9), // "StyleName"
QT_MOC_LITERAL(10, 106, 10), // "ThemeColor"
QT_MOC_LITERAL(11, 117, 13), // "IconThemeName"
QT_MOC_LITERAL(12, 131, 12), // "Transparency"
QT_MOC_LITERAL(13, 144, 13), // "EffectEnabled"
QT_MOC_LITERAL(14, 158, 14), // "SystemFontSize"
QT_MOC_LITERAL(15, 173, 10) // "IsLiteMode"

    },
    "UkuiMenu::GlobalSetting\0styleChanged\0"
    "\0GlobalSetting::Key\0key\0onSysModeChanged\0"
    "map\0Key\0UnKnowKey\0StyleName\0ThemeColor\0"
    "IconThemeName\0Transparency\0EffectEnabled\0"
    "SystemFontSize\0IsLiteMode"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_UkuiMenu__GlobalSetting[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
       2,   14, // methods
       0,    0, // properties
       1,   30, // enums/sets
       0,    0, // constructors
       0,       // flags
       1,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   24,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       5,    1,   27,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,

 // slots: parameters
    QMetaType::Void, QMetaType::QVariantMap,    6,

 // enums: name, alias, flags, count, data
       7,    7, 0x0,    8,   35,

 // enum data: key, value
       8, uint(UkuiMenu::GlobalSetting::UnKnowKey),
       9, uint(UkuiMenu::GlobalSetting::StyleName),
      10, uint(UkuiMenu::GlobalSetting::ThemeColor),
      11, uint(UkuiMenu::GlobalSetting::IconThemeName),
      12, uint(UkuiMenu::GlobalSetting::Transparency),
      13, uint(UkuiMenu::GlobalSetting::EffectEnabled),
      14, uint(UkuiMenu::GlobalSetting::SystemFontSize),
      15, uint(UkuiMenu::GlobalSetting::IsLiteMode),

       0        // eod
};

void UkuiMenu::GlobalSetting::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<GlobalSetting *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->styleChanged((*reinterpret_cast< const GlobalSetting::Key(*)>(_a[1]))); break;
        case 1: _t->onSysModeChanged((*reinterpret_cast< QMap<QString,QVariant>(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (GlobalSetting::*)(const GlobalSetting::Key & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GlobalSetting::styleChanged)) {
                *result = 0;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject UkuiMenu::GlobalSetting::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_UkuiMenu__GlobalSetting.data,
    qt_meta_data_UkuiMenu__GlobalSetting,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *UkuiMenu::GlobalSetting::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_UkuiMenu__GlobalSetting.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int UkuiMenu::GlobalSetting::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 < 2)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 2)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 2;
    }
    return _id;
}

// SIGNAL 0
void UkuiMenu::GlobalSetting::styleChanged(const GlobalSetting::Key & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
struct qt_meta_stringdata_UkuiMenu__MenuSetting_t {
    QByteArrayData data[8];
    char stringdata0[61];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_UkuiMenu__MenuSetting_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_UkuiMenu__MenuSetting_t qt_meta_stringdata_UkuiMenu__MenuSetting = {
    {
QT_MOC_LITERAL(0, 0, 21), // "UkuiMenu::MenuSetting"
QT_MOC_LITERAL(1, 22, 7), // "changed"
QT_MOC_LITERAL(2, 30, 0), // ""
QT_MOC_LITERAL(3, 31, 3), // "key"
QT_MOC_LITERAL(4, 35, 11), // "updateValue"
QT_MOC_LITERAL(5, 47, 3), // "get"
QT_MOC_LITERAL(6, 51, 3), // "set"
QT_MOC_LITERAL(7, 55, 5) // "value"

    },
    "UkuiMenu::MenuSetting\0changed\0\0key\0"
    "updateValue\0get\0set\0value"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_UkuiMenu__MenuSetting[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
       4,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       1,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   34,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       4,    1,   37,    2, 0x08 /* Private */,

 // methods: name, argc, parameters, tag, flags
       5,    1,   40,    2, 0x02 /* Public */,
       6,    2,   43,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::QString,    3,

 // slots: parameters
    QMetaType::Void, QMetaType::QString,    3,

 // methods: parameters
    QMetaType::QVariant, QMetaType::QString,    3,
    QMetaType::Bool, QMetaType::QString, QMetaType::QVariant,    3,    7,

       0        // eod
};

void UkuiMenu::MenuSetting::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<MenuSetting *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->changed((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 1: _t->updateValue((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 2: { QVariant _r = _t->get((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = std::move(_r); }  break;
        case 3: { bool _r = _t->set((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QVariant(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (MenuSetting::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MenuSetting::changed)) {
                *result = 0;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject UkuiMenu::MenuSetting::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_UkuiMenu__MenuSetting.data,
    qt_meta_data_UkuiMenu__MenuSetting,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *UkuiMenu::MenuSetting::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_UkuiMenu__MenuSetting.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int UkuiMenu::MenuSetting::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 < 4)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 4)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 4;
    }
    return _id;
}

// SIGNAL 0
void UkuiMenu::MenuSetting::changed(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
