/****************************************************************************
** Meta object code from reading C++ file 'spellcheckadapter.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 "../../../jami-client-qt/src/app/spellcheckadapter.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 'spellcheckadapter.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_ZN17SpellCheckAdapterE_t {};
} // unnamed namespace

template <> constexpr inline auto SpellCheckAdapter::qt_create_metaobjectdata<qt_meta_tag_ZN17SpellCheckAdapterE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "SpellCheckAdapter",
        "QML.Singleton",
        "true",
        "installedDictionaryCountChanged",
        "",
        "hasLoadedDictionaryChanged",
        "dictionaryChanged",
        "downloadFailed",
        "locale",
        "setDictionary",
        "getDictionaryListModel",
        "QVariant",
        "getInstalledDictionaries",
        "QVariantMap",
        "installDictionary",
        "uninstallDictionary",
        "spellSuggestionsRequest",
        "QVariantList",
        "word",
        "spell",
        "findWords",
        "text",
        "installedDictionaryCount",
        "hasLoadedDictionary"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'installedDictionaryCountChanged'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'hasLoadedDictionaryChanged'
        QtMocHelpers::SignalData<void()>(5, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'dictionaryChanged'
        QtMocHelpers::SignalData<void()>(6, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'downloadFailed'
        QtMocHelpers::SignalData<void(const QString &)>(7, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 },
        }}),
        // Slot 'setDictionary'
        QtMocHelpers::SlotData<void(const QString &)>(9, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 },
        }}),
        // Method 'getDictionaryListModel'
        QtMocHelpers::MethodData<QVariant() const>(10, 4, QMC::AccessPublic, 0x80000000 | 11),
        // Method 'getInstalledDictionaries'
        QtMocHelpers::MethodData<QVariantMap() const>(12, 4, QMC::AccessPublic, 0x80000000 | 13),
        // Method 'installDictionary'
        QtMocHelpers::MethodData<void(const QString &)>(14, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 },
        }}),
        // Method 'uninstallDictionary'
        QtMocHelpers::MethodData<void(const QString &)>(15, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 },
        }}),
        // Method 'spellSuggestionsRequest'
        QtMocHelpers::MethodData<QVariantList(const QString &)>(16, 4, QMC::AccessPublic, 0x80000000 | 17, {{
            { QMetaType::QString, 18 },
        }}),
        // Method 'spell'
        QtMocHelpers::MethodData<bool(const QString &)>(19, 4, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 18 },
        }}),
        // Method 'findWords'
        QtMocHelpers::MethodData<QVariantList(const QString &)>(20, 4, QMC::AccessPublic, 0x80000000 | 17, {{
            { QMetaType::QString, 21 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'installedDictionaryCount'
        QtMocHelpers::PropertyData<int>(22, QMetaType::Int, QMC::DefaultPropertyFlags, 0),
        // property 'hasLoadedDictionary'
        QtMocHelpers::PropertyData<bool>(23, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<SpellCheckAdapter, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject SpellCheckAdapter::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17SpellCheckAdapterE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17SpellCheckAdapterE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN17SpellCheckAdapterE_t>.metaTypes,
    nullptr
} };

void SpellCheckAdapter::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SpellCheckAdapter *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->installedDictionaryCountChanged(); break;
        case 1: _t->hasLoadedDictionaryChanged(); break;
        case 2: _t->dictionaryChanged(); break;
        case 3: _t->downloadFailed((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->setDictionary((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: { QVariant _r = _t->getDictionaryListModel();
            if (_a[0]) *reinterpret_cast<QVariant*>(_a[0]) = std::move(_r); }  break;
        case 6: { QVariantMap _r = _t->getInstalledDictionaries();
            if (_a[0]) *reinterpret_cast<QVariantMap*>(_a[0]) = std::move(_r); }  break;
        case 7: _t->installDictionary((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 8: _t->uninstallDictionary((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 9: { QVariantList _r = _t->spellSuggestionsRequest((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariantList*>(_a[0]) = std::move(_r); }  break;
        case 10: { bool _r = _t->spell((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 11: { QVariantList _r = _t->findWords((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariantList*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (SpellCheckAdapter::*)()>(_a, &SpellCheckAdapter::installedDictionaryCountChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (SpellCheckAdapter::*)()>(_a, &SpellCheckAdapter::hasLoadedDictionaryChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (SpellCheckAdapter::*)()>(_a, &SpellCheckAdapter::dictionaryChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (SpellCheckAdapter::*)(const QString & )>(_a, &SpellCheckAdapter::downloadFailed, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<int*>(_v) = _t->get_installedDictionaryCount(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->get_hasLoadedDictionary(); break;
        default: break;
        }
    }
}

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

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

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

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

// SIGNAL 1
void SpellCheckAdapter::hasLoadedDictionaryChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

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

// SIGNAL 3
void SpellCheckAdapter::downloadFailed(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}
QT_WARNING_POP
