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

template <> constexpr inline auto QtBindings::Core::File::qt_create_metaobjectdata<qt_meta_tag_ZN10QtBindings4Core4FileE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QtBindings::Core::File",
        "close",
        "",
        "copy",
        "newName",
        "exists",
        "fileName",
        "link",
        "linkName",
        "open",
        "QtBindings::Core::IODevice::OpenModeFlag",
        "mode",
        "permissions",
        "QFileDevice::Permissions",
        "remove",
        "rename",
        "resize",
        "sz",
        "setFileName",
        "name",
        "setPermissions",
        "size",
        "symLinkTarget",
        "decodeName",
        "const char*",
        "localFileName",
        "encodeName",
        "oldName",
        "File",
        "file",
        "parent"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'close'
        QtMocHelpers::SlotData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'copy'
        QtMocHelpers::SlotData<bool(const QString &)>(3, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 4 },
        }}),
        // Slot 'exists'
        QtMocHelpers::SlotData<bool() const>(5, 2, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'fileName'
        QtMocHelpers::SlotData<QString() const>(6, 2, QMC::AccessPublic, QMetaType::QString),
        // Slot 'link'
        QtMocHelpers::SlotData<bool(const QString &)>(7, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 8 },
        }}),
        // Slot 'open'
        QtMocHelpers::SlotData<bool(QtBindings::Core::IODevice::OpenModeFlag)>(9, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Slot 'permissions'
        QtMocHelpers::SlotData<QFileDevice::Permissions() const>(12, 2, QMC::AccessPublic, 0x80000000 | 13),
        // Slot 'remove'
        QtMocHelpers::SlotData<bool()>(14, 2, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'rename'
        QtMocHelpers::SlotData<bool(const QString &)>(15, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 4 },
        }}),
        // Slot 'resize'
        QtMocHelpers::SlotData<bool(qint64)>(16, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::LongLong, 17 },
        }}),
        // Slot 'setFileName'
        QtMocHelpers::SlotData<void(const QString &)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 19 },
        }}),
        // Slot 'setPermissions'
        QtMocHelpers::SlotData<bool(QFileDevice::Permissions)>(20, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 13, 12 },
        }}),
        // Slot 'size'
        QtMocHelpers::SlotData<qint64() const>(21, 2, QMC::AccessPublic, QMetaType::LongLong),
        // Slot 'symLinkTarget'
        QtMocHelpers::SlotData<QString() const>(22, 2, QMC::AccessPublic, QMetaType::QString),
        // Method 'copy'
        QtMocHelpers::MethodData<bool(const QString &, const QString &)>(3, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 6 }, { QMetaType::QString, 4 },
        }}),
        // Method 'decodeName'
        QtMocHelpers::MethodData<QString(const char *)>(23, 2, QMC::AccessPublic, QMetaType::QString, {{
            { 0x80000000 | 24, 25 },
        }}),
        // Method 'decodeName'
        QtMocHelpers::MethodData<QString(const QByteArray &)>(23, 2, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QByteArray, 25 },
        }}),
        // Method 'encodeName'
        QtMocHelpers::MethodData<QByteArray(const QString &)>(26, 2, QMC::AccessPublic, QMetaType::QByteArray, {{
            { QMetaType::QString, 6 },
        }}),
        // Method 'exists'
        QtMocHelpers::MethodData<bool(const QString &)>(5, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 6 },
        }}),
        // Method 'link'
        QtMocHelpers::MethodData<bool(const QString &, const QString &)>(7, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 6 }, { QMetaType::QString, 8 },
        }}),
        // Method 'permissions'
        QtMocHelpers::MethodData<QFileDevice::Permissions(const QString &)>(12, 2, QMC::AccessPublic, 0x80000000 | 13, {{
            { QMetaType::QString, 6 },
        }}),
        // Method 'remove'
        QtMocHelpers::MethodData<bool(const QString &)>(14, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 6 },
        }}),
        // Method 'rename'
        QtMocHelpers::MethodData<bool(const QString &, const QString &)>(15, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 27 }, { QMetaType::QString, 4 },
        }}),
        // Method 'resize'
        QtMocHelpers::MethodData<bool(const QString &, qint64)>(16, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 6 }, { QMetaType::LongLong, 17 },
        }}),
        // Method 'setPermissions'
        QtMocHelpers::MethodData<bool(const QString &, QFileDevice::Permissions)>(20, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 6 }, { 0x80000000 | 13, 12 },
        }}),
        // Method 'symLinkTarget'
        QtMocHelpers::MethodData<QString(const QString &)>(22, 2, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 6 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    using Constructor = QtMocHelpers::NoType;
    QtMocHelpers::UintData qt_constructors {
        QtMocHelpers::ConstructorData<Constructor()>(2, QMC::AccessPublic),
        QtMocHelpers::ConstructorData<Constructor(const File &)>(2, QMC::AccessPublic, {{
            { 0x80000000 | 28, 29 },
        }}),
        QtMocHelpers::ConstructorData<Constructor(const QString &, QObject *)>(2, QMC::AccessPublic, {{
            { QMetaType::QString, 19 }, { QMetaType::QObjectStar, 30 },
        }}),
        QtMocHelpers::ConstructorData<Constructor(QObject *)>(2, QMC::AccessPublic, {{
            { QMetaType::QObjectStar, 30 },
        }}),
        QtMocHelpers::ConstructorData<Constructor(const QString &)>(2, QMC::AccessPublic, {{
            { QMetaType::QString, 19 },
        }}),
    };
    return QtMocHelpers::metaObjectData<File, qt_meta_tag_ZN10QtBindings4Core4FileE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors);
}
Q_CONSTINIT const QMetaObject QtBindings::Core::File::staticMetaObject = { {
    QMetaObject::SuperData::link<QFile::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QtBindings4Core4FileE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QtBindings4Core4FileE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10QtBindings4Core4FileE_t>.metaTypes,
    nullptr
} };

void QtBindings::Core::File::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<File *>(_o);
    if (_c == QMetaObject::CreateInstance) {
        switch (_id) {
        case 0: { File *_r = new File();
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        case 1: { File *_r = new File((*reinterpret_cast<std::add_pointer_t<File>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        case 2: { File *_r = new File((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        case 3: { File *_r = new File((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        case 4: { File *_r = new File((*reinterpret_cast<std::add_pointer_t<QString>>(_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]) File(); } break;
        case 1: { new (_a[0]) File((*reinterpret_cast<std::add_pointer_t<File>>(_a[1]))); } break;
        case 2: { new (_a[0]) File((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[2]))); } break;
        case 3: { new (_a[0]) File((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1]))); } break;
        case 4: { new (_a[0]) File((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); } break;
        default: break;
        }
    }
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->close(); break;
        case 1: { bool _r = _t->copy((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 2: { bool _r = _t->exists();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 3: { QString _r = _t->fileName();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 4: { bool _r = _t->link((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 5: { bool _r = _t->open((*reinterpret_cast<std::add_pointer_t<QtBindings::Core::IODevice::OpenModeFlag>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 6: { QFileDevice::Permissions _r = _t->permissions();
            if (_a[0]) *reinterpret_cast<QFileDevice::Permissions*>(_a[0]) = std::move(_r); }  break;
        case 7: { bool _r = _t->remove();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 8: { bool _r = _t->rename((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 9: { bool _r = _t->resize((*reinterpret_cast<std::add_pointer_t<qint64>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 10: _t->setFileName((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 11: { bool _r = _t->setPermissions((*reinterpret_cast<std::add_pointer_t<QFileDevice::Permissions>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 12: { qint64 _r = _t->size();
            if (_a[0]) *reinterpret_cast<qint64*>(_a[0]) = std::move(_r); }  break;
        case 13: { QString _r = _t->symLinkTarget();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 14: { bool _r = _t->copy((*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: { QString _r = _t->decodeName((*reinterpret_cast<std::add_pointer_t<const char*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 16: { QString _r = _t->decodeName((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 17: { QByteArray _r = _t->encodeName((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QByteArray*>(_a[0]) = std::move(_r); }  break;
        case 18: { bool _r = _t->exists((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 19: { bool _r = _t->link((*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 20: { QFileDevice::Permissions _r = _t->permissions((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QFileDevice::Permissions*>(_a[0]) = std::move(_r); }  break;
        case 21: { bool _r = _t->remove((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 22: { bool _r = _t->rename((*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 23: { bool _r = _t->resize((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<qint64>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 24: { bool _r = _t->setPermissions((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QFileDevice::Permissions>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 25: { QString _r = _t->symLinkTarget((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
}

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

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

int QtBindings::Core::File::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QFile::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 26)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 26;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 26)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 26;
    }
    return _id;
}
QT_WARNING_POP
