/****************************************************************************
** Meta object code from reading C++ file 'ksysguard.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 "../../../../ksysguard6/gui/ksysguard.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 'ksysguard.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_ZN8TopLevelE_t {};
} // unnamed namespace

template <> constexpr inline auto TopLevel::qt_create_metaobjectdata<qt_meta_tag_ZN8TopLevelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "TopLevel",
        "D-Bus Interface",
        "org.kde.SystemMonitor",
        "showOnCurrentDesktop",
        "Q_NOREPLY",
        "importWorkSheet",
        "fileName",
        "removeWorkSheet",
        "getHotNewWorksheet",
        "listHosts",
        "",
        "listSensors",
        "hostName",
        "connectHost",
        "disconnectHost",
        "updateStatusBar",
        "currentTabChanged",
        "index",
        "updateProcessCount",
        "configureCurrentSheet",
        "toggleShowMenuBar"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'showOnCurrentDesktop'
        QtMocHelpers::SlotData<void()>(3, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Void),
        // Slot 'importWorkSheet'
        QtMocHelpers::SlotData<void(const QString &)>(5, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Void, {{
            { QMetaType::QString, 6 },
        }}),
        // Slot 'removeWorkSheet'
        QtMocHelpers::SlotData<void(const QString &)>(7, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Void, {{
            { QMetaType::QString, 6 },
        }}),
        // Slot 'getHotNewWorksheet'
        QtMocHelpers::SlotData<void()>(8, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Void),
        // Slot 'listHosts'
        QtMocHelpers::SlotData<QStringList()>(9, 10, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::QStringList),
        // Slot 'listSensors'
        QtMocHelpers::SlotData<QStringList(const QString &)>(11, 10, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::QStringList, {{
            { QMetaType::QString, 12 },
        }}),
        // Slot 'connectHost'
        QtMocHelpers::SlotData<void()>(13, 10, QMC::AccessProtected, QMetaType::Void),
        // Slot 'disconnectHost'
        QtMocHelpers::SlotData<void()>(14, 10, QMC::AccessProtected, QMetaType::Void),
        // Slot 'updateStatusBar'
        QtMocHelpers::SlotData<void()>(15, 10, QMC::AccessProtected, QMetaType::Void),
        // Slot 'currentTabChanged'
        QtMocHelpers::SlotData<void(int)>(16, 10, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::Int, 17 },
        }}),
        // Slot 'updateProcessCount'
        QtMocHelpers::SlotData<void()>(18, 10, QMC::AccessProtected, QMetaType::Void),
        // Slot 'configureCurrentSheet'
        QtMocHelpers::SlotData<void()>(19, 10, QMC::AccessProtected, QMetaType::Void),
        // Slot 'toggleShowMenuBar'
        QtMocHelpers::SlotData<void()>(20, 10, QMC::AccessProtected, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<TopLevel, qt_meta_tag_ZN8TopLevelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject TopLevel::staticMetaObject = { {
    QMetaObject::SuperData::link<KXmlGuiWindow::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8TopLevelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8TopLevelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8TopLevelE_t>.metaTypes,
    nullptr
} };

void TopLevel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<TopLevel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->showOnCurrentDesktop(); break;
        case 1: _t->importWorkSheet((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->removeWorkSheet((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->getHotNewWorksheet(); break;
        case 4: { QStringList _r = _t->listHosts();
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 5: { QStringList _r = _t->listSensors((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 6: _t->connectHost(); break;
        case 7: _t->disconnectHost(); break;
        case 8: _t->updateStatusBar(); break;
        case 9: _t->currentTabChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 10: _t->updateProcessCount(); break;
        case 11: _t->configureCurrentSheet(); break;
        case 12: _t->toggleShowMenuBar(); break;
        default: ;
        }
    }
}

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

void *TopLevel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8TopLevelE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "KSGRD::SensorClient"))
        return static_cast< KSGRD::SensorClient*>(this);
    return KXmlGuiWindow::qt_metacast(_clname);
}

int TopLevel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = KXmlGuiWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 13;
    }
    return _id;
}
QT_WARNING_POP
