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

#include "../../../../../neochat-26.07.90/src/libneochat/filetype.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 'filetype.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.12.0. 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_ZN8FileTypeE_t {};
} // unnamed namespace

template <> constexpr inline auto FileType::qt_create_metaobjectdata<qt_meta_tag_ZN8FileTypeE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "FileType",
        "QML.Element",
        "auto",
        "QML.Singleton",
        "true",
        "mimeTypeForName",
        "QMimeType",
        "",
        "nameOrAlias",
        "mimeTypeForFile",
        "fileName",
        "FileType::MatchMode",
        "mode",
        "QFileInfo",
        "fileInfo",
        "mimeTypesForFileName",
        "QList<QMimeType>",
        "mimeTypeForData",
        "data",
        "QIODevice*",
        "device",
        "mimeTypeForUrl",
        "QUrl",
        "url",
        "mimeTypeForFileNameAndData",
        "suffixForFileName",
        "supportedImageFormats",
        "supportedAnimatedImageFormats",
        "MatchMode",
        "MatchDefault",
        "MatchExtension",
        "MatchContent"
    };

    QtMocHelpers::UintData qt_methods {
        // Method 'mimeTypeForName'
        QtMocHelpers::MethodData<QMimeType(const QString &) const>(5, 7, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::QString, 8 },
        }}),
        // Method 'mimeTypeForFile'
        QtMocHelpers::MethodData<QMimeType(const QString &, FileType::MatchMode) const>(9, 7, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::QString, 10 }, { 0x80000000 | 11, 12 },
        }}),
        // Method 'mimeTypeForFile'
        QtMocHelpers::MethodData<QMimeType(const QString &) const>(9, 7, QMC::AccessPublic | QMC::MethodCloned, 0x80000000 | 6, {{
            { QMetaType::QString, 10 },
        }}),
        // Method 'mimeTypeForFile'
        QtMocHelpers::MethodData<QMimeType(const QFileInfo &, FileType::MatchMode) const>(9, 7, QMC::AccessPublic, 0x80000000 | 6, {{
            { 0x80000000 | 13, 14 }, { 0x80000000 | 11, 12 },
        }}),
        // Method 'mimeTypeForFile'
        QtMocHelpers::MethodData<QMimeType(const QFileInfo &) const>(9, 7, QMC::AccessPublic | QMC::MethodCloned, 0x80000000 | 6, {{
            { 0x80000000 | 13, 14 },
        }}),
        // Method 'mimeTypesForFileName'
        QtMocHelpers::MethodData<QList<QMimeType>(const QString &) const>(15, 7, QMC::AccessPublic, 0x80000000 | 16, {{
            { QMetaType::QString, 10 },
        }}),
        // Method 'mimeTypeForData'
        QtMocHelpers::MethodData<QMimeType(const QByteArray &) const>(17, 7, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::QByteArray, 18 },
        }}),
        // Method 'mimeTypeForData'
        QtMocHelpers::MethodData<QMimeType(QIODevice *) const>(17, 7, QMC::AccessPublic, 0x80000000 | 6, {{
            { 0x80000000 | 19, 20 },
        }}),
        // Method 'mimeTypeForUrl'
        QtMocHelpers::MethodData<QMimeType(const QUrl &) const>(21, 7, QMC::AccessPublic, 0x80000000 | 6, {{
            { 0x80000000 | 22, 23 },
        }}),
        // Method 'mimeTypeForFileNameAndData'
        QtMocHelpers::MethodData<QMimeType(const QString &, QIODevice *) const>(24, 7, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::QString, 10 }, { 0x80000000 | 19, 20 },
        }}),
        // Method 'mimeTypeForFileNameAndData'
        QtMocHelpers::MethodData<QMimeType(const QString &, const QByteArray &) const>(24, 7, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::QString, 10 }, { QMetaType::QByteArray, 18 },
        }}),
        // Method 'suffixForFileName'
        QtMocHelpers::MethodData<QString(const QString &) const>(25, 7, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 10 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'supportedImageFormats'
        QtMocHelpers::PropertyData<QStringList>(26, QMetaType::QStringList, QMC::DefaultPropertyFlags | QMC::Constant | QMC::Final),
        // property 'supportedAnimatedImageFormats'
        QtMocHelpers::PropertyData<QStringList>(27, QMetaType::QStringList, QMC::DefaultPropertyFlags | QMC::Constant | QMC::Final),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'MatchMode'
        QtMocHelpers::EnumData<enum MatchMode>(28, 28, QMC::EnumFlags{}).add({
            {   29, MatchMode::MatchDefault },
            {   30, MatchMode::MatchExtension },
            {   31, MatchMode::MatchContent },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<FileType, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject FileType::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8FileTypeE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8FileTypeE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8FileTypeE_t>.metaTypes,
    nullptr
} };

void FileType::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<FileType *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { QMimeType _r = _t->mimeTypeForName((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QMimeType*>(_a[0]) = std::move(_r); }  break;
        case 1: { QMimeType _r = _t->mimeTypeForFile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<FileType::MatchMode>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QMimeType*>(_a[0]) = std::move(_r); }  break;
        case 2: { QMimeType _r = _t->mimeTypeForFile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QMimeType*>(_a[0]) = std::move(_r); }  break;
        case 3: { QMimeType _r = _t->mimeTypeForFile((*reinterpret_cast<std::add_pointer_t<QFileInfo>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<FileType::MatchMode>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QMimeType*>(_a[0]) = std::move(_r); }  break;
        case 4: { QMimeType _r = _t->mimeTypeForFile((*reinterpret_cast<std::add_pointer_t<QFileInfo>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QMimeType*>(_a[0]) = std::move(_r); }  break;
        case 5: { QList<QMimeType> _r = _t->mimeTypesForFileName((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QList<QMimeType>*>(_a[0]) = std::move(_r); }  break;
        case 6: { QMimeType _r = _t->mimeTypeForData((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QMimeType*>(_a[0]) = std::move(_r); }  break;
        case 7: { QMimeType _r = _t->mimeTypeForData((*reinterpret_cast<std::add_pointer_t<QIODevice*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QMimeType*>(_a[0]) = std::move(_r); }  break;
        case 8: { QMimeType _r = _t->mimeTypeForUrl((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QMimeType*>(_a[0]) = std::move(_r); }  break;
        case 9: { QMimeType _r = _t->mimeTypeForFileNameAndData((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QIODevice*>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QMimeType*>(_a[0]) = std::move(_r); }  break;
        case 10: { QMimeType _r = _t->mimeTypeForFileNameAndData((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QMimeType*>(_a[0]) = std::move(_r); }  break;
        case 11: { QString _r = _t->suffixForFileName((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QFileInfo >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QFileInfo >(); break;
            }
            break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QIODevice* >(); break;
            }
            break;
        case 9:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QIODevice* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QStringList*>(_v) = _t->supportedImageFormats(); break;
        case 1: *reinterpret_cast<QStringList*>(_v) = _t->supportedAnimatedImageFormats(); break;
        default: break;
        }
    }
}

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

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

int FileType::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 < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    return _id;
}
QT_WARNING_POP
