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

template <> constexpr inline auto QtBindings::Core::IODevice::qt_create_metaobjectdata<qt_meta_tag_ZN10QtBindings4Core8IODeviceE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QtBindings::Core::IODevice",
        "OpenModeFlag",
        "NotOpen",
        "ReadOnly",
        "WriteOnly",
        "ReadWrite",
        "Append",
        "Truncate",
        "Text",
        "Unbuffered",
        "NewOnly",
        "ExistingOnly"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'OpenModeFlag'
        QtMocHelpers::EnumData<enum OpenModeFlag>(1, 1, QMC::EnumFlags{}).add({
            {    2, OpenModeFlag::NotOpen },
            {    3, OpenModeFlag::ReadOnly },
            {    4, OpenModeFlag::WriteOnly },
            {    5, OpenModeFlag::ReadWrite },
            {    6, OpenModeFlag::Append },
            {    7, OpenModeFlag::Truncate },
            {    8, OpenModeFlag::Text },
            {    9, OpenModeFlag::Unbuffered },
            {   10, OpenModeFlag::NewOnly },
            {   11, OpenModeFlag::ExistingOnly },
        }),
    };
    return QtMocHelpers::metaObjectData<IODevice, qt_meta_tag_ZN10QtBindings4Core8IODeviceE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject QtBindings::Core::IODevice::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QtBindings4Core8IODeviceE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QtBindings4Core8IODeviceE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10QtBindings4Core8IODeviceE_t>.metaTypes,
    nullptr
} };

void QtBindings::Core::IODevice::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<IODevice *>(_o);
    (void)_t;
    (void)_c;
    (void)_id;
    (void)_a;
}

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

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

int QtBindings::Core::IODevice::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    return _id;
}
namespace {
struct qt_meta_tag_ZN10QtBindings4Core8OpenModeE_t {};
} // unnamed namespace

template <> constexpr inline auto QtBindings::Core::OpenMode::qt_create_metaobjectdata<qt_meta_tag_ZN10QtBindings4Core8OpenModeE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QtBindings::Core::OpenMode",
        "OpenMode",
        "",
        "other",
        "QIODevice::OpenMode",
        "flags"
    };

    QtMocHelpers::UintData qt_methods {
    };
    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 OpenMode &)>(2, QMC::AccessPublic, {{
            { 0x80000000 | 1, 3 },
        }}),
        QtMocHelpers::ConstructorData<Constructor(QIODevice::OpenMode)>(2, QMC::AccessPublic, {{
            { 0x80000000 | 4, 5 },
        }}),
    };
    return QtMocHelpers::metaObjectData<OpenMode, qt_meta_tag_ZN10QtBindings4Core8OpenModeE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors);
}
Q_CONSTINIT const QMetaObject QtBindings::Core::OpenMode::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QtBindings4Core8OpenModeE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QtBindings4Core8OpenModeE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10QtBindings4Core8OpenModeE_t>.metaTypes,
    nullptr
} };

void QtBindings::Core::OpenMode::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<OpenMode *>(_o);
    if (_c == QMetaObject::CreateInstance) {
        switch (_id) {
        case 0: { OpenMode *_r = new OpenMode();
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        case 1: { OpenMode *_r = new OpenMode((*reinterpret_cast<std::add_pointer_t<OpenMode>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        case 2: { OpenMode *_r = new OpenMode((*reinterpret_cast<std::add_pointer_t<QIODevice::OpenMode>>(_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]) OpenMode(); } break;
        case 1: { new (_a[0]) OpenMode((*reinterpret_cast<std::add_pointer_t<OpenMode>>(_a[1]))); } break;
        case 2: { new (_a[0]) OpenMode((*reinterpret_cast<std::add_pointer_t<QIODevice::OpenMode>>(_a[1]))); } break;
        default: break;
        }
    }
    (void)_t;
}

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

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

int QtBindings::Core::OpenMode::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    return _id;
}
QT_WARNING_POP
