/****************************************************************************
** Meta object code from reading C++ file 'provider.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 "../../../../../knewstuff-6.27.0/src/core/provider.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 'provider.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_ZN7KNSCore8ProviderE_t {};
} // unnamed namespace

template <> constexpr inline auto KNSCore::Provider::qt_create_metaobjectdata<qt_meta_tag_ZN7KNSCore8ProviderE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KNSCore::Provider",
        "providerInitialized",
        "",
        "KNSCore::Provider*",
        "loadingFinished",
        "KNSCore::Provider::SearchRequest",
        "KNSCore::Entry::List",
        "loadingFailed",
        "entryDetailsLoaded",
        "KNSCore::Entry",
        "payloadLinkLoaded",
        "commentsLoaded",
        "QList<std::shared_ptr<KNSCore::Comment>>",
        "comments",
        "personLoaded",
        "std::shared_ptr<KNSCore::Author>",
        "author",
        "basicsLoaded",
        "searchPresetsLoaded",
        "QList<KNSCore::Provider::SearchPreset>",
        "presets",
        "signalInformation",
        "signalError",
        "signalErrorCode",
        "KNSCore::ErrorCode::ErrorCode",
        "errorCode",
        "message",
        "QVariant",
        "metadata",
        "categoriesMetadataLoded",
        "QList<KNSCore::Provider::CategoryMetadata>",
        "categories",
        "tagFilterChanged",
        "downloadTagFilterChanged",
        "version",
        "website",
        "QUrl",
        "host",
        "contactEmail",
        "supportsSsl",
        "SortMode",
        "Newest",
        "Alphabetical",
        "Rating",
        "Downloads",
        "Filter",
        "None",
        "Installed",
        "Updates",
        "ExactEntryId"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'providerInitialized'
        QtMocHelpers::SignalData<void(KNSCore::Provider *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Signal 'loadingFinished'
        QtMocHelpers::SignalData<void(const KNSCore::Provider::SearchRequest &, const KNSCore::Entry::List &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 2 }, { 0x80000000 | 6, 2 },
        }}),
        // Signal 'loadingFailed'
        QtMocHelpers::SignalData<void(const KNSCore::Provider::SearchRequest &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 2 },
        }}),
        // Signal 'entryDetailsLoaded'
        QtMocHelpers::SignalData<void(const KNSCore::Entry &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 2 },
        }}),
        // Signal 'payloadLinkLoaded'
        QtMocHelpers::SignalData<void(const KNSCore::Entry &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 2 },
        }}),
        // Signal 'commentsLoaded'
        QtMocHelpers::SignalData<void(const QList<std::shared_ptr<KNSCore::Comment>>)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Signal 'personLoaded'
        QtMocHelpers::SignalData<void(const std::shared_ptr<KNSCore::Author>)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 16 },
        }}),
        // Signal 'basicsLoaded'
        QtMocHelpers::SignalData<void()>(17, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'searchPresetsLoaded'
        QtMocHelpers::SignalData<void(const QList<KNSCore::Provider::SearchPreset> &)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 19, 20 },
        }}),
        // Signal 'signalInformation'
        QtMocHelpers::SignalData<void(const QString &)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Signal 'signalError'
        QtMocHelpers::SignalData<void(const QString &)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Signal 'signalErrorCode'
        QtMocHelpers::SignalData<void(KNSCore::ErrorCode::ErrorCode, const QString &, const QVariant &)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 24, 25 }, { QMetaType::QString, 26 }, { 0x80000000 | 27, 28 },
        }}),
        // Signal 'categoriesMetadataLoded'
        QtMocHelpers::SignalData<void(const QList<KNSCore::Provider::CategoryMetadata> &)>(29, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 30, 31 },
        }}),
        // Signal 'tagFilterChanged'
        QtMocHelpers::SignalData<void()>(32, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'downloadTagFilterChanged'
        QtMocHelpers::SignalData<void()>(33, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'version'
        QtMocHelpers::PropertyData<QString>(34, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 7),
        // property 'website'
        QtMocHelpers::PropertyData<QUrl>(35, 0x80000000 | 36, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 7),
        // property 'host'
        QtMocHelpers::PropertyData<QUrl>(37, 0x80000000 | 36, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 7),
        // property 'contactEmail'
        QtMocHelpers::PropertyData<QString>(38, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 7),
        // property 'supportsSsl'
        QtMocHelpers::PropertyData<bool>(39, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 7),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'SortMode'
        QtMocHelpers::EnumData<enum SortMode>(40, 40, QMC::EnumFlags{}).add({
            {   41, SortMode::Newest },
            {   42, SortMode::Alphabetical },
            {   43, SortMode::Rating },
            {   44, SortMode::Downloads },
        }),
        // enum 'Filter'
        QtMocHelpers::EnumData<enum Filter>(45, 45, QMC::EnumFlags{}).add({
            {   46, Filter::None },
            {   47, Filter::Installed },
            {   48, Filter::Updates },
            {   49, Filter::ExactEntryId },
        }),
    };
    return QtMocHelpers::metaObjectData<Provider, qt_meta_tag_ZN7KNSCore8ProviderE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KNSCore::Provider::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7KNSCore8ProviderE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7KNSCore8ProviderE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN7KNSCore8ProviderE_t>.metaTypes,
    nullptr
} };

void KNSCore::Provider::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Provider *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->providerInitialized((*reinterpret_cast<std::add_pointer_t<KNSCore::Provider*>>(_a[1]))); break;
        case 1: _t->loadingFinished((*reinterpret_cast<std::add_pointer_t<KNSCore::Provider::SearchRequest>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<KNSCore::Entry::List>>(_a[2]))); break;
        case 2: _t->loadingFailed((*reinterpret_cast<std::add_pointer_t<KNSCore::Provider::SearchRequest>>(_a[1]))); break;
        case 3: _t->entryDetailsLoaded((*reinterpret_cast<std::add_pointer_t<KNSCore::Entry>>(_a[1]))); break;
        case 4: _t->payloadLinkLoaded((*reinterpret_cast<std::add_pointer_t<KNSCore::Entry>>(_a[1]))); break;
        case 5: _t->commentsLoaded((*reinterpret_cast<std::add_pointer_t<QList<std::shared_ptr<KNSCore::Comment>>>>(_a[1]))); break;
        case 6: _t->personLoaded((*reinterpret_cast<std::add_pointer_t<std::shared_ptr<KNSCore::Author>>>(_a[1]))); break;
        case 7: _t->basicsLoaded(); break;
        case 8: _t->searchPresetsLoaded((*reinterpret_cast<std::add_pointer_t<QList<KNSCore::Provider::SearchPreset>>>(_a[1]))); break;
        case 9: _t->signalInformation((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 10: _t->signalError((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 11: _t->signalErrorCode((*reinterpret_cast<std::add_pointer_t<KNSCore::ErrorCode::ErrorCode>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[3]))); break;
        case 12: _t->categoriesMetadataLoded((*reinterpret_cast<std::add_pointer_t<QList<KNSCore::Provider::CategoryMetadata>>>(_a[1]))); break;
        case 13: _t->tagFilterChanged(); break;
        case 14: _t->downloadTagFilterChanged(); 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< KNSCore::Provider* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Provider::*)(KNSCore::Provider * )>(_a, &Provider::providerInitialized, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Provider::*)(const KNSCore::Provider::SearchRequest & , const KNSCore::Entry::List & )>(_a, &Provider::loadingFinished, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Provider::*)(const KNSCore::Provider::SearchRequest & )>(_a, &Provider::loadingFailed, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Provider::*)(const KNSCore::Entry & )>(_a, &Provider::entryDetailsLoaded, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Provider::*)(const KNSCore::Entry & )>(_a, &Provider::payloadLinkLoaded, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Provider::*)(const QList<std::shared_ptr<KNSCore::Comment>> )>(_a, &Provider::commentsLoaded, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (Provider::*)(const std::shared_ptr<KNSCore::Author> )>(_a, &Provider::personLoaded, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (Provider::*)()>(_a, &Provider::basicsLoaded, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (Provider::*)(const QList<KNSCore::Provider::SearchPreset> & )>(_a, &Provider::searchPresetsLoaded, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (Provider::*)(const QString & )>(_a, &Provider::signalInformation, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (Provider::*)(const QString & )>(_a, &Provider::signalError, 10))
            return;
        if (QtMocHelpers::indexOfMethod<void (Provider::*)(KNSCore::ErrorCode::ErrorCode , const QString & , const QVariant & )>(_a, &Provider::signalErrorCode, 11))
            return;
        if (QtMocHelpers::indexOfMethod<void (Provider::*)(const QList<KNSCore::Provider::CategoryMetadata> & )>(_a, &Provider::categoriesMetadataLoded, 12))
            return;
        if (QtMocHelpers::indexOfMethod<void (Provider::*)()>(_a, &Provider::tagFilterChanged, 13))
            return;
        if (QtMocHelpers::indexOfMethod<void (Provider::*)()>(_a, &Provider::downloadTagFilterChanged, 14))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->version(); break;
        case 1: *reinterpret_cast<QUrl*>(_v) = _t->website(); break;
        case 2: *reinterpret_cast<QUrl*>(_v) = _t->host(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->contactEmail(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->supportsSsl(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setVersion(*reinterpret_cast<QString*>(_v)); break;
        case 1: _t->setWebsite(*reinterpret_cast<QUrl*>(_v)); break;
        case 2: _t->setHost(*reinterpret_cast<QUrl*>(_v)); break;
        case 3: _t->setContactEmail(*reinterpret_cast<QString*>(_v)); break;
        case 4: _t->setSupportsSsl(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

int KNSCore::Provider::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)
            qt_static_metacall(this, _c, _id, _a);
        _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 -= 5;
    }
    return _id;
}

// SIGNAL 0
void KNSCore::Provider::providerInitialized(KNSCore::Provider * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void KNSCore::Provider::loadingFinished(const KNSCore::Provider::SearchRequest & _t1, const KNSCore::Entry::List & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void KNSCore::Provider::loadingFailed(const KNSCore::Provider::SearchRequest & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void KNSCore::Provider::entryDetailsLoaded(const KNSCore::Entry & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void KNSCore::Provider::payloadLinkLoaded(const KNSCore::Entry & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void KNSCore::Provider::commentsLoaded(const QList<std::shared_ptr<KNSCore::Comment>> _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void KNSCore::Provider::personLoaded(const std::shared_ptr<KNSCore::Author> _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

// SIGNAL 7
void KNSCore::Provider::basicsLoaded()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void KNSCore::Provider::searchPresetsLoaded(const QList<KNSCore::Provider::SearchPreset> & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}

// SIGNAL 9
void KNSCore::Provider::signalInformation(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 9, nullptr, _t1);
}

// SIGNAL 10
void KNSCore::Provider::signalError(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 10, nullptr, _t1);
}

// SIGNAL 11
void KNSCore::Provider::signalErrorCode(KNSCore::ErrorCode::ErrorCode _t1, const QString & _t2, const QVariant & _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 11, nullptr, _t1, _t2, _t3);
}

// SIGNAL 12
void KNSCore::Provider::categoriesMetadataLoded(const QList<KNSCore::Provider::CategoryMetadata> & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 12, nullptr, _t1);
}

// SIGNAL 13
void KNSCore::Provider::tagFilterChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 13, nullptr);
}

// SIGNAL 14
void KNSCore::Provider::downloadTagFilterChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 14, nullptr);
}
QT_WARNING_POP
