/****************************************************************************
** Meta object code from reading C++ file 'mainwindow.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/gui/mainwindow.h"
#include <QtGui/qtextcursor.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 'mainwindow.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_ZN8NeovimQt10MainWindowE_t {};
} // unnamed namespace

template <> constexpr inline auto NeovimQt::MainWindow::qt_create_metaobjectdata<qt_meta_tag_ZN8NeovimQt10MainWindowE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "NeovimQt::MainWindow",
        "neovimAttachmentChanged",
        "",
        "closing",
        "activeChanged",
        "NeovimQt::MainWindow&",
        "window",
        "neovimSetTitle",
        "title",
        "neovimWidgetResized",
        "neovimMaximized",
        "neovimForeground",
        "neovimSuspend",
        "neovimFullScreen",
        "neovimFrameless",
        "neovimGuiCloseRequest",
        "neovimExited",
        "status",
        "neovimError",
        "NeovimConnector::NeovimError",
        "reconnectNeovim",
        "handleNeovimAttachment",
        "neovimIsUnsupported",
        "saveWindowGeometry",
        "handleClosing",
        "setGuiAdaptiveColorEnabled",
        "isEnabled",
        "setGuiAdaptiveFontEnabled",
        "setGuiAdaptiveStyle",
        "style",
        "showGuiAdaptiveStyleList"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'neovimAttachmentChanged'
        QtMocHelpers::SignalData<void(bool)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Signal 'closing'
        QtMocHelpers::SignalData<void(int)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Signal 'activeChanged'
        QtMocHelpers::SignalData<void(NeovimQt::MainWindow &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Slot 'neovimSetTitle'
        QtMocHelpers::SlotData<void(const QString &)>(7, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 8 },
        }}),
        // Slot 'neovimWidgetResized'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'neovimMaximized'
        QtMocHelpers::SlotData<void(bool)>(10, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'neovimForeground'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'neovimSuspend'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'neovimFullScreen'
        QtMocHelpers::SlotData<void(bool)>(13, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'neovimFrameless'
        QtMocHelpers::SlotData<void(bool)>(14, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'neovimGuiCloseRequest'
        QtMocHelpers::SlotData<void(int)>(15, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'neovimExited'
        QtMocHelpers::SlotData<void(int)>(16, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 17 },
        }}),
        // Slot 'neovimError'
        QtMocHelpers::SlotData<void(NeovimConnector::NeovimError)>(18, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 19, 2 },
        }}),
        // Slot 'reconnectNeovim'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'handleNeovimAttachment'
        QtMocHelpers::SlotData<void(bool)>(21, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'neovimIsUnsupported'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'saveWindowGeometry'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'handleClosing'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'setGuiAdaptiveColorEnabled'
        QtMocHelpers::SlotData<void(bool)>(25, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 26 },
        }}),
        // Slot 'setGuiAdaptiveFontEnabled'
        QtMocHelpers::SlotData<void(bool)>(27, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 26 },
        }}),
        // Slot 'setGuiAdaptiveStyle'
        QtMocHelpers::SlotData<void(const QString &)>(28, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 29 },
        }}),
        // Slot 'showGuiAdaptiveStyleList'
        QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<MainWindow, qt_meta_tag_ZN8NeovimQt10MainWindowE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject NeovimQt::MainWindow::staticMetaObject = { {
    QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8NeovimQt10MainWindowE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8NeovimQt10MainWindowE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8NeovimQt10MainWindowE_t>.metaTypes,
    nullptr
} };

void NeovimQt::MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MainWindow *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->neovimAttachmentChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 1: _t->closing((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 2: _t->activeChanged((*reinterpret_cast<std::add_pointer_t<NeovimQt::MainWindow&>>(_a[1]))); break;
        case 3: _t->neovimSetTitle((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->neovimWidgetResized(); break;
        case 5: _t->neovimMaximized((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 6: _t->neovimForeground(); break;
        case 7: _t->neovimSuspend(); break;
        case 8: _t->neovimFullScreen((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 9: _t->neovimFrameless((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 10: _t->neovimGuiCloseRequest((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 11: _t->neovimExited((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 12: _t->neovimError((*reinterpret_cast<std::add_pointer_t<NeovimConnector::NeovimError>>(_a[1]))); break;
        case 13: _t->reconnectNeovim(); break;
        case 14: _t->handleNeovimAttachment((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 15: _t->neovimIsUnsupported(); break;
        case 16: _t->saveWindowGeometry(); break;
        case 17: _t->handleClosing(); break;
        case 18: _t->setGuiAdaptiveColorEnabled((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 19: _t->setGuiAdaptiveFontEnabled((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 20: _t->setGuiAdaptiveStyle((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 21: _t->showGuiAdaptiveStyleList(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (MainWindow::*)(bool )>(_a, &MainWindow::neovimAttachmentChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (MainWindow::*)(int )>(_a, &MainWindow::closing, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (MainWindow::*)(NeovimQt::MainWindow & )>(_a, &MainWindow::activeChanged, 2))
            return;
    }
}

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

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

int NeovimQt::MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 22)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 22;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 22)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 22;
    }
    return _id;
}

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

// SIGNAL 1
void NeovimQt::MainWindow::closing(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void NeovimQt::MainWindow::activeChanged(NeovimQt::MainWindow & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
QT_WARNING_POP
