/****************************************************************************
** Meta object code from reading C++ file 'termwidgetholder.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.11.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

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

template <> constexpr inline auto TermWidgetHolder::qt_create_metaobjectdata<qt_meta_tag_ZN16TermWidgetHolderE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "TermWidgetHolder",
        "finished",
        "",
        "lastTerminalClosed",
        "renameSession",
        "termTitleChanged",
        "title",
        "icon",
        "termFocusChanged",
        "splitHorizontal",
        "TermWidget*",
        "term",
        "splitVertical",
        "splitCollapse",
        "setWDir",
        "wdir",
        "directionalNavigation",
        "NavigationDirection",
        "dir",
        "clearActiveTerminal",
        "onTermTitleChanged",
        "setCurrentTerminal",
        "handle_finished"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'finished'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'lastTerminalClosed'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'renameSession'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'termTitleChanged'
        QtMocHelpers::SignalData<void(QString, QString) const>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 6 }, { QMetaType::QString, 7 },
        }}),
        // Signal 'termFocusChanged'
        QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'splitHorizontal'
        QtMocHelpers::SlotData<void(TermWidget *)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Slot 'splitVertical'
        QtMocHelpers::SlotData<void(TermWidget *)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Slot 'splitCollapse'
        QtMocHelpers::SlotData<void(TermWidget *)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Slot 'setWDir'
        QtMocHelpers::SlotData<void(const QString &)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 15 },
        }}),
        // Slot 'directionalNavigation'
        QtMocHelpers::SlotData<void(NavigationDirection)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 17, 18 },
        }}),
        // Slot 'clearActiveTerminal'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'onTermTitleChanged'
        QtMocHelpers::SlotData<void(QString, QString) const>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 6 }, { QMetaType::QString, 7 },
        }}),
        // Slot 'setCurrentTerminal'
        QtMocHelpers::SlotData<void(TermWidget *)>(21, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Slot 'handle_finished'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<TermWidgetHolder, qt_meta_tag_ZN16TermWidgetHolderE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject TermWidgetHolder::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16TermWidgetHolderE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16TermWidgetHolderE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN16TermWidgetHolderE_t>.metaTypes,
    nullptr
} };

void TermWidgetHolder::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<TermWidgetHolder *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->finished(); break;
        case 1: _t->lastTerminalClosed(); break;
        case 2: _t->renameSession(); break;
        case 3: _t->termTitleChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 4: _t->termFocusChanged(); break;
        case 5: _t->splitHorizontal((*reinterpret_cast<std::add_pointer_t<TermWidget*>>(_a[1]))); break;
        case 6: _t->splitVertical((*reinterpret_cast<std::add_pointer_t<TermWidget*>>(_a[1]))); break;
        case 7: _t->splitCollapse((*reinterpret_cast<std::add_pointer_t<TermWidget*>>(_a[1]))); break;
        case 8: _t->setWDir((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 9: _t->directionalNavigation((*reinterpret_cast<std::add_pointer_t<NavigationDirection>>(_a[1]))); break;
        case 10: _t->clearActiveTerminal(); break;
        case 11: _t->onTermTitleChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 12: _t->setCurrentTerminal((*reinterpret_cast<std::add_pointer_t<TermWidget*>>(_a[1]))); break;
        case 13: _t->handle_finished(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< TermWidget* >(); break;
            }
            break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< TermWidget* >(); break;
            }
            break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< TermWidget* >(); break;
            }
            break;
        case 12:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< TermWidget* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (TermWidgetHolder::*)()>(_a, &TermWidgetHolder::finished, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (TermWidgetHolder::*)()>(_a, &TermWidgetHolder::lastTerminalClosed, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (TermWidgetHolder::*)()>(_a, &TermWidgetHolder::renameSession, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (TermWidgetHolder::*)(QString , QString ) const>(_a, &TermWidgetHolder::termTitleChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (TermWidgetHolder::*)()>(_a, &TermWidgetHolder::termFocusChanged, 4))
            return;
    }
}

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

void *TermWidgetHolder::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16TermWidgetHolderE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "DBusAddressable"))
        return static_cast< DBusAddressable*>(this);
    return QWidget::qt_metacast(_clname);
}

int TermWidgetHolder::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
    return _id;
}

// SIGNAL 0
void TermWidgetHolder::finished()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void TermWidgetHolder::lastTerminalClosed()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void TermWidgetHolder::renameSession()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void TermWidgetHolder::termTitleChanged(QString _t1, QString _t2)const
{
    QMetaObject::activate<void>(const_cast< TermWidgetHolder *>(this), &staticMetaObject, 3, nullptr, _t1, _t2);
}

// SIGNAL 4
void TermWidgetHolder::termFocusChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}
QT_WARNING_POP
