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

#include "../../../jami-client-qt/src/app/accountadapter.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 'accountadapter.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.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_ZN14AccountAdapterE_t {};
} // unnamed namespace

template <> constexpr inline auto AccountAdapter::qt_create_metaobjectdata<qt_meta_tag_ZN14AccountAdapterE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "AccountAdapter",
        "QML.Singleton",
        "true",
        "modelChanged",
        "",
        "accountStatusChanged",
        "accountId",
        "reportFailure",
        "accountCreationFailed",
        "accountAdded",
        "index",
        "accountRemoved",
        "accountConfigFinalized",
        "changeAccount",
        "row",
        "createJamiAccount",
        "QVariantMap",
        "settings",
        "createSIPAccount",
        "createJAMSAccount",
        "deleteCurrentAccount",
        "exportToFile",
        "path",
        "password",
        "setArchivePasswordAsync",
        "accountID",
        "savePassword",
        "oldPassword",
        "newPassword",
        "hasVideoCall",
        "setCurrAccDisplayName",
        "text",
        "setCurrentAccountAvatarFile",
        "source",
        "setCurrentAccountAvatarBase64",
        "setDefaultModerator",
        "peerURI",
        "state",
        "getDefaultModerators",
        "startImportAccount",
        "provideAccountAuthentication",
        "getImportErrorMessage",
        "details",
        "cancelImportAccount",
        "model",
        "lrc::api::AccountModel*"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'modelChanged'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'accountStatusChanged'
        QtMocHelpers::SignalData<void(QString)>(5, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 6 },
        }}),
        // Signal 'reportFailure'
        QtMocHelpers::SignalData<void()>(7, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'accountCreationFailed'
        QtMocHelpers::SignalData<void()>(8, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'accountAdded'
        QtMocHelpers::SignalData<void(const QString &, int)>(9, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 6 }, { QMetaType::Int, 10 },
        }}),
        // Signal 'accountRemoved'
        QtMocHelpers::SignalData<void(const QString &)>(11, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 6 },
        }}),
        // Signal 'accountConfigFinalized'
        QtMocHelpers::SignalData<void()>(12, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'changeAccount'
        QtMocHelpers::MethodData<void(int)>(13, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 14 },
        }}),
        // Method 'createJamiAccount'
        QtMocHelpers::MethodData<void(const QVariantMap &)>(15, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 16, 17 },
        }}),
        // Method 'createSIPAccount'
        QtMocHelpers::MethodData<void(const QVariantMap &)>(18, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 16, 17 },
        }}),
        // Method 'createJAMSAccount'
        QtMocHelpers::MethodData<void(const QVariantMap &)>(19, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 16, 17 },
        }}),
        // Method 'deleteCurrentAccount'
        QtMocHelpers::MethodData<void()>(20, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'exportToFile'
        QtMocHelpers::MethodData<bool(const QString &, const QString &, const QString &) const>(21, 4, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 6 }, { QMetaType::QString, 22 }, { QMetaType::QString, 23 },
        }}),
        // Method 'exportToFile'
        QtMocHelpers::MethodData<bool(const QString &, const QString &) const>(21, 4, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { QMetaType::QString, 6 }, { QMetaType::QString, 22 },
        }}),
        // Method 'setArchivePasswordAsync'
        QtMocHelpers::MethodData<void(const QString &, const QString &)>(24, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 25 }, { QMetaType::QString, 23 },
        }}),
        // Method 'savePassword'
        QtMocHelpers::MethodData<bool(const QString &, const QString &, const QString &)>(26, 4, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 6 }, { QMetaType::QString, 27 }, { QMetaType::QString, 28 },
        }}),
        // Method 'hasVideoCall'
        QtMocHelpers::MethodData<bool()>(29, 4, QMC::AccessPublic, QMetaType::Bool),
        // Method 'setCurrAccDisplayName'
        QtMocHelpers::MethodData<void(const QString &)>(30, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 31 },
        }}),
        // Method 'setCurrentAccountAvatarFile'
        QtMocHelpers::MethodData<void(const QString &)>(32, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 33 },
        }}),
        // Method 'setCurrentAccountAvatarBase64'
        QtMocHelpers::MethodData<void(const QString &)>(34, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 33 },
        }}),
        // Method 'setCurrentAccountAvatarBase64'
        QtMocHelpers::MethodData<void()>(34, 4, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Method 'setDefaultModerator'
        QtMocHelpers::MethodData<void(const QString &, const QString &, const bool &)>(35, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 6 }, { QMetaType::QString, 36 }, { QMetaType::Bool, 37 },
        }}),
        // Method 'getDefaultModerators'
        QtMocHelpers::MethodData<QStringList(const QString &)>(38, 4, QMC::AccessPublic, QMetaType::QStringList, {{
            { QMetaType::QString, 6 },
        }}),
        // Method 'startImportAccount'
        QtMocHelpers::MethodData<void()>(39, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'provideAccountAuthentication'
        QtMocHelpers::MethodData<void(const QString &)>(40, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 23 },
        }}),
        // Method 'provideAccountAuthentication'
        QtMocHelpers::MethodData<void()>(40, 4, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Method 'getImportErrorMessage'
        QtMocHelpers::MethodData<QString(QVariantMap)>(41, 4, QMC::AccessPublic, QMetaType::QString, {{
            { 0x80000000 | 16, 42 },
        }}),
        // Method 'cancelImportAccount'
        QtMocHelpers::MethodData<void()>(43, 4, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'model'
        QtMocHelpers::PropertyData<lrc::api::AccountModel*>(44, 0x80000000 | 45, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 0),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<AccountAdapter, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject AccountAdapter::staticMetaObject = { {
    QMetaObject::SuperData::link<QmlAdapterBase::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14AccountAdapterE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14AccountAdapterE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN14AccountAdapterE_t>.metaTypes,
    nullptr
} };

void AccountAdapter::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<AccountAdapter *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->modelChanged(); break;
        case 1: _t->accountStatusChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->reportFailure(); break;
        case 3: _t->accountCreationFailed(); break;
        case 4: _t->accountAdded((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 5: _t->accountRemoved((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 6: _t->accountConfigFinalized(); break;
        case 7: _t->changeAccount((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 8: _t->createJamiAccount((*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[1]))); break;
        case 9: _t->createSIPAccount((*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[1]))); break;
        case 10: _t->createJAMSAccount((*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[1]))); break;
        case 11: _t->deleteCurrentAccount(); break;
        case 12: { bool _r = _t->exportToFile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 13: { bool _r = _t->exportToFile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 14: _t->setArchivePasswordAsync((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 15: { bool _r = _t->savePassword((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 16: { bool _r = _t->hasVideoCall();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 17: _t->setCurrAccDisplayName((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 18: _t->setCurrentAccountAvatarFile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 19: _t->setCurrentAccountAvatarBase64((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 20: _t->setCurrentAccountAvatarBase64(); break;
        case 21: _t->setDefaultModerator((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3]))); break;
        case 22: { QStringList _r = _t->getDefaultModerators((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 23: _t->startImportAccount(); break;
        case 24: _t->provideAccountAuthentication((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 25: _t->provideAccountAuthentication(); break;
        case 26: { QString _r = _t->getImportErrorMessage((*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 27: _t->cancelImportAccount(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (AccountAdapter::*)()>(_a, &AccountAdapter::modelChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (AccountAdapter::*)(QString )>(_a, &AccountAdapter::accountStatusChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (AccountAdapter::*)()>(_a, &AccountAdapter::reportFailure, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (AccountAdapter::*)()>(_a, &AccountAdapter::accountCreationFailed, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (AccountAdapter::*)(const QString & , int )>(_a, &AccountAdapter::accountAdded, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (AccountAdapter::*)(const QString & )>(_a, &AccountAdapter::accountRemoved, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (AccountAdapter::*)()>(_a, &AccountAdapter::accountConfigFinalized, 6))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< lrc::api::AccountModel* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<lrc::api::AccountModel**>(_v) = _t->getModel(); break;
        default: break;
        }
    }
}

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

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

int AccountAdapter::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QmlAdapterBase::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 28)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 28;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 28)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 28;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
    return _id;
}

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

// SIGNAL 1
void AccountAdapter::accountStatusChanged(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

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

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

// SIGNAL 4
void AccountAdapter::accountAdded(const QString & _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1, _t2);
}

// SIGNAL 5
void AccountAdapter::accountRemoved(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void AccountAdapter::accountConfigFinalized()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}
QT_WARNING_POP
