/****************************************************************************
** Meta object code from reading C++ file 'browserreauthcontroller.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.11.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../../../nextcloud-client/src/gui/wizard/browserreauthcontroller.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 'browserreauthcontroller.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.2. 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_ZN3OCC23BrowserReAuthControllerE_t {};
} // unnamed namespace

template <> constexpr inline auto OCC::BrowserReAuthController::qt_create_metaobjectdata<qt_meta_tag_ZN3OCC23BrowserReAuthControllerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "OCC::BrowserReAuthController",
        "busyChanged",
        "",
        "authPollingChanged",
        "finishedChanged",
        "errorTextChanged",
        "infoTextChanged",
        "loginUrlChanged",
        "credentialsReady",
        "user",
        "appPassword",
        "cancelled",
        "slotAuthResult",
        "OCC::Flow2Auth::Result",
        "result",
        "errorString",
        "slotStatusChanged",
        "OCC::Flow2Auth::PollStatus",
        "status",
        "secondsLeft",
        "openBrowserLogin",
        "copyLoginLink",
        "pollNow",
        "cancel",
        "busy",
        "authPolling",
        "finished",
        "errorText",
        "infoText",
        "loginUrl",
        "QUrl"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'busyChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'authPollingChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'finishedChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'errorTextChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'infoTextChanged'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'loginUrlChanged'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'credentialsReady'
        QtMocHelpers::SignalData<void(const QString &, const QString &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 }, { QMetaType::QString, 10 },
        }}),
        // Signal 'cancelled'
        QtMocHelpers::SignalData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotAuthResult'
        QtMocHelpers::SlotData<void(OCC::Flow2Auth::Result, const QString &, const QString &, const QString &)>(12, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 13, 14 }, { QMetaType::QString, 15 }, { QMetaType::QString, 9 }, { QMetaType::QString, 10 },
        }}),
        // Slot 'slotStatusChanged'
        QtMocHelpers::SlotData<void(OCC::Flow2Auth::PollStatus, int)>(16, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 17, 18 }, { QMetaType::Int, 19 },
        }}),
        // Method 'openBrowserLogin'
        QtMocHelpers::MethodData<void()>(20, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'copyLoginLink'
        QtMocHelpers::MethodData<void()>(21, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'pollNow'
        QtMocHelpers::MethodData<void()>(22, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'cancel'
        QtMocHelpers::MethodData<void()>(23, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'busy'
        QtMocHelpers::PropertyData<bool>(24, QMetaType::Bool, QMC::DefaultPropertyFlags, 0),
        // property 'authPolling'
        QtMocHelpers::PropertyData<bool>(25, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
        // property 'finished'
        QtMocHelpers::PropertyData<bool>(26, QMetaType::Bool, QMC::DefaultPropertyFlags, 2),
        // property 'errorText'
        QtMocHelpers::PropertyData<QString>(27, QMetaType::QString, QMC::DefaultPropertyFlags, 3),
        // property 'infoText'
        QtMocHelpers::PropertyData<QString>(28, QMetaType::QString, QMC::DefaultPropertyFlags, 4),
        // property 'loginUrl'
        QtMocHelpers::PropertyData<QUrl>(29, 0x80000000 | 30, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 5),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<BrowserReAuthController, qt_meta_tag_ZN3OCC23BrowserReAuthControllerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject OCC::BrowserReAuthController::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3OCC23BrowserReAuthControllerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3OCC23BrowserReAuthControllerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3OCC23BrowserReAuthControllerE_t>.metaTypes,
    nullptr
} };

void OCC::BrowserReAuthController::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<BrowserReAuthController *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->busyChanged(); break;
        case 1: _t->authPollingChanged(); break;
        case 2: _t->finishedChanged(); break;
        case 3: _t->errorTextChanged(); break;
        case 4: _t->infoTextChanged(); break;
        case 5: _t->loginUrlChanged(); break;
        case 6: _t->credentialsReady((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 7: _t->cancelled(); break;
        case 8: _t->slotAuthResult((*reinterpret_cast<std::add_pointer_t<OCC::Flow2Auth::Result>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4]))); break;
        case 9: _t->slotStatusChanged((*reinterpret_cast<std::add_pointer_t<OCC::Flow2Auth::PollStatus>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 10: _t->openBrowserLogin(); break;
        case 11: _t->copyLoginLink(); break;
        case 12: _t->pollNow(); break;
        case 13: _t->cancel(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (BrowserReAuthController::*)()>(_a, &BrowserReAuthController::busyChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (BrowserReAuthController::*)()>(_a, &BrowserReAuthController::authPollingChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (BrowserReAuthController::*)()>(_a, &BrowserReAuthController::finishedChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (BrowserReAuthController::*)()>(_a, &BrowserReAuthController::errorTextChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (BrowserReAuthController::*)()>(_a, &BrowserReAuthController::infoTextChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (BrowserReAuthController::*)()>(_a, &BrowserReAuthController::loginUrlChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (BrowserReAuthController::*)(const QString & , const QString & )>(_a, &BrowserReAuthController::credentialsReady, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (BrowserReAuthController::*)()>(_a, &BrowserReAuthController::cancelled, 7))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->busy(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->authPolling(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->finished(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->errorText(); break;
        case 4: *reinterpret_cast<QString*>(_v) = _t->infoText(); break;
        case 5: *reinterpret_cast<QUrl*>(_v) = _t->loginUrl(); break;
        default: break;
        }
    }
}

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

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

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

// SIGNAL 0
void OCC::BrowserReAuthController::busyChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void OCC::BrowserReAuthController::authPollingChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void OCC::BrowserReAuthController::finishedChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void OCC::BrowserReAuthController::errorTextChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void OCC::BrowserReAuthController::infoTextChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void OCC::BrowserReAuthController::loginUrlChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void OCC::BrowserReAuthController::credentialsReady(const QString & _t1, const QString & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1, _t2);
}

// SIGNAL 7
void OCC::BrowserReAuthController::cancelled()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}
QT_WARNING_POP
