/****************************************************************************
** Meta object code from reading C++ file 'basejob.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 "../../../libQuotient/Quotient/jobs/basejob.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 'basejob.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_ZN8Quotient7BaseJobE_t {};
} // unnamed namespace

template <> constexpr inline auto Quotient::BaseJob::qt_create_metaobjectdata<qt_meta_tag_ZN8Quotient7BaseJobE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Quotient::BaseJob",
        "aboutToSendRequest",
        "",
        "QNetworkRequest*",
        "req",
        "sentRequest",
        "statusChanged",
        "Quotient::BaseJob::Status",
        "newStatus",
        "retryScheduled",
        "nextRetryNumber",
        "Quotient::BaseJob::duration_ms_t",
        "inMilliseconds",
        "rateLimited",
        "finished",
        "Quotient::BaseJob*",
        "job",
        "result",
        "success",
        "failure",
        "downloadProgress",
        "bytesReceived",
        "bytesTotal",
        "uploadProgress",
        "bytesSent",
        "initiate",
        "Quotient::ConnectionData*",
        "connData",
        "inBackground",
        "abandon",
        "timeout",
        "sendRequest",
        "gotReply",
        "getCurrentTimeoutMs",
        "getNextRetryMs",
        "millisToRetry",
        "requestUrl",
        "QUrl",
        "maxRetries",
        "statusCode",
        "StatusCode",
        "Success",
        "NoError",
        "Pending",
        "WarningLevel",
        "UnexpectedResponseType",
        "UnexpectedResponseTypeWarning",
        "Unprepared",
        "Abandoned",
        "ErrorLevel",
        "NetworkError",
        "Timeout",
        "Unauthorised",
        "ContentAccessError",
        "NotFound",
        "IncorrectRequest",
        "IncorrectResponse",
        "TooManyRequests",
        "RateLimited",
        "RequestNotImplemented",
        "UnsupportedRoomVersion",
        "NetworkAuthRequired",
        "UserConsentRequired",
        "CannotLeaveRoom",
        "UserDeactivated",
        "FileError",
        "AccountLocked",
        "UserDefinedError"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'aboutToSendRequest'
        QtMocHelpers::SignalData<void(QNetworkRequest *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'sentRequest'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'statusChanged'
        QtMocHelpers::SignalData<void(Quotient::BaseJob::Status)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 8 },
        }}),
        // Signal 'retryScheduled'
        QtMocHelpers::SignalData<void(int, Quotient::BaseJob::duration_ms_t)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 10 }, { 0x80000000 | 11, 12 },
        }}),
        // Signal 'rateLimited'
        QtMocHelpers::SignalData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'finished'
        QtMocHelpers::SignalData<void(Quotient::BaseJob *)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 16 },
        }}),
        // Signal 'result'
        QtMocHelpers::SignalData<void(Quotient::BaseJob *)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 16 },
        }}),
        // Signal 'success'
        QtMocHelpers::SignalData<void(Quotient::BaseJob *)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 2 },
        }}),
        // Signal 'failure'
        QtMocHelpers::SignalData<void(Quotient::BaseJob *)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 2 },
        }}),
        // Signal 'downloadProgress'
        QtMocHelpers::SignalData<void(qint64, qint64)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::LongLong, 21 }, { QMetaType::LongLong, 22 },
        }}),
        // Signal 'uploadProgress'
        QtMocHelpers::SignalData<void(qint64, qint64)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::LongLong, 24 }, { QMetaType::LongLong, 22 },
        }}),
        // Slot 'initiate'
        QtMocHelpers::SlotData<void(Quotient::ConnectionData *, bool)>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 26, 27 }, { QMetaType::Bool, 28 },
        }}),
        // Slot 'abandon'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'timeout'
        QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'sendRequest'
        QtMocHelpers::SlotData<void()>(31, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'gotReply'
        QtMocHelpers::SlotData<void()>(32, 2, QMC::AccessPrivate, QMetaType::Void),
        // Method 'getCurrentTimeoutMs'
        QtMocHelpers::MethodData<Quotient::BaseJob::duration_ms_t() const>(33, 2, QMC::AccessPublic, 0x80000000 | 11),
        // Method 'getNextRetryMs'
        QtMocHelpers::MethodData<Quotient::BaseJob::duration_ms_t() const>(34, 2, QMC::AccessPublic, 0x80000000 | 11),
        // Method 'millisToRetry'
        QtMocHelpers::MethodData<Quotient::BaseJob::duration_ms_t() const>(35, 2, QMC::AccessPublic, 0x80000000 | 11),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'requestUrl'
        QtMocHelpers::PropertyData<QUrl>(36, 0x80000000 | 37, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'maxRetries'
        QtMocHelpers::PropertyData<int>(38, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'statusCode'
        QtMocHelpers::PropertyData<int>(39, QMetaType::Int, QMC::DefaultPropertyFlags, 2),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'StatusCode'
        QtMocHelpers::EnumData<enum StatusCode>(40, 40, QMC::EnumFlags{}).add({
            {   41, StatusCode::Success },
            {   42, StatusCode::NoError },
            {   43, StatusCode::Pending },
            {   44, StatusCode::WarningLevel },
            {   45, StatusCode::UnexpectedResponseType },
            {   46, StatusCode::UnexpectedResponseTypeWarning },
            {   47, StatusCode::Unprepared },
            {   48, StatusCode::Abandoned },
            {   49, StatusCode::ErrorLevel },
            {   50, StatusCode::NetworkError },
            {   51, StatusCode::Timeout },
            {   52, StatusCode::Unauthorised },
            {   53, StatusCode::ContentAccessError },
            {   54, StatusCode::NotFound },
            {   55, StatusCode::IncorrectRequest },
            {   56, StatusCode::IncorrectResponse },
            {   57, StatusCode::TooManyRequests },
            {   58, StatusCode::RateLimited },
            {   59, StatusCode::RequestNotImplemented },
            {   60, StatusCode::UnsupportedRoomVersion },
            {   61, StatusCode::NetworkAuthRequired },
            {   62, StatusCode::UserConsentRequired },
            {   63, StatusCode::CannotLeaveRoom },
            {   64, StatusCode::UserDeactivated },
            {   65, StatusCode::FileError },
            {   66, StatusCode::AccountLocked },
            {   67, StatusCode::UserDefinedError },
        }),
    };
    return QtMocHelpers::metaObjectData<BaseJob, qt_meta_tag_ZN8Quotient7BaseJobE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Quotient::BaseJob::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Quotient7BaseJobE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Quotient7BaseJobE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Quotient7BaseJobE_t>.metaTypes,
    nullptr
} };

void Quotient::BaseJob::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<BaseJob *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->aboutToSendRequest((*reinterpret_cast<std::add_pointer_t<QNetworkRequest*>>(_a[1]))); break;
        case 1: _t->sentRequest(); break;
        case 2: _t->statusChanged((*reinterpret_cast<std::add_pointer_t<Quotient::BaseJob::Status>>(_a[1]))); break;
        case 3: _t->retryScheduled((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Quotient::BaseJob::duration_ms_t>>(_a[2]))); break;
        case 4: _t->rateLimited(); break;
        case 5: _t->finished((*reinterpret_cast<std::add_pointer_t<Quotient::BaseJob*>>(_a[1]))); break;
        case 6: _t->result((*reinterpret_cast<std::add_pointer_t<Quotient::BaseJob*>>(_a[1]))); break;
        case 7: _t->success((*reinterpret_cast<std::add_pointer_t<Quotient::BaseJob*>>(_a[1]))); break;
        case 8: _t->failure((*reinterpret_cast<std::add_pointer_t<Quotient::BaseJob*>>(_a[1]))); break;
        case 9: _t->downloadProgress((*reinterpret_cast<std::add_pointer_t<qint64>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<qint64>>(_a[2]))); break;
        case 10: _t->uploadProgress((*reinterpret_cast<std::add_pointer_t<qint64>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<qint64>>(_a[2]))); break;
        case 11: _t->initiate((*reinterpret_cast<std::add_pointer_t<Quotient::ConnectionData*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 12: _t->abandon(); break;
        case 13: _t->timeout(); break;
        case 14: _t->sendRequest(); break;
        case 15: _t->gotReply(); break;
        case 16: { Quotient::BaseJob::duration_ms_t _r = _t->getCurrentTimeoutMs();
            if (_a[0]) *reinterpret_cast<Quotient::BaseJob::duration_ms_t*>(_a[0]) = std::move(_r); }  break;
        case 17: { Quotient::BaseJob::duration_ms_t _r = _t->getNextRetryMs();
            if (_a[0]) *reinterpret_cast<Quotient::BaseJob::duration_ms_t*>(_a[0]) = std::move(_r); }  break;
        case 18: { Quotient::BaseJob::duration_ms_t _r = _t->millisToRetry();
            if (_a[0]) *reinterpret_cast<Quotient::BaseJob::duration_ms_t*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); 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< Quotient::BaseJob* >(); break;
            }
            break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Quotient::BaseJob* >(); break;
            }
            break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Quotient::BaseJob* >(); 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< Quotient::BaseJob* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (BaseJob::*)(QNetworkRequest * )>(_a, &BaseJob::aboutToSendRequest, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (BaseJob::*)()>(_a, &BaseJob::sentRequest, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (BaseJob::*)(Quotient::BaseJob::Status )>(_a, &BaseJob::statusChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (BaseJob::*)(int , Quotient::BaseJob::duration_ms_t )>(_a, &BaseJob::retryScheduled, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (BaseJob::*)()>(_a, &BaseJob::rateLimited, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (BaseJob::*)(Quotient::BaseJob * )>(_a, &BaseJob::finished, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (BaseJob::*)(Quotient::BaseJob * )>(_a, &BaseJob::result, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (BaseJob::*)(Quotient::BaseJob * )>(_a, &BaseJob::success, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (BaseJob::*)(Quotient::BaseJob * )>(_a, &BaseJob::failure, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (BaseJob::*)(qint64 , qint64 )>(_a, &BaseJob::downloadProgress, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (BaseJob::*)(qint64 , qint64 )>(_a, &BaseJob::uploadProgress, 10))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QUrl*>(_v) = _t->requestUrl(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->maxRetries(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->error(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setMaxRetries(*reinterpret_cast<int*>(_v)); break;
        default: break;
        }
    }
}

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

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

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

// SIGNAL 0
void Quotient::BaseJob::aboutToSendRequest(QNetworkRequest * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Quotient::BaseJob::sentRequest()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void Quotient::BaseJob::statusChanged(Quotient::BaseJob::Status _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Quotient::BaseJob::retryScheduled(int _t1, Quotient::BaseJob::duration_ms_t _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1, _t2);
}

// SIGNAL 4
void Quotient::BaseJob::rateLimited()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void Quotient::BaseJob::finished(Quotient::BaseJob * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void Quotient::BaseJob::result(Quotient::BaseJob * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

// SIGNAL 7
void Quotient::BaseJob::success(Quotient::BaseJob * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}

// SIGNAL 8
void Quotient::BaseJob::failure(Quotient::BaseJob * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}

// SIGNAL 9
void Quotient::BaseJob::downloadProgress(qint64 _t1, qint64 _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 9, nullptr, _t1, _t2);
}

// SIGNAL 10
void Quotient::BaseJob::uploadProgress(qint64 _t1, qint64 _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 10, nullptr, _t1, _t2);
}
QT_WARNING_POP
