/****************************************************************************
** Meta object code from reading C++ file 'request.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 "../../../snapd-qt/Snapd/request.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 'request.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_ZN13QSnapdRequestE_t {};
} // unnamed namespace

template <> constexpr inline auto QSnapdRequest::qt_create_metaobjectdata<qt_meta_tag_ZN13QSnapdRequestE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QSnapdRequest",
        "progress",
        "",
        "complete",
        "runSync",
        "runAsync",
        "cancel",
        "change",
        "QSnapdChange*",
        "isFinished",
        "error",
        "QSnapdError",
        "errorString",
        "QSnapdChange",
        "NoError",
        "UnknownError",
        "ConnectionFailed",
        "WriteFailed",
        "ReadFailed",
        "BadRequest",
        "BadResponse",
        "AuthDataRequired",
        "AuthDataInvalid",
        "TwoFactorRequired",
        "TwoFactorInvalid",
        "PermissionDenied",
        "Failed",
        "TermsNotAccepted",
        "PaymentNotSetup",
        "PaymentDeclined",
        "AlreadyInstalled",
        "NotInstalled",
        "NoUpdateAvailable",
        "PasswordPolicyError",
        "NeedsDevmode",
        "NeedsClassic",
        "NeedsClassicSystem",
        "Cancelled",
        "BadQuery",
        "NetworkTimeout",
        "NotFound",
        "NotInStore",
        "AuthCancelled",
        "NotClassic",
        "RevisionNotAvailable",
        "ChannelNotAvailable",
        "NotASnap",
        "DNSFailure",
        "OptionNotFound",
        "AppNotFound",
        "ArchitectureNotAvailable",
        "ChangeConflict",
        "InterfacesUnchanged"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'progress'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'complete'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'runSync'
        QtMocHelpers::MethodData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'runAsync'
        QtMocHelpers::MethodData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'cancel'
        QtMocHelpers::MethodData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'change'
        QtMocHelpers::MethodData<QSnapdChange *() const>(7, 2, QMC::AccessPublic, 0x80000000 | 8),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'isFinished'
        QtMocHelpers::PropertyData<bool>(9, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'error'
        QtMocHelpers::PropertyData<enum QSnapdError>(10, 0x80000000 | 11, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
        // property 'errorString'
        QtMocHelpers::PropertyData<QString>(12, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'change'
        QtMocHelpers::PropertyData<QSnapdChange>(7, 0x80000000 | 13, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'QSnapdError'
        QtMocHelpers::EnumData<enum QSnapdError>(11, 11, QMC::EnumFlags{}).add({
            {   14, QSnapdError::NoError },
            {   15, QSnapdError::UnknownError },
            {   16, QSnapdError::ConnectionFailed },
            {   17, QSnapdError::WriteFailed },
            {   18, QSnapdError::ReadFailed },
            {   19, QSnapdError::BadRequest },
            {   20, QSnapdError::BadResponse },
            {   21, QSnapdError::AuthDataRequired },
            {   22, QSnapdError::AuthDataInvalid },
            {   23, QSnapdError::TwoFactorRequired },
            {   24, QSnapdError::TwoFactorInvalid },
            {   25, QSnapdError::PermissionDenied },
            {   26, QSnapdError::Failed },
            {   27, QSnapdError::TermsNotAccepted },
            {   28, QSnapdError::PaymentNotSetup },
            {   29, QSnapdError::PaymentDeclined },
            {   30, QSnapdError::AlreadyInstalled },
            {   31, QSnapdError::NotInstalled },
            {   32, QSnapdError::NoUpdateAvailable },
            {   33, QSnapdError::PasswordPolicyError },
            {   34, QSnapdError::NeedsDevmode },
            {   35, QSnapdError::NeedsClassic },
            {   36, QSnapdError::NeedsClassicSystem },
            {   37, QSnapdError::Cancelled },
            {   38, QSnapdError::BadQuery },
            {   39, QSnapdError::NetworkTimeout },
            {   40, QSnapdError::NotFound },
            {   41, QSnapdError::NotInStore },
            {   42, QSnapdError::AuthCancelled },
            {   43, QSnapdError::NotClassic },
            {   44, QSnapdError::RevisionNotAvailable },
            {   45, QSnapdError::ChannelNotAvailable },
            {   46, QSnapdError::NotASnap },
            {   47, QSnapdError::DNSFailure },
            {   48, QSnapdError::OptionNotFound },
            {   49, QSnapdError::AppNotFound },
            {   50, QSnapdError::ArchitectureNotAvailable },
            {   51, QSnapdError::ChangeConflict },
            {   52, QSnapdError::InterfacesUnchanged },
        }),
    };
    return QtMocHelpers::metaObjectData<QSnapdRequest, qt_meta_tag_ZN13QSnapdRequestE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject QSnapdRequest::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13QSnapdRequestE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13QSnapdRequestE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13QSnapdRequestE_t>.metaTypes,
    nullptr
} };

void QSnapdRequest::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QSnapdRequest *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->progress(); break;
        case 1: _t->complete(); break;
        case 2: _t->runSync(); break;
        case 3: _t->runAsync(); break;
        case 4: _t->cancel(); break;
        case 5: { QSnapdChange* _r = _t->change();
            if (_a[0]) *reinterpret_cast<QSnapdChange**>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QSnapdRequest::*)()>(_a, &QSnapdRequest::progress, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QSnapdRequest::*)()>(_a, &QSnapdRequest::complete, 1))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->isFinished(); break;
        case 1: *reinterpret_cast<enum QSnapdError*>(_v) = _t->error(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->errorString(); break;
        case 3: _a[0] = const_cast<void*>(reinterpret_cast<const void*>(_t->change())); break;
        default: break;
        }
    }
}

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

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

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

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

// SIGNAL 1
void QSnapdRequest::complete()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
