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

#include "../../../../../contour/src/contour/window/SettingsController.hpp"
#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 'SettingsController.hpp' 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_ZN7contour6window18SettingsControllerE_t {};
} // unnamed namespace

template <> constexpr inline auto contour::window::SettingsController::qt_create_metaobjectdata<qt_meta_tag_ZN7contour6window18SettingsControllerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "contour::window::SettingsController",
        "QML.Element",
        "auto",
        "QML.Creatable",
        "false",
        "QML.UncreatableReason",
        "Created by the WindowController",
        "changed",
        "",
        "draftChanged",
        "schemeDraftChanged",
        "editingSchemeChanged",
        "errorOccurred",
        "message",
        "refresh",
        "editProfile",
        "name",
        "newProfile",
        "basedOn",
        "setProfileField",
        "key",
        "QVariant",
        "value",
        "setColorSchemeMode",
        "mode",
        "setColorScheme",
        "setColorSchemeLight",
        "setColorSchemeDark",
        "saveProfile",
        "saveProfileAs",
        "newName",
        "deleteProfile",
        "renameProfile",
        "oldName",
        "setDefaultProfile",
        "parseIndicatorSegment",
        "QVariantList",
        "templateStr",
        "serializeIndicatorSegment",
        "items",
        "indicatorPlaceholders",
        "indicatorFlags",
        "indicatorSegment",
        "segmentIndex",
        "setIndicatorSegment",
        "setGlobalField",
        "resetGlobalField",
        "editColorScheme",
        "newColorScheme",
        "setSchemeColor",
        "color",
        "saveColorScheme",
        "deleteColorScheme",
        "renameColorScheme",
        "locked",
        "profiles",
        "colorSchemes",
        "defaultProfile",
        "keybindings",
        "globalFields",
        "profileFields",
        "editingProfile",
        "editingReadOnly",
        "colorSchemeMode",
        "colorScheme",
        "colorSchemeLight",
        "colorSchemeDark",
        "schemeColors",
        "editingScheme"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'changed'
        QtMocHelpers::SignalData<void()>(7, 8, QMC::AccessPublic, QMetaType::Void),
        // Signal 'draftChanged'
        QtMocHelpers::SignalData<void()>(9, 8, QMC::AccessPublic, QMetaType::Void),
        // Signal 'schemeDraftChanged'
        QtMocHelpers::SignalData<void()>(10, 8, QMC::AccessPublic, QMetaType::Void),
        // Signal 'editingSchemeChanged'
        QtMocHelpers::SignalData<void()>(11, 8, QMC::AccessPublic, QMetaType::Void),
        // Signal 'errorOccurred'
        QtMocHelpers::SignalData<void(QString const &)>(12, 8, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 13 },
        }}),
        // Method 'refresh'
        QtMocHelpers::MethodData<void()>(14, 8, QMC::AccessPublic, QMetaType::Void),
        // Method 'editProfile'
        QtMocHelpers::MethodData<void(QString const &)>(15, 8, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 16 },
        }}),
        // Method 'newProfile'
        QtMocHelpers::MethodData<void(QString const &)>(17, 8, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 18 },
        }}),
        // Method 'setProfileField'
        QtMocHelpers::MethodData<void(QString const &, QVariant const &)>(19, 8, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 20 }, { 0x80000000 | 21, 22 },
        }}),
        // Method 'setColorSchemeMode'
        QtMocHelpers::MethodData<void(QString const &)>(23, 8, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 24 },
        }}),
        // Method 'setColorScheme'
        QtMocHelpers::MethodData<void(QString const &)>(25, 8, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 16 },
        }}),
        // Method 'setColorSchemeLight'
        QtMocHelpers::MethodData<void(QString const &)>(26, 8, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 16 },
        }}),
        // Method 'setColorSchemeDark'
        QtMocHelpers::MethodData<void(QString const &)>(27, 8, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 16 },
        }}),
        // Method 'saveProfile'
        QtMocHelpers::MethodData<bool()>(28, 8, QMC::AccessPublic, QMetaType::Bool),
        // Method 'saveProfileAs'
        QtMocHelpers::MethodData<bool(QString const &)>(29, 8, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 30 },
        }}),
        // Method 'deleteProfile'
        QtMocHelpers::MethodData<bool(QString const &)>(31, 8, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 16 },
        }}),
        // Method 'renameProfile'
        QtMocHelpers::MethodData<bool(QString const &, QString const &)>(32, 8, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 33 }, { QMetaType::QString, 30 },
        }}),
        // Method 'setDefaultProfile'
        QtMocHelpers::MethodData<bool(QString const &)>(34, 8, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 16 },
        }}),
        // Method 'parseIndicatorSegment'
        QtMocHelpers::MethodData<QVariantList(QString const &) const>(35, 8, QMC::AccessPublic, 0x80000000 | 36, {{
            { QMetaType::QString, 37 },
        }}),
        // Method 'serializeIndicatorSegment'
        QtMocHelpers::MethodData<QString(QVariantList const &) const>(38, 8, QMC::AccessPublic, QMetaType::QString, {{
            { 0x80000000 | 36, 39 },
        }}),
        // Method 'indicatorPlaceholders'
        QtMocHelpers::MethodData<QVariantList() const>(40, 8, QMC::AccessPublic, 0x80000000 | 36),
        // Method 'indicatorFlags'
        QtMocHelpers::MethodData<QVariantList() const>(41, 8, QMC::AccessPublic, 0x80000000 | 36),
        // Method 'indicatorSegment'
        QtMocHelpers::MethodData<QString(int) const>(42, 8, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::Int, 43 },
        }}),
        // Method 'setIndicatorSegment'
        QtMocHelpers::MethodData<void(int, QString const &)>(44, 8, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 43 }, { QMetaType::QString, 22 },
        }}),
        // Method 'setGlobalField'
        QtMocHelpers::MethodData<bool(QString const &, QVariant const &)>(45, 8, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 20 }, { 0x80000000 | 21, 22 },
        }}),
        // Method 'resetGlobalField'
        QtMocHelpers::MethodData<bool(QString const &)>(46, 8, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 20 },
        }}),
        // Method 'editColorScheme'
        QtMocHelpers::MethodData<void(QString const &)>(47, 8, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 16 },
        }}),
        // Method 'newColorScheme'
        QtMocHelpers::MethodData<void(QString const &)>(48, 8, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 18 },
        }}),
        // Method 'setSchemeColor'
        QtMocHelpers::MethodData<void(QString const &, QString const &)>(49, 8, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 20 }, { QMetaType::QString, 50 },
        }}),
        // Method 'saveColorScheme'
        QtMocHelpers::MethodData<bool(QString const &)>(51, 8, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 16 },
        }}),
        // Method 'deleteColorScheme'
        QtMocHelpers::MethodData<bool(QString const &)>(52, 8, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 16 },
        }}),
        // Method 'renameColorScheme'
        QtMocHelpers::MethodData<bool(QString const &, QString const &)>(53, 8, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 33 }, { QMetaType::QString, 30 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'locked'
        QtMocHelpers::PropertyData<bool>(54, QMetaType::Bool, QMC::DefaultPropertyFlags, 0),
        // property 'profiles'
        QtMocHelpers::PropertyData<QVariantList>(55, 0x80000000 | 36, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 0),
        // property 'colorSchemes'
        QtMocHelpers::PropertyData<QVariantList>(56, 0x80000000 | 36, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 0),
        // property 'defaultProfile'
        QtMocHelpers::PropertyData<QString>(57, QMetaType::QString, QMC::DefaultPropertyFlags, 0),
        // property 'keybindings'
        QtMocHelpers::PropertyData<QVariantList>(58, 0x80000000 | 36, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 0),
        // property 'globalFields'
        QtMocHelpers::PropertyData<QVariantList>(59, 0x80000000 | 36, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 0),
        // property 'profileFields'
        QtMocHelpers::PropertyData<QVariantList>(60, 0x80000000 | 36, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 1),
        // property 'editingProfile'
        QtMocHelpers::PropertyData<QString>(61, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'editingReadOnly'
        QtMocHelpers::PropertyData<bool>(62, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
        // property 'colorSchemeMode'
        QtMocHelpers::PropertyData<QString>(63, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'colorScheme'
        QtMocHelpers::PropertyData<QString>(64, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'colorSchemeLight'
        QtMocHelpers::PropertyData<QString>(65, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'colorSchemeDark'
        QtMocHelpers::PropertyData<QString>(66, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'schemeColors'
        QtMocHelpers::PropertyData<QVariantList>(67, 0x80000000 | 36, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 2),
        // property 'editingScheme'
        QtMocHelpers::PropertyData<QString>(68, QMetaType::QString, QMC::DefaultPropertyFlags, 3),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
            {    5,    6 },
    });
    return QtMocHelpers::metaObjectData<SettingsController, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject contour::window::SettingsController::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7contour6window18SettingsControllerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7contour6window18SettingsControllerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN7contour6window18SettingsControllerE_t>.metaTypes,
    nullptr
} };

void contour::window::SettingsController::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SettingsController *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->changed(); break;
        case 1: _t->draftChanged(); break;
        case 2: _t->schemeDraftChanged(); break;
        case 3: _t->editingSchemeChanged(); break;
        case 4: _t->errorOccurred((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: _t->refresh(); break;
        case 6: _t->editProfile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 7: _t->newProfile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 8: _t->setProfileField((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[2]))); break;
        case 9: _t->setColorSchemeMode((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 10: _t->setColorScheme((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 11: _t->setColorSchemeLight((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 12: _t->setColorSchemeDark((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 13: { bool _r = _t->saveProfile();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 14: { bool _r = _t->saveProfileAs((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 15: { bool _r = _t->deleteProfile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 16: { bool _r = _t->renameProfile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 17: { bool _r = _t->setDefaultProfile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 18: { QVariantList _r = _t->parseIndicatorSegment((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariantList*>(_a[0]) = std::move(_r); }  break;
        case 19: { QString _r = _t->serializeIndicatorSegment((*reinterpret_cast<std::add_pointer_t<QVariantList>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 20: { QVariantList _r = _t->indicatorPlaceholders();
            if (_a[0]) *reinterpret_cast<QVariantList*>(_a[0]) = std::move(_r); }  break;
        case 21: { QVariantList _r = _t->indicatorFlags();
            if (_a[0]) *reinterpret_cast<QVariantList*>(_a[0]) = std::move(_r); }  break;
        case 22: { QString _r = _t->indicatorSegment((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 23: _t->setIndicatorSegment((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 24: { bool _r = _t->setGlobalField((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 25: { bool _r = _t->resetGlobalField((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 26: _t->editColorScheme((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 27: _t->newColorScheme((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 28: _t->setSchemeColor((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 29: { bool _r = _t->saveColorScheme((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 30: { bool _r = _t->deleteColorScheme((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 31: { bool _r = _t->renameColorScheme((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (SettingsController::*)()>(_a, &SettingsController::changed, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (SettingsController::*)()>(_a, &SettingsController::draftChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (SettingsController::*)()>(_a, &SettingsController::schemeDraftChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (SettingsController::*)()>(_a, &SettingsController::editingSchemeChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (SettingsController::*)(QString const & )>(_a, &SettingsController::errorOccurred, 4))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->locked(); break;
        case 1: *reinterpret_cast<QVariantList*>(_v) = _t->profiles(); break;
        case 2: *reinterpret_cast<QVariantList*>(_v) = _t->colorSchemes(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->defaultProfile(); break;
        case 4: *reinterpret_cast<QVariantList*>(_v) = _t->keybindings(); break;
        case 5: *reinterpret_cast<QVariantList*>(_v) = _t->globalFields(); break;
        case 6: *reinterpret_cast<QVariantList*>(_v) = _t->profileFields(); break;
        case 7: *reinterpret_cast<QString*>(_v) = _t->editingProfile(); break;
        case 8: *reinterpret_cast<bool*>(_v) = _t->editingReadOnly(); break;
        case 9: *reinterpret_cast<QString*>(_v) = _t->colorSchemeMode(); break;
        case 10: *reinterpret_cast<QString*>(_v) = _t->colorScheme(); break;
        case 11: *reinterpret_cast<QString*>(_v) = _t->colorSchemeLight(); break;
        case 12: *reinterpret_cast<QString*>(_v) = _t->colorSchemeDark(); break;
        case 13: *reinterpret_cast<QVariantList*>(_v) = _t->schemeColors(); break;
        case 14: *reinterpret_cast<QString*>(_v) = _t->editingScheme(); break;
        default: break;
        }
    }
}

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

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

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

// SIGNAL 0
void contour::window::SettingsController::changed()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void contour::window::SettingsController::draftChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void contour::window::SettingsController::schemeDraftChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void contour::window::SettingsController::editingSchemeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void contour::window::SettingsController::errorOccurred(QString const & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
