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

template <> constexpr inline auto YouTube::qt_create_metaobjectdata<qt_meta_tag_ZN7YouTubeE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "YouTube",
        "QML.Element",
        "auto",
        "playlistRetrieved",
        "",
        "QJsonArray",
        "playlist",
        "videoId",
        "playlistId",
        "videoInfoRetrieved",
        "YTVideoInfo",
        "info",
        "QVariantMap",
        "data",
        "error",
        "message",
        "hasYoutubeDl",
        "youtubeDlExecutable",
        "isPlaylist",
        "QUrl",
        "url",
        "getPlaylist",
        "normalizeUrl",
        "isYoutubeUrl",
        "getVideoInfo"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'playlistRetrieved'
        QtMocHelpers::SignalData<void(QJsonArray, const QString &, const QString &)>(3, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 }, { QMetaType::QString, 7 }, { QMetaType::QString, 8 },
        }}),
        // Signal 'videoInfoRetrieved'
        QtMocHelpers::SignalData<void(YTVideoInfo, QVariantMap)>(9, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 }, { 0x80000000 | 12, 13 },
        }}),
        // Signal 'error'
        QtMocHelpers::SignalData<void(const QString &)>(14, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 15 },
        }}),
        // Method 'hasYoutubeDl'
        QtMocHelpers::MethodData<bool()>(16, 4, QMC::AccessPublic, QMetaType::Bool),
        // Method 'youtubeDlExecutable'
        QtMocHelpers::MethodData<QString()>(17, 4, QMC::AccessPublic, QMetaType::QString),
        // Method 'isPlaylist'
        QtMocHelpers::MethodData<bool(const QUrl &)>(18, 4, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 19, 20 },
        }}),
        // Method 'getPlaylist'
        QtMocHelpers::MethodData<void(const QUrl &)>(21, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 19, 20 },
        }}),
        // Method 'normalizeUrl'
        QtMocHelpers::MethodData<QUrl(const QUrl &)>(22, 4, QMC::AccessPublic, 0x80000000 | 19, {{
            { 0x80000000 | 19, 20 },
        }}),
        // Method 'isYoutubeUrl'
        QtMocHelpers::MethodData<bool(const QUrl &)>(23, 4, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 19, 20 },
        }}),
        // Method 'getVideoInfo'
        QtMocHelpers::MethodData<void(const QUrl &, const QVariantMap &)>(24, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 19, 20 }, { 0x80000000 | 12, 13 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<YouTube, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject YouTube::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7YouTubeE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7YouTubeE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN7YouTubeE_t>.metaTypes,
    nullptr
} };

void YouTube::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<YouTube *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->playlistRetrieved((*reinterpret_cast<std::add_pointer_t<QJsonArray>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3]))); break;
        case 1: _t->videoInfoRetrieved((*reinterpret_cast<std::add_pointer_t<YTVideoInfo>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[2]))); break;
        case 2: _t->error((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: { bool _r = _t->hasYoutubeDl();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 4: { QString _r = _t->youtubeDlExecutable();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 5: { bool _r = _t->isPlaylist((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 6: _t->getPlaylist((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 7: { QUrl _r = _t->normalizeUrl((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QUrl*>(_a[0]) = std::move(_r); }  break;
        case 8: { bool _r = _t->isYoutubeUrl((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 9: _t->getVideoInfo((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (YouTube::*)(QJsonArray , const QString & , const QString & )>(_a, &YouTube::playlistRetrieved, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (YouTube::*)(YTVideoInfo , QVariantMap )>(_a, &YouTube::videoInfoRetrieved, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (YouTube::*)(const QString & )>(_a, &YouTube::error, 2))
            return;
    }
}

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

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

int YouTube::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 < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 10)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 10;
    }
    return _id;
}

// SIGNAL 0
void YouTube::playlistRetrieved(QJsonArray _t1, const QString & _t2, const QString & _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2, _t3);
}

// SIGNAL 1
void YouTube::videoInfoRetrieved(YTVideoInfo _t1, QVariantMap _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

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