/****************************************************************************
** Meta object code from reading C++ file 'DownloadManager.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 "../../../../../src/network/DownloadManager.h"
#include <QtNetwork/QSslError>
#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 'DownloadManager.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_ZN15DownloadManagerE_t {};
} // unnamed namespace

template <> constexpr inline auto DownloadManager::qt_create_metaobjectdata<qt_meta_tag_ZN15DownloadManagerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "DownloadManager",
        "sigDownloadProgress",
        "",
        "DownloadManagerElement",
        "downloadsLeft",
        "movieDownloadsLeft",
        "showDownloadsLeft",
        "sigDownloadFinished",
        "sigElemDownloaded",
        "allDownloadsFinished",
        "allMovieDownloadsFinished",
        "Movie*",
        "allTvShowDownloadsFinished",
        "TvShow*",
        "allConcertDownloadsFinished",
        "Concert*",
        "allArtistDownloadsFinished",
        "Artist*",
        "allAlbumDownloadsFinished",
        "Album*",
        "downloadProgress",
        "received",
        "total",
        "downloadFinished",
        "startNextDownload",
        "restartDownloadAfterTimeout",
        "QNetworkReply*",
        "reply"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'sigDownloadProgress'
        QtMocHelpers::SignalData<void(DownloadManagerElement)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Signal 'downloadsLeft'
        QtMocHelpers::SignalData<void(int)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Signal 'movieDownloadsLeft'
        QtMocHelpers::SignalData<void(int, DownloadManagerElement)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 }, { 0x80000000 | 3, 2 },
        }}),
        // Signal 'showDownloadsLeft'
        QtMocHelpers::SignalData<void(int, DownloadManagerElement)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 }, { 0x80000000 | 3, 2 },
        }}),
        // Signal 'sigDownloadFinished'
        QtMocHelpers::SignalData<void(DownloadManagerElement)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Signal 'sigElemDownloaded'
        QtMocHelpers::SignalData<void(DownloadManagerElement)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Signal 'allDownloadsFinished'
        QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'allMovieDownloadsFinished'
        QtMocHelpers::SignalData<void(Movie *)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 2 },
        }}),
        // Signal 'allTvShowDownloadsFinished'
        QtMocHelpers::SignalData<void(TvShow *)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 13, 2 },
        }}),
        // Signal 'allConcertDownloadsFinished'
        QtMocHelpers::SignalData<void(Concert *)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 2 },
        }}),
        // Signal 'allArtistDownloadsFinished'
        QtMocHelpers::SignalData<void(Artist *)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 17, 2 },
        }}),
        // Signal 'allAlbumDownloadsFinished'
        QtMocHelpers::SignalData<void(Album *)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 19, 2 },
        }}),
        // Slot 'downloadProgress'
        QtMocHelpers::SlotData<void(qint64, qint64)>(20, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::LongLong, 21 }, { QMetaType::LongLong, 22 },
        }}),
        // Slot 'downloadFinished'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'startNextDownload'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'restartDownloadAfterTimeout'
        QtMocHelpers::SlotData<void(QNetworkReply *)>(25, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 26, 27 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<DownloadManager, qt_meta_tag_ZN15DownloadManagerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject DownloadManager::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15DownloadManagerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15DownloadManagerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN15DownloadManagerE_t>.metaTypes,
    nullptr
} };

void DownloadManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DownloadManager *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->sigDownloadProgress((*reinterpret_cast<std::add_pointer_t<DownloadManagerElement>>(_a[1]))); break;
        case 1: _t->downloadsLeft((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 2: _t->movieDownloadsLeft((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<DownloadManagerElement>>(_a[2]))); break;
        case 3: _t->showDownloadsLeft((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<DownloadManagerElement>>(_a[2]))); break;
        case 4: _t->sigDownloadFinished((*reinterpret_cast<std::add_pointer_t<DownloadManagerElement>>(_a[1]))); break;
        case 5: _t->sigElemDownloaded((*reinterpret_cast<std::add_pointer_t<DownloadManagerElement>>(_a[1]))); break;
        case 6: _t->allDownloadsFinished(); break;
        case 7: _t->allMovieDownloadsFinished((*reinterpret_cast<std::add_pointer_t<Movie*>>(_a[1]))); break;
        case 8: _t->allTvShowDownloadsFinished((*reinterpret_cast<std::add_pointer_t<TvShow*>>(_a[1]))); break;
        case 9: _t->allConcertDownloadsFinished((*reinterpret_cast<std::add_pointer_t<Concert*>>(_a[1]))); break;
        case 10: _t->allArtistDownloadsFinished((*reinterpret_cast<std::add_pointer_t<Artist*>>(_a[1]))); break;
        case 11: _t->allAlbumDownloadsFinished((*reinterpret_cast<std::add_pointer_t<Album*>>(_a[1]))); break;
        case 12: _t->downloadProgress((*reinterpret_cast<std::add_pointer_t<qint64>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<qint64>>(_a[2]))); break;
        case 13: _t->downloadFinished(); break;
        case 14: _t->startNextDownload(); break;
        case 15: _t->restartDownloadAfterTimeout((*reinterpret_cast<std::add_pointer_t<QNetworkReply*>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< DownloadManagerElement >(); break;
            }
            break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< DownloadManagerElement >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< DownloadManagerElement >(); 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< DownloadManagerElement >(); break;
            }
            break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< DownloadManagerElement >(); break;
            }
            break;
        case 15:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QNetworkReply* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (DownloadManager::*)(DownloadManagerElement )>(_a, &DownloadManager::sigDownloadProgress, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (DownloadManager::*)(int )>(_a, &DownloadManager::downloadsLeft, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (DownloadManager::*)(int , DownloadManagerElement )>(_a, &DownloadManager::movieDownloadsLeft, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (DownloadManager::*)(int , DownloadManagerElement )>(_a, &DownloadManager::showDownloadsLeft, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (DownloadManager::*)(DownloadManagerElement )>(_a, &DownloadManager::sigDownloadFinished, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (DownloadManager::*)(DownloadManagerElement )>(_a, &DownloadManager::sigElemDownloaded, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (DownloadManager::*)()>(_a, &DownloadManager::allDownloadsFinished, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (DownloadManager::*)(Movie * )>(_a, &DownloadManager::allMovieDownloadsFinished, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (DownloadManager::*)(TvShow * )>(_a, &DownloadManager::allTvShowDownloadsFinished, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (DownloadManager::*)(Concert * )>(_a, &DownloadManager::allConcertDownloadsFinished, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (DownloadManager::*)(Artist * )>(_a, &DownloadManager::allArtistDownloadsFinished, 10))
            return;
        if (QtMocHelpers::indexOfMethod<void (DownloadManager::*)(Album * )>(_a, &DownloadManager::allAlbumDownloadsFinished, 11))
            return;
    }
}

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

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

int DownloadManager::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 < 16)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 16;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 16)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 16;
    }
    return _id;
}

// SIGNAL 0
void DownloadManager::sigDownloadProgress(DownloadManagerElement _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void DownloadManager::downloadsLeft(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void DownloadManager::movieDownloadsLeft(int _t1, DownloadManagerElement _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}

// SIGNAL 3
void DownloadManager::showDownloadsLeft(int _t1, DownloadManagerElement _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1, _t2);
}

// SIGNAL 4
void DownloadManager::sigDownloadFinished(DownloadManagerElement _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void DownloadManager::sigElemDownloaded(DownloadManagerElement _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void DownloadManager::allDownloadsFinished()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void DownloadManager::allMovieDownloadsFinished(Movie * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}

// SIGNAL 8
void DownloadManager::allTvShowDownloadsFinished(TvShow * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}

// SIGNAL 9
void DownloadManager::allConcertDownloadsFinished(Concert * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 9, nullptr, _t1);
}

// SIGNAL 10
void DownloadManager::allArtistDownloadsFinished(Artist * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 10, nullptr, _t1);
}

// SIGNAL 11
void DownloadManager::allAlbumDownloadsFinished(Album * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 11, nullptr, _t1);
}
QT_WARNING_POP
