/****************************************************************************
** Meta object code from reading C++ file 'UiToolsUiLoader.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 "../../../../amarok-3.3.3/src/scripting/scriptengine/qtbindings/UiToolsUiLoader.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 'UiToolsUiLoader.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_ZN10QtBindings7UiTools8UiLoaderE_t {};
} // unnamed namespace

template <> constexpr inline auto QtBindings::UiTools::UiLoader::qt_create_metaobjectdata<qt_meta_tag_ZN10QtBindings7UiTools8UiLoaderE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QtBindings::UiTools::UiLoader",
        "addPluginPath",
        "",
        "path",
        "availableLayouts",
        "availableWidgets",
        "clearPluginPaths",
        "createAction",
        "QAction*",
        "parent",
        "name",
        "createActionGroup",
        "QActionGroup*",
        "createLayout",
        "QLayout*",
        "className",
        "createWidget",
        "QWidget*",
        "errorString",
        "isLanguageChangeEnabled",
        "load",
        "QJSValue",
        "QFile*",
        "device",
        "parentWidget",
        "pluginPaths",
        "setLanguageChangeEnabled",
        "enabled",
        "setWorkingDirectory",
        "QDir",
        "dir",
        "workingDirectory",
        "UiLoader",
        "other"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'addPluginPath'
        QtMocHelpers::SlotData<void(const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Slot 'availableLayouts'
        QtMocHelpers::SlotData<QStringList() const>(4, 2, QMC::AccessPublic, QMetaType::QStringList),
        // Slot 'availableWidgets'
        QtMocHelpers::SlotData<QStringList() const>(5, 2, QMC::AccessPublic, QMetaType::QStringList),
        // Slot 'clearPluginPaths'
        QtMocHelpers::SlotData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'createAction'
        QtMocHelpers::SlotData<QAction *(QObject *, const QString &)>(7, 2, QMC::AccessPublic, 0x80000000 | 8, {{
            { QMetaType::QObjectStar, 9 }, { QMetaType::QString, 10 },
        }}),
        // Slot 'createAction'
        QtMocHelpers::SlotData<QAction *(QObject *)>(7, 2, QMC::AccessPublic | QMC::MethodCloned, 0x80000000 | 8, {{
            { QMetaType::QObjectStar, 9 },
        }}),
        // Slot 'createAction'
        QtMocHelpers::SlotData<QAction *()>(7, 2, QMC::AccessPublic | QMC::MethodCloned, 0x80000000 | 8),
        // Slot 'createActionGroup'
        QtMocHelpers::SlotData<QActionGroup *(QObject *, const QString &)>(11, 2, QMC::AccessPublic, 0x80000000 | 12, {{
            { QMetaType::QObjectStar, 9 }, { QMetaType::QString, 10 },
        }}),
        // Slot 'createActionGroup'
        QtMocHelpers::SlotData<QActionGroup *(QObject *)>(11, 2, QMC::AccessPublic | QMC::MethodCloned, 0x80000000 | 12, {{
            { QMetaType::QObjectStar, 9 },
        }}),
        // Slot 'createActionGroup'
        QtMocHelpers::SlotData<QActionGroup *()>(11, 2, QMC::AccessPublic | QMC::MethodCloned, 0x80000000 | 12),
        // Slot 'createLayout'
        QtMocHelpers::SlotData<QLayout *(const QString &, QObject *, const QString &)>(13, 2, QMC::AccessPublic, 0x80000000 | 14, {{
            { QMetaType::QString, 15 }, { QMetaType::QObjectStar, 9 }, { QMetaType::QString, 10 },
        }}),
        // Slot 'createLayout'
        QtMocHelpers::SlotData<QLayout *(const QString &, QObject *)>(13, 2, QMC::AccessPublic | QMC::MethodCloned, 0x80000000 | 14, {{
            { QMetaType::QString, 15 }, { QMetaType::QObjectStar, 9 },
        }}),
        // Slot 'createLayout'
        QtMocHelpers::SlotData<QLayout *(const QString &)>(13, 2, QMC::AccessPublic | QMC::MethodCloned, 0x80000000 | 14, {{
            { QMetaType::QString, 15 },
        }}),
        // Slot 'createWidget'
        QtMocHelpers::SlotData<QWidget *(const QString &, QWidget *, const QString &)>(16, 2, QMC::AccessPublic, 0x80000000 | 17, {{
            { QMetaType::QString, 15 }, { 0x80000000 | 17, 9 }, { QMetaType::QString, 10 },
        }}),
        // Slot 'createWidget'
        QtMocHelpers::SlotData<QWidget *(const QString &, QWidget *)>(16, 2, QMC::AccessPublic | QMC::MethodCloned, 0x80000000 | 17, {{
            { QMetaType::QString, 15 }, { 0x80000000 | 17, 9 },
        }}),
        // Slot 'createWidget'
        QtMocHelpers::SlotData<QWidget *(const QString &)>(16, 2, QMC::AccessPublic | QMC::MethodCloned, 0x80000000 | 17, {{
            { QMetaType::QString, 15 },
        }}),
        // Slot 'errorString'
        QtMocHelpers::SlotData<QString() const>(18, 2, QMC::AccessPublic, QMetaType::QString),
        // Slot 'isLanguageChangeEnabled'
        QtMocHelpers::SlotData<bool() const>(19, 2, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'load'
        QtMocHelpers::SlotData<QJSValue(QFile *, QJSValue)>(20, 2, QMC::AccessPublic, 0x80000000 | 21, {{
            { 0x80000000 | 22, 23 }, { 0x80000000 | 21, 24 },
        }}),
        // Slot 'pluginPaths'
        QtMocHelpers::SlotData<QStringList() const>(25, 2, QMC::AccessPublic, QMetaType::QStringList),
        // Slot 'setLanguageChangeEnabled'
        QtMocHelpers::SlotData<void(bool)>(26, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 27 },
        }}),
        // Slot 'setWorkingDirectory'
        QtMocHelpers::SlotData<void(const QDir &)>(28, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 29, 30 },
        }}),
        // Slot 'workingDirectory'
        QtMocHelpers::SlotData<QDir() const>(31, 2, QMC::AccessPublic, 0x80000000 | 29),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    using Constructor = QtMocHelpers::NoType;
    QtMocHelpers::UintData qt_constructors {
        QtMocHelpers::ConstructorData<Constructor(QObject *)>(2, QMC::AccessPublic, {{
            { QMetaType::QObjectStar, 9 },
        }}),
        QtMocHelpers::ConstructorData<Constructor()>(2, QMC::AccessPublic | QMC::MethodCloned),
        QtMocHelpers::ConstructorData<Constructor(const UiLoader &)>(2, QMC::AccessPublic, {{
            { 0x80000000 | 32, 33 },
        }}),
        QtMocHelpers::ConstructorData<Constructor(const QJSValue &)>(2, QMC::AccessPublic, {{
            { 0x80000000 | 21, 33 },
        }}),
    };
    return QtMocHelpers::metaObjectData<UiLoader, qt_meta_tag_ZN10QtBindings7UiTools8UiLoaderE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors);
}
Q_CONSTINIT const QMetaObject QtBindings::UiTools::UiLoader::staticMetaObject = { {
    QMetaObject::SuperData::link<QUiLoader::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QtBindings7UiTools8UiLoaderE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QtBindings7UiTools8UiLoaderE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10QtBindings7UiTools8UiLoaderE_t>.metaTypes,
    nullptr
} };

void QtBindings::UiTools::UiLoader::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<UiLoader *>(_o);
    if (_c == QMetaObject::CreateInstance) {
        switch (_id) {
        case 0: { UiLoader *_r = new UiLoader((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        case 1: { UiLoader *_r = new UiLoader();
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        case 2: { UiLoader *_r = new UiLoader((*reinterpret_cast<std::add_pointer_t<UiLoader>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        case 3: { UiLoader *_r = new UiLoader((*reinterpret_cast<std::add_pointer_t<QJSValue>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        default: break;
        }
    }
    if (_c == QMetaObject::ConstructInPlace) {
        switch (_id) {
        case 0: { new (_a[0]) UiLoader((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1]))); } break;
        case 1: { new (_a[0]) UiLoader(); } break;
        case 2: { new (_a[0]) UiLoader((*reinterpret_cast<std::add_pointer_t<UiLoader>>(_a[1]))); } break;
        case 3: { new (_a[0]) UiLoader((*reinterpret_cast<std::add_pointer_t<QJSValue>>(_a[1]))); } break;
        default: break;
        }
    }
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->addPluginPath((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: { QStringList _r = _t->availableLayouts();
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 2: { QStringList _r = _t->availableWidgets();
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 3: _t->clearPluginPaths(); break;
        case 4: { QAction* _r = _t->createAction((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QAction**>(_a[0]) = std::move(_r); }  break;
        case 5: { QAction* _r = _t->createAction((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QAction**>(_a[0]) = std::move(_r); }  break;
        case 6: { QAction* _r = _t->createAction();
            if (_a[0]) *reinterpret_cast<QAction**>(_a[0]) = std::move(_r); }  break;
        case 7: { QActionGroup* _r = _t->createActionGroup((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QActionGroup**>(_a[0]) = std::move(_r); }  break;
        case 8: { QActionGroup* _r = _t->createActionGroup((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QActionGroup**>(_a[0]) = std::move(_r); }  break;
        case 9: { QActionGroup* _r = _t->createActionGroup();
            if (_a[0]) *reinterpret_cast<QActionGroup**>(_a[0]) = std::move(_r); }  break;
        case 10: { QLayout* _r = _t->createLayout((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])));
            if (_a[0]) *reinterpret_cast<QLayout**>(_a[0]) = std::move(_r); }  break;
        case 11: { QLayout* _r = _t->createLayout((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QLayout**>(_a[0]) = std::move(_r); }  break;
        case 12: { QLayout* _r = _t->createLayout((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QLayout**>(_a[0]) = std::move(_r); }  break;
        case 13: { QWidget* _r = _t->createWidget((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QWidget*>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])));
            if (_a[0]) *reinterpret_cast<QWidget**>(_a[0]) = std::move(_r); }  break;
        case 14: { QWidget* _r = _t->createWidget((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QWidget*>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QWidget**>(_a[0]) = std::move(_r); }  break;
        case 15: { QWidget* _r = _t->createWidget((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QWidget**>(_a[0]) = std::move(_r); }  break;
        case 16: { QString _r = _t->errorString();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 17: { bool _r = _t->isLanguageChangeEnabled();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 18: { QJSValue _r = _t->load((*reinterpret_cast<std::add_pointer_t<QFile*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QJSValue>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QJSValue*>(_a[0]) = std::move(_r); }  break;
        case 19: { QStringList _r = _t->pluginPaths();
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 20: _t->setLanguageChangeEnabled((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 21: _t->setWorkingDirectory((*reinterpret_cast<std::add_pointer_t<QDir>>(_a[1]))); break;
        case 22: { QDir _r = _t->workingDirectory();
            if (_a[0]) *reinterpret_cast<QDir*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 18:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QFile* >(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QJSValue >(); break;
            }
            break;
        }
    }
}

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

void *QtBindings::UiTools::UiLoader::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QtBindings7UiTools8UiLoaderE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QtBindings::Base<UiLoader>"))
        return static_cast< QtBindings::Base<UiLoader>*>(this);
    return QUiLoader::qt_metacast(_clname);
}

int QtBindings::UiTools::UiLoader::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QUiLoader::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 23)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 23;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 23)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 23;
    }
    return _id;
}
QT_WARNING_POP
