#if defined (HAVE_CONFIG_H)
#  include "config.h"
#endif
/****************************************************************************
** Meta object code from reading C++ file 'moc-octave-qobject.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.10.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "libgui/src/moc-octave-qobject.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 'moc-octave-qobject.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.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_ZN6octave19octave_qapplicationE_t {};
} // unnamed namespace

template <> constexpr inline auto octave::octave_qapplication::qt_create_metaobjectdata<qt_meta_tag_ZN6octave19octave_qapplicationE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "octave::octave_qapplication",
        "interpreter_event",
        "",
        "fcn_callback",
        "fcn",
        "meth_callback",
        "meth"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'interpreter_event'
        QtMocHelpers::SignalData<void(const fcn_callback &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'interpreter_event'
        QtMocHelpers::SignalData<void(const meth_callback &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<octave_qapplication, qt_meta_tag_ZN6octave19octave_qapplicationE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject octave::octave_qapplication::staticMetaObject = { {
    QMetaObject::SuperData::link<QApplication::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6octave19octave_qapplicationE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6octave19octave_qapplicationE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN6octave19octave_qapplicationE_t>.metaTypes,
    nullptr
} };

void octave::octave_qapplication::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<octave_qapplication *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->interpreter_event((*reinterpret_cast<std::add_pointer_t<fcn_callback>>(_a[1]))); break;
        case 1: _t->interpreter_event((*reinterpret_cast<std::add_pointer_t<meth_callback>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (octave_qapplication::*)(const fcn_callback & )>(_a, &octave_qapplication::interpreter_event, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (octave_qapplication::*)(const meth_callback & )>(_a, &octave_qapplication::interpreter_event, 1))
            return;
    }
}

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

void *octave::octave_qapplication::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6octave19octave_qapplicationE_t>.strings))
        return static_cast<void*>(this);
    return QApplication::qt_metacast(_clname);
}

int octave::octave_qapplication::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QApplication::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 2)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 2)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 2;
    }
    return _id;
}

// SIGNAL 0
void octave::octave_qapplication::interpreter_event(const fcn_callback & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void octave::octave_qapplication::interpreter_event(const meth_callback & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}
namespace {
struct qt_meta_tag_ZN6octave12base_qobjectE_t {};
} // unnamed namespace

template <> constexpr inline auto octave::base_qobject::qt_create_metaobjectdata<qt_meta_tag_ZN6octave12base_qobjectE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "octave::base_qobject",
        "execute_command",
        "",
        "command",
        "start_gui",
        "gui_app",
        "close_gui",
        "show_terminal_window",
        "show_documentation_window",
        "file",
        "show_file_browser_window",
        "show_command_history_window",
        "show_workspace_window",
        "show_variable_editor_window",
        "name",
        "octave_value",
        "value",
        "handle_variable_editor_update",
        "show_community_news",
        "serial",
        "show_release_notes",
        "interpreter_ready",
        "interpreter_event",
        "fcn_callback",
        "fcn",
        "meth_callback",
        "meth",
        "interpreter_interrupt",
        "interpreter_pause",
        "interpreter_stop",
        "interpreter_resume",
        "copy_image_to_clipboard",
        "remove_file",
        "getFusionDarkPalette",
        "QPalette",
        "set_gui_style",
        "called_from_main_window"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'execute_command'
        QtMocHelpers::SlotData<void(const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Slot 'start_gui'
        QtMocHelpers::SlotData<void(bool)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 5 },
        }}),
        // Slot 'close_gui'
        QtMocHelpers::SlotData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'show_terminal_window'
        QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'show_documentation_window'
        QtMocHelpers::SlotData<void(const QString &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 },
        }}),
        // Slot 'show_file_browser_window'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'show_command_history_window'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'show_workspace_window'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'show_variable_editor_window'
        QtMocHelpers::SlotData<void(const QString &, const octave_value &)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 14 }, { 0x80000000 | 15, 16 },
        }}),
        // Slot 'handle_variable_editor_update'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'show_community_news'
        QtMocHelpers::SlotData<void(int)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 19 },
        }}),
        // Slot 'show_release_notes'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'interpreter_ready'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'interpreter_event'
        QtMocHelpers::SlotData<void(const fcn_callback &)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 23, 24 },
        }}),
        // Slot 'interpreter_event'
        QtMocHelpers::SlotData<void(const meth_callback &)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 25, 26 },
        }}),
        // Slot 'interpreter_interrupt'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'interpreter_pause'
        QtMocHelpers::SlotData<void()>(28, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'interpreter_stop'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'interpreter_resume'
        QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'copy_image_to_clipboard'
        QtMocHelpers::SlotData<void(const QString &, bool)>(31, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 }, { QMetaType::Bool, 32 },
        }}),
        // Slot 'getFusionDarkPalette'
        QtMocHelpers::SlotData<QPalette()>(33, 2, QMC::AccessPublic, 0x80000000 | 34),
        // Slot 'set_gui_style'
        QtMocHelpers::SlotData<void(bool)>(35, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 36 },
        }}),
        // Slot 'set_gui_style'
        QtMocHelpers::SlotData<void()>(35, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<base_qobject, qt_meta_tag_ZN6octave12base_qobjectE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject octave::base_qobject::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6octave12base_qobjectE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6octave12base_qobjectE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN6octave12base_qobjectE_t>.metaTypes,
    nullptr
} };

void octave::base_qobject::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<base_qobject *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->execute_command((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->start_gui((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 2: _t->close_gui(); break;
        case 3: _t->show_terminal_window(); break;
        case 4: _t->show_documentation_window((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: _t->show_file_browser_window(); break;
        case 6: _t->show_command_history_window(); break;
        case 7: _t->show_workspace_window(); break;
        case 8: _t->show_variable_editor_window((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<octave_value>>(_a[2]))); break;
        case 9: _t->handle_variable_editor_update(); break;
        case 10: _t->show_community_news((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 11: _t->show_release_notes(); break;
        case 12: _t->interpreter_ready(); break;
        case 13: _t->interpreter_event((*reinterpret_cast<std::add_pointer_t<fcn_callback>>(_a[1]))); break;
        case 14: _t->interpreter_event((*reinterpret_cast<std::add_pointer_t<meth_callback>>(_a[1]))); break;
        case 15: _t->interpreter_interrupt(); break;
        case 16: _t->interpreter_pause(); break;
        case 17: _t->interpreter_stop(); break;
        case 18: _t->interpreter_resume(); break;
        case 19: _t->copy_image_to_clipboard((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 20: { QPalette _r = _t->getFusionDarkPalette();
            if (_a[0]) *reinterpret_cast<QPalette*>(_a[0]) = std::move(_r); }  break;
        case 21: _t->set_gui_style((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 22: _t->set_gui_style(); break;
        default: ;
        }
    }
}

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

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

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