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

template <> constexpr inline auto QtBindings::Core::Resource::qt_create_metaobjectdata<qt_meta_tag_ZN10QtBindings4Core8ResourceE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QtBindings::Core::Resource",
        "absoluteFilePath",
        "",
        "data",
        "const uchar*",
        "fileName",
        "compressionAlgorithm",
        "QResource::Compression",
        "isValid",
        "lastModified",
        "locale",
        "setFileName",
        "file",
        "setLocale",
        "size",
        "registerResource",
        "rccFilename",
        "resourceRoot",
        "rccData",
        "unregisterResource",
        "Resource",
        "resource"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'absoluteFilePath'
        QtMocHelpers::SlotData<QString() const>(1, 2, QMC::AccessPublic, QMetaType::QString),
        // Slot 'data'
        QtMocHelpers::SlotData<const uchar *() const>(3, 2, QMC::AccessPublic, 0x80000000 | 4),
        // Slot 'fileName'
        QtMocHelpers::SlotData<QString() const>(5, 2, QMC::AccessPublic, QMetaType::QString),
        // Slot 'compressionAlgorithm'
        QtMocHelpers::SlotData<QResource::Compression() const>(6, 2, QMC::AccessPublic, 0x80000000 | 7),
        // Slot 'isValid'
        QtMocHelpers::SlotData<bool() const>(8, 2, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'lastModified'
        QtMocHelpers::SlotData<QDateTime() const>(9, 2, QMC::AccessPublic, QMetaType::QDateTime),
        // Slot 'locale'
        QtMocHelpers::SlotData<QLocale() const>(10, 2, QMC::AccessPublic, QMetaType::QLocale),
        // Slot 'setFileName'
        QtMocHelpers::SlotData<void(const QString &)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 12 },
        }}),
        // Slot 'setLocale'
        QtMocHelpers::SlotData<void(const QLocale &)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QLocale, 10 },
        }}),
        // Slot 'size'
        QtMocHelpers::SlotData<qint64() const>(14, 2, QMC::AccessPublic, QMetaType::LongLong),
        // Method 'registerResource'
        QtMocHelpers::MethodData<bool(const QString &, const QString &)>(15, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 16 }, { QMetaType::QString, 17 },
        }}),
        // Method 'registerResource'
        QtMocHelpers::MethodData<bool(const QString &)>(15, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { QMetaType::QString, 16 },
        }}),
        // Method 'registerResource'
        QtMocHelpers::MethodData<bool(const uchar *, const QString &)>(15, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 4, 18 }, { QMetaType::QString, 17 },
        }}),
        // Method 'registerResource'
        QtMocHelpers::MethodData<bool(const uchar *)>(15, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { 0x80000000 | 4, 18 },
        }}),
        // Method 'unregisterResource'
        QtMocHelpers::MethodData<bool(const QString &, const QString &)>(19, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 16 }, { QMetaType::QString, 17 },
        }}),
        // Method 'unregisterResource'
        QtMocHelpers::MethodData<bool(const QString &)>(19, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { QMetaType::QString, 16 },
        }}),
        // Method 'unregisterResource'
        QtMocHelpers::MethodData<bool(const uchar *, const QString &)>(19, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 4, 18 }, { QMetaType::QString, 17 },
        }}),
        // Method 'unregisterResource'
        QtMocHelpers::MethodData<bool(const uchar *)>(19, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { 0x80000000 | 4, 18 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    using Constructor = QtMocHelpers::NoType;
    QtMocHelpers::UintData qt_constructors {
        QtMocHelpers::ConstructorData<Constructor(const QString &, const QLocale &)>(2, QMC::AccessPublic, {{
            { QMetaType::QString, 12 }, { QMetaType::QLocale, 10 },
        }}),
        QtMocHelpers::ConstructorData<Constructor(const QString &)>(2, QMC::AccessPublic | QMC::MethodCloned, {{
            { QMetaType::QString, 12 },
        }}),
        QtMocHelpers::ConstructorData<Constructor()>(2, QMC::AccessPublic | QMC::MethodCloned),
        QtMocHelpers::ConstructorData<Constructor(const Resource &)>(2, QMC::AccessPublic, {{
            { 0x80000000 | 20, 21 },
        }}),
    };
    return QtMocHelpers::metaObjectData<Resource, qt_meta_tag_ZN10QtBindings4Core8ResourceE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors);
}
Q_CONSTINIT const QMetaObject QtBindings::Core::Resource::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QtBindings4Core8ResourceE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QtBindings4Core8ResourceE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10QtBindings4Core8ResourceE_t>.metaTypes,
    nullptr
} };

void QtBindings::Core::Resource::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Resource *>(_o);
    if (_c == QMetaObject::CreateInstance) {
        switch (_id) {
        case 0: { Resource *_r = new Resource((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QLocale>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        case 1: { Resource *_r = new Resource((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        case 2: { Resource *_r = new Resource();
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        case 3: { Resource *_r = new Resource((*reinterpret_cast<std::add_pointer_t<Resource>>(_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]) Resource((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QLocale>>(_a[2]))); } break;
        case 1: { new (_a[0]) Resource((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); } break;
        case 2: { new (_a[0]) Resource(); } break;
        case 3: { new (_a[0]) Resource((*reinterpret_cast<std::add_pointer_t<Resource>>(_a[1]))); } break;
        default: break;
        }
    }
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { QString _r = _t->absoluteFilePath();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 1: { const uchar* _r = _t->data();
            if (_a[0]) *reinterpret_cast<const uchar**>(_a[0]) = std::move(_r); }  break;
        case 2: { QString _r = _t->fileName();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 3: { QResource::Compression _r = _t->compressionAlgorithm();
            if (_a[0]) *reinterpret_cast<QResource::Compression*>(_a[0]) = std::move(_r); }  break;
        case 4: { bool _r = _t->isValid();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 5: { QDateTime _r = _t->lastModified();
            if (_a[0]) *reinterpret_cast<QDateTime*>(_a[0]) = std::move(_r); }  break;
        case 6: { QLocale _r = _t->locale();
            if (_a[0]) *reinterpret_cast<QLocale*>(_a[0]) = std::move(_r); }  break;
        case 7: _t->setFileName((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 8: _t->setLocale((*reinterpret_cast<std::add_pointer_t<QLocale>>(_a[1]))); break;
        case 9: { qint64 _r = _t->size();
            if (_a[0]) *reinterpret_cast<qint64*>(_a[0]) = std::move(_r); }  break;
        case 10: { bool _r = _t->registerResource((*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 11: { bool _r = _t->registerResource((*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->registerResource((*reinterpret_cast<std::add_pointer_t<const uchar*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 13: { bool _r = _t->registerResource((*reinterpret_cast<std::add_pointer_t<const uchar*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 14: { bool _r = _t->unregisterResource((*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 15: { bool _r = _t->unregisterResource((*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->unregisterResource((*reinterpret_cast<std::add_pointer_t<const uchar*>>(_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->unregisterResource((*reinterpret_cast<std::add_pointer_t<const uchar*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
}

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

void *QtBindings::Core::Resource::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QtBindings4Core8ResourceE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QResource"))
        return static_cast< QResource*>(this);
    if (!strcmp(_clname, "QtBindings::Base<Resource>"))
        return static_cast< QtBindings::Base<Resource>*>(this);
    return QObject::qt_metacast(_clname);
}

int QtBindings::Core::Resource::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 < 18)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 18;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 18)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 18;
    }
    return _id;
}
QT_WARNING_POP
