/****************************************************************************
** Meta object code from reading C++ file 'neovimconnector.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 "../../../../neovim-qt/src/neovimconnector.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 'neovimconnector.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_ZN8NeovimQt15NeovimConnectorE_t {};
} // unnamed namespace

template <> constexpr inline auto NeovimQt::NeovimConnector::qt_create_metaobjectdata<qt_meta_tag_ZN8NeovimQt15NeovimConnectorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "NeovimQt::NeovimConnector",
        "ready",
        "",
        "error",
        "NeovimQt::NeovimConnector::NeovimError",
        "processExited",
        "exitCode",
        "aboutToClose",
        "fatalTimeout",
        "discoverMetadata",
        "processError",
        "QProcess::ProcessError",
        "socketError",
        "msgpackError",
        "NeovimError",
        "NoError",
        "NoMetadata",
        "MetadataDescriptorError",
        "UnexpectedMsg",
        "APIMisMatch",
        "NoSuchMethod",
        "FailedToStart",
        "Crashed",
        "SocketError",
        "MsgpackError",
        "RuntimeMsgpackError"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'ready'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'error'
        QtMocHelpers::SignalData<void(NeovimQt::NeovimConnector::NeovimError)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 2 },
        }}),
        // Signal 'processExited'
        QtMocHelpers::SignalData<void(int)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 6 },
        }}),
        // Signal 'aboutToClose'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'fatalTimeout'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'discoverMetadata'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'processError'
        QtMocHelpers::SlotData<void(QProcess::ProcessError)>(10, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 11, 2 },
        }}),
        // Slot 'socketError'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'msgpackError'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessProtected, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'ready'
        QtMocHelpers::PropertyData<bool>(1, QMetaType::Bool, QMC::DefaultPropertyFlags, 0),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'NeovimError'
        QtMocHelpers::EnumData<enum NeovimError>(14, 14, QMC::EnumFlags{}).add({
            {   15, NeovimError::NoError },
            {   16, NeovimError::NoMetadata },
            {   17, NeovimError::MetadataDescriptorError },
            {   18, NeovimError::UnexpectedMsg },
            {   19, NeovimError::APIMisMatch },
            {   20, NeovimError::NoSuchMethod },
            {   21, NeovimError::FailedToStart },
            {   22, NeovimError::Crashed },
            {   23, NeovimError::SocketError },
            {   24, NeovimError::MsgpackError },
            {   25, NeovimError::RuntimeMsgpackError },
        }),
    };
    return QtMocHelpers::metaObjectData<NeovimConnector, qt_meta_tag_ZN8NeovimQt15NeovimConnectorE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject NeovimQt::NeovimConnector::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8NeovimQt15NeovimConnectorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8NeovimQt15NeovimConnectorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8NeovimQt15NeovimConnectorE_t>.metaTypes,
    nullptr
} };

void NeovimQt::NeovimConnector::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<NeovimConnector *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->ready(); break;
        case 1: _t->error((*reinterpret_cast<std::add_pointer_t<NeovimQt::NeovimConnector::NeovimError>>(_a[1]))); break;
        case 2: _t->processExited((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 3: _t->aboutToClose(); break;
        case 4: _t->fatalTimeout(); break;
        case 5: _t->discoverMetadata(); break;
        case 6: _t->processError((*reinterpret_cast<std::add_pointer_t<QProcess::ProcessError>>(_a[1]))); break;
        case 7: _t->socketError(); break;
        case 8: _t->msgpackError(); 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< NeovimQt::NeovimConnector::NeovimError >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (NeovimConnector::*)()>(_a, &NeovimConnector::ready, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (NeovimConnector::*)(NeovimQt::NeovimConnector::NeovimError )>(_a, &NeovimConnector::error, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (NeovimConnector::*)(int )>(_a, &NeovimConnector::processExited, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (NeovimConnector::*)()>(_a, &NeovimConnector::aboutToClose, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->isReady(); break;
        default: break;
        }
    }
}

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

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

int NeovimQt::NeovimConnector::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 < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    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 NeovimQt::NeovimConnector::ready()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void NeovimQt::NeovimConnector::error(NeovimQt::NeovimConnector::NeovimError _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void NeovimQt::NeovimConnector::processExited(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void NeovimQt::NeovimConnector::aboutToClose()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
