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

#include "../../../../../neochat-26.07.90/src/app/controller.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 'controller.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.12.0. 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_ZN10ControllerE_t {};
} // unnamed namespace

template <> constexpr inline auto Controller::qt_create_metaobjectdata<qt_meta_tag_ZN10ControllerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Controller",
        "QML.Element",
        "auto",
        "QML.Singleton",
        "true",
        "errorOccured",
        "",
        "error",
        "connectionAdded",
        "NeoChatConnection*",
        "connection",
        "connectionDropped",
        "activeConnectionChanged",
        "accountsLoadingChanged",
        "globalUrlPreviewDefaultChanged",
        "setQuitOnLastWindowClosed",
        "updateBadgeNotificationCount",
        "count",
        "clearInvitationNotification",
        "roomId",
        "loadFileContent",
        "path",
        "removeConnection",
        "userId",
        "revertToDefaultConfig",
        "translateToSaveDirectory",
        "QUrl",
        "selectedFile",
        "currentFolder",
        "activeConnection",
        "supportSystemTray",
        "isFlatpak",
        "accountsLoading",
        "libquotientMinorVersion"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'errorOccured'
        QtMocHelpers::SignalData<void(const QString &)>(5, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 },
        }}),
        // Signal 'connectionAdded'
        QtMocHelpers::SignalData<void(NeoChatConnection *)>(8, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Signal 'connectionDropped'
        QtMocHelpers::SignalData<void(NeoChatConnection *)>(11, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Signal 'activeConnectionChanged'
        QtMocHelpers::SignalData<void(NeoChatConnection *)>(12, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Signal 'accountsLoadingChanged'
        QtMocHelpers::SignalData<void()>(13, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'globalUrlPreviewDefaultChanged'
        QtMocHelpers::SignalData<void()>(14, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setQuitOnLastWindowClosed'
        QtMocHelpers::SlotData<void()>(15, 6, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'updateBadgeNotificationCount'
        QtMocHelpers::SlotData<void(int)>(16, 6, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 17 },
        }}),
        // Method 'clearInvitationNotification'
        QtMocHelpers::MethodData<void(const QString &)>(18, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 19 },
        }}),
        // Method 'loadFileContent'
        QtMocHelpers::MethodData<QString(const QString &)>(20, 6, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 21 },
        }}),
        // Method 'removeConnection'
        QtMocHelpers::MethodData<void(const QString &) const>(22, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 23 },
        }}),
        // Method 'revertToDefaultConfig'
        QtMocHelpers::MethodData<void()>(24, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'translateToSaveDirectory'
        QtMocHelpers::MethodData<QString(const QUrl &, const QUrl &) const>(25, 6, QMC::AccessPublic, QMetaType::QString, {{
            { 0x80000000 | 26, 27 }, { 0x80000000 | 26, 28 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'activeConnection'
        QtMocHelpers::PropertyData<NeoChatConnection*>(29, 0x80000000 | 9, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 3),
        // property 'supportSystemTray'
        QtMocHelpers::PropertyData<bool>(30, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'isFlatpak'
        QtMocHelpers::PropertyData<bool>(31, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'accountsLoading'
        QtMocHelpers::PropertyData<QStringList>(32, QMetaType::QStringList, QMC::DefaultPropertyFlags, 4),
        // property 'libquotientMinorVersion'
        QtMocHelpers::PropertyData<int>(33, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<Controller, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject Controller::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10ControllerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10ControllerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10ControllerE_t>.metaTypes,
    nullptr
} };

void Controller::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Controller *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->errorOccured((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->connectionAdded((*reinterpret_cast<std::add_pointer_t<NeoChatConnection*>>(_a[1]))); break;
        case 2: _t->connectionDropped((*reinterpret_cast<std::add_pointer_t<NeoChatConnection*>>(_a[1]))); break;
        case 3: _t->activeConnectionChanged((*reinterpret_cast<std::add_pointer_t<NeoChatConnection*>>(_a[1]))); break;
        case 4: _t->accountsLoadingChanged(); break;
        case 5: _t->globalUrlPreviewDefaultChanged(); break;
        case 6: _t->setQuitOnLastWindowClosed(); break;
        case 7: _t->updateBadgeNotificationCount((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 8: _t->clearInvitationNotification((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 9: { QString _r = _t->loadFileContent((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 10: _t->removeConnection((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 11: _t->revertToDefaultConfig(); break;
        case 12: { QString _r = _t->translateToSaveDirectory((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< NeoChatConnection* >(); break;
            }
            break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< NeoChatConnection* >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< NeoChatConnection* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Controller::*)(const QString & )>(_a, &Controller::errorOccured, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Controller::*)(NeoChatConnection * )>(_a, &Controller::connectionAdded, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Controller::*)(NeoChatConnection * )>(_a, &Controller::connectionDropped, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Controller::*)(NeoChatConnection * )>(_a, &Controller::activeConnectionChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Controller::*)()>(_a, &Controller::accountsLoadingChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Controller::*)()>(_a, &Controller::globalUrlPreviewDefaultChanged, 5))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< NeoChatConnection* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<NeoChatConnection**>(_v) = _t->activeConnection(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->supportSystemTray(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->isFlatpak(); break;
        case 3: *reinterpret_cast<QStringList*>(_v) = _t->accountsLoading(); break;
        case 4: *reinterpret_cast<int*>(_v) = _t->libquotientMinorVersion(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setActiveConnection(*reinterpret_cast<NeoChatConnection**>(_v)); break;
        default: break;
        }
    }
}

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

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

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

// SIGNAL 0
void Controller::errorOccured(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Controller::connectionAdded(NeoChatConnection * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Controller::connectionDropped(NeoChatConnection * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Controller::activeConnectionChanged(NeoChatConnection * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Controller::accountsLoadingChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void Controller::globalUrlPreviewDefaultChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
QT_WARNING_POP
