/****************************************************************************
** Meta object code from reading C++ file 'pathutils.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 "../../../../../haruna-1.8.1/src/utilities/pathutils.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 'pathutils.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_ZN9PathUtilsE_t {};
} // unnamed namespace

template <> constexpr inline auto PathUtils::qt_create_metaobjectdata<qt_meta_tag_ZN9PathUtilsE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PathUtils",
        "QML.Singleton",
        "true",
        "QML.Element",
        "auto",
        "error",
        "",
        "message",
        "configFileParentPath",
        "ConfigFile",
        "configFile",
        "configFilePath",
        "playlistsFolder",
        "highlightInFileManager",
        "path",
        "pathExists",
        "pathToUrl",
        "QUrl",
        "urlToPath",
        "url",
        "parentPath",
        "parentUrl",
        "Main",
        "CustomCommands",
        "Shortcuts",
        "Database",
        "PlaylistCache"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'error'
        QtMocHelpers::SignalData<void(const QString &)>(5, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 },
        }}),
        // Method 'configFileParentPath'
        QtMocHelpers::MethodData<QString(enum ConfigFile)>(8, 6, QMC::AccessPublic, QMetaType::QString, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Method 'configFileParentPath'
        QtMocHelpers::MethodData<QString()>(8, 6, QMC::AccessPublic | QMC::MethodCloned, QMetaType::QString),
        // Method 'configFilePath'
        QtMocHelpers::MethodData<QString(enum ConfigFile)>(11, 6, QMC::AccessPublic, QMetaType::QString, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Method 'configFilePath'
        QtMocHelpers::MethodData<QString()>(11, 6, QMC::AccessPublic | QMC::MethodCloned, QMetaType::QString),
        // Method 'playlistsFolder'
        QtMocHelpers::MethodData<QString()>(12, 6, QMC::AccessPublic, QMetaType::QString),
        // Method 'highlightInFileManager'
        QtMocHelpers::MethodData<void(const QString &)>(13, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 14 },
        }}),
        // Method 'pathExists'
        QtMocHelpers::MethodData<bool(const QString &)>(15, 6, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 14 },
        }}),
        // Method 'pathToUrl'
        QtMocHelpers::MethodData<QUrl(const QString &)>(16, 6, QMC::AccessPublic, 0x80000000 | 17, {{
            { QMetaType::QString, 14 },
        }}),
        // Method 'urlToPath'
        QtMocHelpers::MethodData<QString(const QUrl &)>(18, 6, QMC::AccessPublic, QMetaType::QString, {{
            { 0x80000000 | 17, 19 },
        }}),
        // Method 'parentPath'
        QtMocHelpers::MethodData<QString(const QString &)>(20, 6, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 14 },
        }}),
        // Method 'parentUrl'
        QtMocHelpers::MethodData<QUrl(const QUrl &)>(21, 6, QMC::AccessPublic, 0x80000000 | 17, {{
            { 0x80000000 | 17, 19 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'ConfigFile'
        QtMocHelpers::EnumData<enum ConfigFile>(9, 9, QMC::EnumIsScoped).add({
            {   22, ConfigFile::Main },
            {   23, ConfigFile::CustomCommands },
            {   24, ConfigFile::Shortcuts },
            {   25, ConfigFile::Database },
            {   26, ConfigFile::PlaylistCache },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<PathUtils, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject PathUtils::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9PathUtilsE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9PathUtilsE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9PathUtilsE_t>.metaTypes,
    nullptr
} };

void PathUtils::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PathUtils *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->error((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: { QString _r = _t->configFileParentPath((*reinterpret_cast<std::add_pointer_t<enum ConfigFile>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 2: { QString _r = _t->configFileParentPath();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 3: { QString _r = _t->configFilePath((*reinterpret_cast<std::add_pointer_t<enum ConfigFile>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 4: { QString _r = _t->configFilePath();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 5: { QString _r = _t->playlistsFolder();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 6: _t->highlightInFileManager((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 7: { bool _r = _t->pathExists((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 8: { QUrl _r = _t->pathToUrl((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QUrl*>(_a[0]) = std::move(_r); }  break;
        case 9: { QString _r = _t->urlToPath((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 10: { QString _r = _t->parentPath((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 11: { QUrl _r = _t->parentUrl((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QUrl*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PathUtils::*)(const QString & )>(_a, &PathUtils::error, 0))
            return;
    }
}

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

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

int PathUtils::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)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 12;
    }
    return _id;
}

// SIGNAL 0
void PathUtils::error(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}
QT_WARNING_POP
