/****************************************************************************
** Meta object code from reading C++ file 'PhotosEngine.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 "../../../../../../../amarok-3.3.3/src/context/applets/photos/plugin/PhotosEngine.h"
#include <QtNetwork/QSslError>
#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 'PhotosEngine.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_ZN12PhotosEngineE_t {};
} // unnamed namespace

template <> constexpr inline auto PhotosEngine::qt_create_metaobjectdata<qt_meta_tag_ZN12PhotosEngineE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PhotosEngine",
        "fetchSizeChanged",
        "",
        "keywordsChanged",
        "photosChanged",
        "statusChanged",
        "errorChanged",
        "artistChanged",
        "resultFlickr",
        "QUrl",
        "url",
        "data",
        "NetworkAccessManagerProxy::Error",
        "e",
        "stopped",
        "trackChanged",
        "Meta::TrackPtr",
        "track",
        "fetchSize",
        "keywords",
        "photoUrls",
        "QList<QUrl>",
        "pageUrls",
        "photoTitles",
        "status",
        "Status",
        "error",
        "artist",
        "Stopped",
        "Fetching",
        "Completed",
        "Error"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'fetchSizeChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'keywordsChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'photosChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'statusChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'errorChanged'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'artistChanged'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'resultFlickr'
        QtMocHelpers::SlotData<void(const QUrl &, const QByteArray &, const NetworkAccessManagerProxy::Error &)>(8, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 9, 10 }, { QMetaType::QByteArray, 11 }, { 0x80000000 | 12, 13 },
        }}),
        // Slot 'stopped'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'trackChanged'
        QtMocHelpers::SlotData<void(const Meta::TrackPtr &)>(15, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 16, 17 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'fetchSize'
        QtMocHelpers::PropertyData<int>(18, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'keywords'
        QtMocHelpers::PropertyData<QStringList>(19, QMetaType::QStringList, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'photoUrls'
        QtMocHelpers::PropertyData<QList<QUrl>>(20, 0x80000000 | 21, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 2),
        // property 'pageUrls'
        QtMocHelpers::PropertyData<QList<QUrl>>(22, 0x80000000 | 21, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 2),
        // property 'photoTitles'
        QtMocHelpers::PropertyData<QList<QString>>(23, QMetaType::QStringList, QMC::DefaultPropertyFlags, 2),
        // property 'status'
        QtMocHelpers::PropertyData<enum Status>(24, 0x80000000 | 25, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 3),
        // property 'error'
        QtMocHelpers::PropertyData<QString>(26, QMetaType::QString, QMC::DefaultPropertyFlags, 4),
        // property 'artist'
        QtMocHelpers::PropertyData<QString>(27, QMetaType::QString, QMC::DefaultPropertyFlags, 5),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Status'
        QtMocHelpers::EnumData<enum Status>(25, 25, QMC::EnumFlags{}).add({
            {   28, Status::Stopped },
            {   29, Status::Fetching },
            {   30, Status::Completed },
            {   31, Status::Error },
        }),
    };
    return QtMocHelpers::metaObjectData<PhotosEngine, qt_meta_tag_ZN12PhotosEngineE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject PhotosEngine::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12PhotosEngineE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12PhotosEngineE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12PhotosEngineE_t>.metaTypes,
    nullptr
} };

void PhotosEngine::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PhotosEngine *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->fetchSizeChanged(); break;
        case 1: _t->keywordsChanged(); break;
        case 2: _t->photosChanged(); break;
        case 3: _t->statusChanged(); break;
        case 4: _t->errorChanged(); break;
        case 5: _t->artistChanged(); break;
        case 6: _t->resultFlickr((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<NetworkAccessManagerProxy::Error>>(_a[3]))); break;
        case 7: _t->stopped(); break;
        case 8: _t->trackChanged((*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 2:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< NetworkAccessManagerProxy::Error >(); break;
            }
            break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Meta::TrackPtr >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PhotosEngine::*)()>(_a, &PhotosEngine::fetchSizeChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PhotosEngine::*)()>(_a, &PhotosEngine::keywordsChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (PhotosEngine::*)()>(_a, &PhotosEngine::photosChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (PhotosEngine::*)()>(_a, &PhotosEngine::statusChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (PhotosEngine::*)()>(_a, &PhotosEngine::errorChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (PhotosEngine::*)()>(_a, &PhotosEngine::artistChanged, 5))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<int*>(_v) = _t->fetchSize(); break;
        case 1: *reinterpret_cast<QStringList*>(_v) = _t->keywords(); break;
        case 2: *reinterpret_cast<QList<QUrl>*>(_v) = _t->photoUrls(); break;
        case 3: *reinterpret_cast<QList<QUrl>*>(_v) = _t->pageUrls(); break;
        case 4: *reinterpret_cast<QList<QString>*>(_v) = _t->photoTitles(); break;
        case 5: *reinterpret_cast<enum Status*>(_v) = _t->status(); break;
        case 6: *reinterpret_cast<QString*>(_v) = _t->error(); break;
        case 7: *reinterpret_cast<QString*>(_v) = _t->artist(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setFetchSize(*reinterpret_cast<int*>(_v)); break;
        case 1: _t->setKeywords(*reinterpret_cast<QStringList*>(_v)); break;
        default: break;
        }
    }
}

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

void *PhotosEngine::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12PhotosEngineE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "Meta::Observer"))
        return static_cast< Meta::Observer*>(this);
    return QObject::qt_metacast(_clname);
}

int PhotosEngine::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 < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    return _id;
}

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

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

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

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

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

// SIGNAL 5
void PhotosEngine::artistChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
QT_WARNING_POP
