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

template <> constexpr inline auto ImageDownloader::qt_create_metaobjectdata<qt_meta_tag_ZN15ImageDownloaderE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ImageDownloader",
        "isDownloadingChanged",
        "",
        "totalImagesChanged",
        "downloadedImagesChanged",
        "currentFileNameChanged",
        "currentFileProgressChanged",
        "currentFileSizeChanged",
        "downloadDirectoryChanged",
        "downloadCompleted",
        "success",
        "successCount",
        "failCount",
        "message",
        "downloadProgress",
        "current",
        "total",
        "filename",
        "fileDownloadFailed",
        "error",
        "setDownloadDirectory",
        "dir",
        "startDownload",
        "downloadDir",
        "QVariantList",
        "selectedImages",
        "cancelDownload",
        "onDownloadFinished",
        "onDownloadProgress",
        "bytesReceived",
        "bytesTotal",
        "onDownloadReadyRead",
        "isDownloading",
        "totalImages",
        "downloadedImages",
        "currentFileName",
        "currentFileProgress",
        "currentFileSize",
        "downloadDirectory"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'isDownloadingChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'totalImagesChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'downloadedImagesChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'currentFileNameChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'currentFileProgressChanged'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'currentFileSizeChanged'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'downloadDirectoryChanged'
        QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'downloadCompleted'
        QtMocHelpers::SignalData<void(bool, int, int, const QString &)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 10 }, { QMetaType::Int, 11 }, { QMetaType::Int, 12 }, { QMetaType::QString, 13 },
        }}),
        // Signal 'downloadProgress'
        QtMocHelpers::SignalData<void(int, int, const QString &)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 15 }, { QMetaType::Int, 16 }, { QMetaType::QString, 17 },
        }}),
        // Signal 'fileDownloadFailed'
        QtMocHelpers::SignalData<void(const QString &, const QString &)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 17 }, { QMetaType::QString, 19 },
        }}),
        // Slot 'setDownloadDirectory'
        QtMocHelpers::SlotData<void(const QString &)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 21 },
        }}),
        // Slot 'startDownload'
        QtMocHelpers::SlotData<void(const QString &, const QVariantList &)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 23 }, { 0x80000000 | 24, 25 },
        }}),
        // Slot 'cancelDownload'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'onDownloadFinished'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onDownloadProgress'
        QtMocHelpers::SlotData<void(qint64, qint64)>(28, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::LongLong, 29 }, { QMetaType::LongLong, 30 },
        }}),
        // Slot 'onDownloadReadyRead'
        QtMocHelpers::SlotData<void()>(31, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'isDownloading'
        QtMocHelpers::PropertyData<bool>(32, QMetaType::Bool, QMC::DefaultPropertyFlags, 0),
        // property 'totalImages'
        QtMocHelpers::PropertyData<int>(33, QMetaType::Int, QMC::DefaultPropertyFlags, 1),
        // property 'downloadedImages'
        QtMocHelpers::PropertyData<int>(34, QMetaType::Int, QMC::DefaultPropertyFlags, 2),
        // property 'currentFileName'
        QtMocHelpers::PropertyData<QString>(35, QMetaType::QString, QMC::DefaultPropertyFlags, 3),
        // property 'currentFileProgress'
        QtMocHelpers::PropertyData<qint64>(36, QMetaType::LongLong, QMC::DefaultPropertyFlags, 4),
        // property 'currentFileSize'
        QtMocHelpers::PropertyData<qint64>(37, QMetaType::LongLong, QMC::DefaultPropertyFlags, 5),
        // property 'downloadDirectory'
        QtMocHelpers::PropertyData<QString>(38, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 6),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ImageDownloader, qt_meta_tag_ZN15ImageDownloaderE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ImageDownloader::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15ImageDownloaderE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15ImageDownloaderE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN15ImageDownloaderE_t>.metaTypes,
    nullptr
} };

void ImageDownloader::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ImageDownloader *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->isDownloadingChanged(); break;
        case 1: _t->totalImagesChanged(); break;
        case 2: _t->downloadedImagesChanged(); break;
        case 3: _t->currentFileNameChanged(); break;
        case 4: _t->currentFileProgressChanged(); break;
        case 5: _t->currentFileSizeChanged(); break;
        case 6: _t->downloadDirectoryChanged(); break;
        case 7: _t->downloadCompleted((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4]))); break;
        case 8: _t->downloadProgress((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3]))); break;
        case 9: _t->fileDownloadFailed((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 10: _t->setDownloadDirectory((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 11: _t->startDownload((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariantList>>(_a[2]))); break;
        case 12: _t->cancelDownload(); break;
        case 13: _t->onDownloadFinished(); break;
        case 14: _t->onDownloadProgress((*reinterpret_cast<std::add_pointer_t<qint64>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<qint64>>(_a[2]))); break;
        case 15: _t->onDownloadReadyRead(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ImageDownloader::*)()>(_a, &ImageDownloader::isDownloadingChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDownloader::*)()>(_a, &ImageDownloader::totalImagesChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDownloader::*)()>(_a, &ImageDownloader::downloadedImagesChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDownloader::*)()>(_a, &ImageDownloader::currentFileNameChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDownloader::*)()>(_a, &ImageDownloader::currentFileProgressChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDownloader::*)()>(_a, &ImageDownloader::currentFileSizeChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDownloader::*)()>(_a, &ImageDownloader::downloadDirectoryChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDownloader::*)(bool , int , int , const QString & )>(_a, &ImageDownloader::downloadCompleted, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDownloader::*)(int , int , const QString & )>(_a, &ImageDownloader::downloadProgress, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDownloader::*)(const QString & , const QString & )>(_a, &ImageDownloader::fileDownloadFailed, 9))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->isDownloading(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->totalImages(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->downloadedImages(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->currentFileName(); break;
        case 4: *reinterpret_cast<qint64*>(_v) = _t->currentFileProgress(); break;
        case 5: *reinterpret_cast<qint64*>(_v) = _t->currentFileSize(); break;
        case 6: *reinterpret_cast<QString*>(_v) = _t->downloadDirectory(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 6: _t->setDownloadDirectory(*reinterpret_cast<QString*>(_v)); break;
        default: break;
        }
    }
}

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

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

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

// SIGNAL 0
void ImageDownloader::isDownloadingChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void ImageDownloader::totalImagesChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

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

// SIGNAL 3
void ImageDownloader::currentFileNameChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void ImageDownloader::currentFileProgressChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void ImageDownloader::currentFileSizeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

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

// SIGNAL 7
void ImageDownloader::downloadCompleted(bool _t1, int _t2, int _t3, const QString & _t4)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1, _t2, _t3, _t4);
}

// SIGNAL 8
void ImageDownloader::downloadProgress(int _t1, int _t2, const QString & _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1, _t2, _t3);
}

// SIGNAL 9
void ImageDownloader::fileDownloadFailed(const QString & _t1, const QString & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 9, nullptr, _t1, _t2);
}
QT_WARNING_POP
