/****************************************************************************
** Meta object code from reading C++ file 'msgpackiodevice.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/msgpackiodevice.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 'msgpackiodevice.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_ZN8NeovimQt15MsgpackIODeviceE_t {};
} // unnamed namespace

template <> constexpr inline auto NeovimQt::MsgpackIODevice::qt_create_metaobjectdata<qt_meta_tag_ZN8NeovimQt15MsgpackIODeviceE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "NeovimQt::MsgpackIODevice",
        "error",
        "",
        "NeovimQt::MsgpackIODevice::MsgpackError",
        "notification",
        "name",
        "QVariantList",
        "args",
        "encodingChanged",
        "encoding",
        "aboutToClose",
        "setError",
        "err",
        "msg",
        "dataAvailable",
        "dataAvailableStdin",
        "dataAvailableFd",
        "fd",
        "requestTimeout",
        "id",
        "MsgpackError",
        "NoError",
        "InvalidDevice",
        "InvalidMsgpack"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'error'
        QtMocHelpers::SignalData<void(NeovimQt::MsgpackIODevice::MsgpackError)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Signal 'notification'
        QtMocHelpers::SignalData<void(const QByteArray &, const QVariantList &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 5 }, { 0x80000000 | 6, 7 },
        }}),
        // Signal 'encodingChanged'
        QtMocHelpers::SignalData<void(const QByteArray &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 9 },
        }}),
        // Signal 'aboutToClose'
        QtMocHelpers::SignalData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setError'
        QtMocHelpers::SlotData<void(NeovimQt::MsgpackIODevice::MsgpackError, const QString &)>(11, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 3, 12 }, { QMetaType::QString, 13 },
        }}),
        // Slot 'dataAvailable'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'dataAvailableStdin'
        QtMocHelpers::SlotData<void(const QByteArray &)>(15, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::QByteArray, 2 },
        }}),
        // Slot 'dataAvailableFd'
        QtMocHelpers::SlotData<void(int)>(16, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::Int, 17 },
        }}),
        // Slot 'requestTimeout'
        QtMocHelpers::SlotData<void(quint32)>(18, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::UInt, 19 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'error'
        QtMocHelpers::PropertyData<enum MsgpackError>(1, 0x80000000 | 20, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 0),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'MsgpackError'
        QtMocHelpers::EnumData<enum MsgpackError>(20, 20, QMC::EnumFlags{}).add({
            {   21, MsgpackError::NoError },
            {   22, MsgpackError::InvalidDevice },
            {   23, MsgpackError::InvalidMsgpack },
        }),
    };
    return QtMocHelpers::metaObjectData<MsgpackIODevice, qt_meta_tag_ZN8NeovimQt15MsgpackIODeviceE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject NeovimQt::MsgpackIODevice::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8NeovimQt15MsgpackIODeviceE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8NeovimQt15MsgpackIODeviceE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8NeovimQt15MsgpackIODeviceE_t>.metaTypes,
    nullptr
} };

void NeovimQt::MsgpackIODevice::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MsgpackIODevice *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->error((*reinterpret_cast<std::add_pointer_t<NeovimQt::MsgpackIODevice::MsgpackError>>(_a[1]))); break;
        case 1: _t->notification((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariantList>>(_a[2]))); break;
        case 2: _t->encodingChanged((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 3: _t->aboutToClose(); break;
        case 4: _t->setError((*reinterpret_cast<std::add_pointer_t<NeovimQt::MsgpackIODevice::MsgpackError>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 5: _t->dataAvailable(); break;
        case 6: _t->dataAvailableStdin((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 7: _t->dataAvailableFd((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 8: _t->requestTimeout((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< NeovimQt::MsgpackIODevice::MsgpackError >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< NeovimQt::MsgpackIODevice::MsgpackError >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (MsgpackIODevice::*)(NeovimQt::MsgpackIODevice::MsgpackError )>(_a, &MsgpackIODevice::error, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (MsgpackIODevice::*)(const QByteArray & , const QVariantList & )>(_a, &MsgpackIODevice::notification, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (MsgpackIODevice::*)(const QByteArray & )>(_a, &MsgpackIODevice::encodingChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (MsgpackIODevice::*)()>(_a, &MsgpackIODevice::aboutToClose, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<enum MsgpackError*>(_v) = _t->errorCause(); break;
        default: break;
        }
    }
}

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

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

int NeovimQt::MsgpackIODevice::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::MsgpackIODevice::error(NeovimQt::MsgpackIODevice::MsgpackError _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void NeovimQt::MsgpackIODevice::notification(const QByteArray & _t1, const QVariantList & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void NeovimQt::MsgpackIODevice::encodingChanged(const QByteArray & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

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