/****************************************************************************
** Meta object code from reading C++ file 'chatkeyhelper.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.80/src/libneochat/chatkeyhelper.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 'chatkeyhelper.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_ZN13ChatKeyHelperE_t {};
} // unnamed namespace

template <> constexpr inline auto ChatKeyHelper::qt_create_metaobjectdata<qt_meta_tag_ZN13ChatKeyHelperE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ChatKeyHelper",
        "QML.Element",
        "auto",
        "unhandledUp",
        "",
        "isCompleting",
        "unhandledDown",
        "unhandledTab",
        "unhandledDelete",
        "unhandledBackspace",
        "unhandledReturn",
        "closeCompletion",
        "requestReply",
        "eventId",
        "imagePasted",
        "filePath",
        "handleKey",
        "Qt::Key",
        "key",
        "Qt::KeyboardModifiers",
        "modifiers"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'unhandledUp'
        QtMocHelpers::SignalData<void(bool)>(3, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 5 },
        }}),
        // Signal 'unhandledDown'
        QtMocHelpers::SignalData<void(bool)>(6, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 5 },
        }}),
        // Signal 'unhandledTab'
        QtMocHelpers::SignalData<void(bool)>(7, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 5 },
        }}),
        // Signal 'unhandledDelete'
        QtMocHelpers::SignalData<void()>(8, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'unhandledBackspace'
        QtMocHelpers::SignalData<void()>(9, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'unhandledReturn'
        QtMocHelpers::SignalData<void(bool)>(10, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 5 },
        }}),
        // Signal 'closeCompletion'
        QtMocHelpers::SignalData<void()>(11, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'requestReply'
        QtMocHelpers::SignalData<void(const QString &)>(12, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 13 },
        }}),
        // Signal 'imagePasted'
        QtMocHelpers::SignalData<void(const QString &)>(14, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 15 },
        }}),
        // Method 'handleKey'
        QtMocHelpers::MethodData<bool(Qt::Key, Qt::KeyboardModifiers)>(16, 4, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 17, 18 }, { 0x80000000 | 19, 20 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<ChatKeyHelper, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject ChatKeyHelper::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13ChatKeyHelperE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13ChatKeyHelperE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13ChatKeyHelperE_t>.metaTypes,
    nullptr
} };

void ChatKeyHelper::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ChatKeyHelper *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->unhandledUp((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 1: _t->unhandledDown((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 2: _t->unhandledTab((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 3: _t->unhandledDelete(); break;
        case 4: _t->unhandledBackspace(); break;
        case 5: _t->unhandledReturn((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 6: _t->closeCompletion(); break;
        case 7: _t->requestReply((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 8: _t->imagePasted((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 9: { bool _r = _t->handleKey((*reinterpret_cast<std::add_pointer_t<Qt::Key>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Qt::KeyboardModifiers>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ChatKeyHelper::*)(bool )>(_a, &ChatKeyHelper::unhandledUp, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatKeyHelper::*)(bool )>(_a, &ChatKeyHelper::unhandledDown, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatKeyHelper::*)(bool )>(_a, &ChatKeyHelper::unhandledTab, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatKeyHelper::*)()>(_a, &ChatKeyHelper::unhandledDelete, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatKeyHelper::*)()>(_a, &ChatKeyHelper::unhandledBackspace, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatKeyHelper::*)(bool )>(_a, &ChatKeyHelper::unhandledReturn, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatKeyHelper::*)()>(_a, &ChatKeyHelper::closeCompletion, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatKeyHelper::*)(const QString & )>(_a, &ChatKeyHelper::requestReply, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatKeyHelper::*)(const QString & )>(_a, &ChatKeyHelper::imagePasted, 8))
            return;
    }
}

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

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

int ChatKeyHelper::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 < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 10)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 10;
    }
    return _id;
}

// SIGNAL 0
void ChatKeyHelper::unhandledUp(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

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

// SIGNAL 2
void ChatKeyHelper::unhandledTab(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

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

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

// SIGNAL 5
void ChatKeyHelper::unhandledReturn(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void ChatKeyHelper::closeCompletion()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void ChatKeyHelper::requestReply(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}

// SIGNAL 8
void ChatKeyHelper::imagePasted(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}
QT_WARNING_POP
