/****************************************************************************
** Meta object code from reading C++ file 'appversionmanager.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 "../../../jami-client-qt/src/app/appversionmanager.h"
#include <QtNetwork/QSslError>
#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 'appversionmanager.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_ZN17AppVersionManagerE_t {};
} // unnamed namespace

template <> constexpr inline auto AppVersionManager::qt_create_metaobjectdata<qt_meta_tag_ZN17AppVersionManagerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "AppVersionManager",
        "appCloseRequested",
        "",
        "updateCheckReplyReceived",
        "ok",
        "found",
        "updateDownloadProgressChanged",
        "bytesRead",
        "totalBytes",
        "networkErrorOccurred",
        "NetworkManager::GetError",
        "error",
        "checkForUpdates",
        "quiet",
        "applyUpdates",
        "beta",
        "isUpdaterEnabled",
        "isAutoUpdaterEnabled",
        "setAutoUpdateCheck",
        "state",
        "cancelUpdate",
        "isCurrentVersionBeta"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'appCloseRequested'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'updateCheckReplyReceived'
        QtMocHelpers::SignalData<void(bool, bool)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 4 }, { QMetaType::Bool, 5 },
        }}),
        // Signal 'updateCheckReplyReceived'
        QtMocHelpers::SignalData<void(bool)>(3, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::Bool, 4 },
        }}),
        // Signal 'updateDownloadProgressChanged'
        QtMocHelpers::SignalData<void(qint64, qint64)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::LongLong, 7 }, { QMetaType::LongLong, 8 },
        }}),
        // Signal 'networkErrorOccurred'
        QtMocHelpers::SignalData<void(const NetworkManager::GetError &)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Method 'checkForUpdates'
        QtMocHelpers::MethodData<void(bool)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 13 },
        }}),
        // Method 'checkForUpdates'
        QtMocHelpers::MethodData<void()>(12, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Method 'applyUpdates'
        QtMocHelpers::MethodData<void(bool)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 15 },
        }}),
        // Method 'applyUpdates'
        QtMocHelpers::MethodData<void()>(14, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Method 'isUpdaterEnabled'
        QtMocHelpers::MethodData<bool()>(16, 2, QMC::AccessPublic, QMetaType::Bool),
        // Method 'isAutoUpdaterEnabled'
        QtMocHelpers::MethodData<bool()>(17, 2, QMC::AccessPublic, QMetaType::Bool),
        // Method 'setAutoUpdateCheck'
        QtMocHelpers::MethodData<void(bool)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 19 },
        }}),
        // Method 'cancelUpdate'
        QtMocHelpers::MethodData<void()>(20, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'isCurrentVersionBeta'
        QtMocHelpers::MethodData<bool()>(21, 2, QMC::AccessPublic, QMetaType::Bool),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<AppVersionManager, qt_meta_tag_ZN17AppVersionManagerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject AppVersionManager::staticMetaObject = { {
    QMetaObject::SuperData::link<NetworkManager::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17AppVersionManagerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17AppVersionManagerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN17AppVersionManagerE_t>.metaTypes,
    nullptr
} };

void AppVersionManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<AppVersionManager *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->appCloseRequested(); break;
        case 1: _t->updateCheckReplyReceived((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 2: _t->updateCheckReplyReceived((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 3: _t->updateDownloadProgressChanged((*reinterpret_cast<std::add_pointer_t<qint64>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<qint64>>(_a[2]))); break;
        case 4: _t->networkErrorOccurred((*reinterpret_cast<std::add_pointer_t<NetworkManager::GetError>>(_a[1]))); break;
        case 5: _t->checkForUpdates((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 6: _t->checkForUpdates(); break;
        case 7: _t->applyUpdates((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 8: _t->applyUpdates(); break;
        case 9: { bool _r = _t->isUpdaterEnabled();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 10: { bool _r = _t->isAutoUpdaterEnabled();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 11: _t->setAutoUpdateCheck((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 12: _t->cancelUpdate(); break;
        case 13: { bool _r = _t->isCurrentVersionBeta();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (AppVersionManager::*)()>(_a, &AppVersionManager::appCloseRequested, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (AppVersionManager::*)(bool , bool )>(_a, &AppVersionManager::updateCheckReplyReceived, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (AppVersionManager::*)(qint64 , qint64 )>(_a, &AppVersionManager::updateDownloadProgressChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (AppVersionManager::*)(const NetworkManager::GetError & )>(_a, &AppVersionManager::networkErrorOccurred, 4))
            return;
    }
}

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

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

int AppVersionManager::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = NetworkManager::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;
    }
    return _id;
}

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

// SIGNAL 1
void AppVersionManager::updateCheckReplyReceived(bool _t1, bool _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 3
void AppVersionManager::updateDownloadProgressChanged(qint64 _t1, qint64 _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1, _t2);
}

// SIGNAL 4
void AppVersionManager::networkErrorOccurred(const NetworkManager::GetError & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
