/****************************************************************************
** Meta object code from reading C++ file 'vvave.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 "../../../../vvave-4.0.2/src/vvave.h"
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'vvave.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_ZN5vvaveE_t {};
} // unnamed namespace

template <> constexpr inline auto vvave::qt_create_metaobjectdata<qt_meta_tag_ZN5vvaveE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "vvave",
        "sourceAdded",
        "",
        "QUrl",
        "source",
        "sourceRemoved",
        "sourcesChanged",
        "fetchArtworkChanged",
        "fetchArtwork",
        "scanningChanged",
        "scanning",
        "addSources",
        "QList<QUrl>",
        "paths",
        "removeSource",
        "scanDir",
        "rescan",
        "sources",
        "sourcesModel",
        "QVariantList",
        "setFetchArtwork",
        "trackInfo",
        "FMH::MODEL",
        "url",
        "artworkUrl",
        "artist",
        "album",
        "getTracks",
        "query",
        "folders"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'sourceAdded'
        QtMocHelpers::SignalData<void(QUrl)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'sourceRemoved'
        QtMocHelpers::SignalData<void(QUrl)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'sourcesChanged'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'fetchArtworkChanged'
        QtMocHelpers::SignalData<void(bool)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 8 },
        }}),
        // Signal 'scanningChanged'
        QtMocHelpers::SignalData<void(bool)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 10 },
        }}),
        // Slot 'addSources'
        QtMocHelpers::SlotData<void(const QList<QUrl> &)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Slot 'removeSource'
        QtMocHelpers::SlotData<bool(const QString &)>(14, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 4 },
        }}),
        // Slot 'scanDir'
        QtMocHelpers::SlotData<void(const QList<QUrl> &)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Slot 'rescan'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'sources'
        QtMocHelpers::SlotData<QStringList()>(17, 2, QMC::AccessPublic, QMetaType::QStringList),
        // Slot 'sourcesModel'
        QtMocHelpers::SlotData<QVariantList()>(18, 2, QMC::AccessPublic, 0x80000000 | 19),
        // Slot 'setFetchArtwork'
        QtMocHelpers::SlotData<void(bool)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 8 },
        }}),
        // Slot 'trackInfo'
        QtMocHelpers::SlotData<FMH::MODEL(const QUrl &)>(21, 2, QMC::AccessPublic, 0x80000000 | 22, {{
            { 0x80000000 | 3, 23 },
        }}),
        // Slot 'artworkUrl'
        QtMocHelpers::SlotData<QString(const QString &, const QString &)>(24, 2, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 25 }, { QMetaType::QString, 26 },
        }}),
        // Slot 'getTracks'
        QtMocHelpers::SlotData<QVariantList(const QString &)>(27, 2, QMC::AccessPublic, 0x80000000 | 19, {{
            { QMetaType::QString, 28 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'sources'
        QtMocHelpers::PropertyData<QVariantList>(17, 0x80000000 | 19, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Final, 2),
        // property 'folders'
        QtMocHelpers::PropertyData<QList<QUrl>>(29, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Final, 2),
        // property 'fetchArtwork'
        QtMocHelpers::PropertyData<bool>(8, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
        // property 'scanning'
        QtMocHelpers::PropertyData<bool>(10, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Final, 4),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<vvave, qt_meta_tag_ZN5vvaveE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject vvave::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5vvaveE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5vvaveE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN5vvaveE_t>.metaTypes,
    nullptr
} };

void vvave::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<vvave *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->sourceAdded((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 1: _t->sourceRemoved((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 2: _t->sourcesChanged(); break;
        case 3: _t->fetchArtworkChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 4: _t->scanningChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 5: _t->addSources((*reinterpret_cast<std::add_pointer_t<QList<QUrl>>>(_a[1]))); break;
        case 6: { bool _r = _t->removeSource((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 7: _t->scanDir((*reinterpret_cast<std::add_pointer_t<QList<QUrl>>>(_a[1]))); break;
        case 8: _t->rescan(); break;
        case 9: { QStringList _r = _t->sources();
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 10: { QVariantList _r = _t->sourcesModel();
            if (_a[0]) *reinterpret_cast<QVariantList*>(_a[0]) = std::move(_r); }  break;
        case 11: _t->setFetchArtwork((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 12: { FMH::MODEL _r = _t->trackInfo((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1])));
            if (_a[0]) *reinterpret_cast<FMH::MODEL*>(_a[0]) = std::move(_r); }  break;
        case 13: { QString _r = _t->artworkUrl((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 14: { QVariantList _r = _t->getTracks((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariantList*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (vvave::*)(QUrl )>(_a, &vvave::sourceAdded, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (vvave::*)(QUrl )>(_a, &vvave::sourceRemoved, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (vvave::*)()>(_a, &vvave::sourcesChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (vvave::*)(bool )>(_a, &vvave::fetchArtworkChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (vvave::*)(bool )>(_a, &vvave::scanningChanged, 4))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QVariantList*>(_v) = _t->sourcesModel(); break;
        case 1: *reinterpret_cast<QList<QUrl>*>(_v) = _t->folders(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->fetchArtwork(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->scanning(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 2: _t->setFetchArtwork(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

int vvave::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 < 15)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 15;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 15)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 15;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    }
    return _id;
}

// SIGNAL 0
void vvave::sourceAdded(QUrl _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void vvave::sourceRemoved(QUrl _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void vvave::sourcesChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void vvave::fetchArtworkChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void vvave::scanningChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
