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

template <> constexpr inline auto Scripting::qt_create_metaobjectdata<qt_meta_tag_ZN9ScriptingE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Scripting",
        "stopAllScripts",
        "",
        "runScriptSlot"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'stopAllScripts'
        QtMocHelpers::SlotData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'runScriptSlot'
        QtMocHelpers::SlotData<void()>(3, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Scripting, qt_meta_tag_ZN9ScriptingE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Scripting::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9ScriptingE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9ScriptingE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9ScriptingE_t>.metaTypes,
    nullptr
} };

void Scripting::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Scripting *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->stopAllScripts(); break;
        case 1: _t->runScriptSlot(); break;
        default: ;
        }
    }
    (void)_a;
}

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

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

int Scripting::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 < 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;
}
namespace {
struct qt_meta_tag_ZN13ProcessObjectE_t {};
} // unnamed namespace

template <> constexpr inline auto ProcessObject::qt_create_metaobjectdata<qt_meta_tag_ZN13ProcessObjectE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ProcessObject",
        "anythingChanged",
        "",
        "fileExists",
        "filename",
        "readFile",
        "pid",
        "ppid",
        "name",
        "fullname",
        "rss",
        "urss",
        "numThreads",
        "fsgid",
        "parentPid",
        "login",
        "uid",
        "euid",
        "suid",
        "fsuid",
        "gid",
        "egid",
        "sgid",
        "tracerpid",
        "tty",
        "userTime",
        "sysTime",
        "userUsage",
        "sysUsage",
        "totalUserUsage",
        "totalSysUsage",
        "numChildren",
        "niceLevel",
        "scheduler",
        "ioPriorityClass",
        "ioniceLevel",
        "vmSize",
        "vmRSS",
        "vmURSS",
        "pixmapBytes",
        "hasManagedGuiWindow",
        "command",
        "status",
        "ioCharactersRead",
        "ioCharactersWritten",
        "ioReadSyscalls",
        "ioWriteSyscalls",
        "ioCharactersActuallyRead",
        "ioCharactersActuallyWritten",
        "ioCharactersReadRate",
        "ioCharactersWrittenRate",
        "ioReadSyscallsRate",
        "ioWriteSyscallsRate",
        "ioCharactersActuallyReadRate",
        "ioCharactersActuallyWrittenRate"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'anythingChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'fileExists'
        QtMocHelpers::SlotData<bool(const QString &)>(3, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 4 },
        }}),
        // Slot 'readFile'
        QtMocHelpers::SlotData<QString(const QString &)>(5, 2, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 4 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'pid'
        QtMocHelpers::PropertyData<qlonglong>(6, QMetaType::LongLong, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'ppid'
        QtMocHelpers::PropertyData<qlonglong>(7, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'name'
        QtMocHelpers::PropertyData<QString>(8, QMetaType::QString, QMC::DefaultPropertyFlags, 0),
        // property 'fullname'
        QtMocHelpers::PropertyData<QString>(9, QMetaType::QString, QMC::DefaultPropertyFlags, 0),
        // property 'rss'
        QtMocHelpers::PropertyData<qlonglong>(10, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'urss'
        QtMocHelpers::PropertyData<qlonglong>(11, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'numThreads'
        QtMocHelpers::PropertyData<int>(12, QMetaType::Int, QMC::DefaultPropertyFlags, 0),
        // property 'fsgid'
        QtMocHelpers::PropertyData<qlonglong>(13, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'parentPid'
        QtMocHelpers::PropertyData<qlonglong>(14, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'login'
        QtMocHelpers::PropertyData<QString>(15, QMetaType::QString, QMC::DefaultPropertyFlags, 0),
        // property 'uid'
        QtMocHelpers::PropertyData<qlonglong>(16, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'euid'
        QtMocHelpers::PropertyData<qlonglong>(17, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'suid'
        QtMocHelpers::PropertyData<qlonglong>(18, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'fsuid'
        QtMocHelpers::PropertyData<qlonglong>(19, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'gid'
        QtMocHelpers::PropertyData<qlonglong>(20, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'egid'
        QtMocHelpers::PropertyData<qlonglong>(21, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'sgid'
        QtMocHelpers::PropertyData<qlonglong>(22, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'tracerpid'
        QtMocHelpers::PropertyData<qlonglong>(23, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'tty'
        QtMocHelpers::PropertyData<QByteArray>(24, QMetaType::QByteArray, QMC::DefaultPropertyFlags, 0),
        // property 'userTime'
        QtMocHelpers::PropertyData<qlonglong>(25, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'sysTime'
        QtMocHelpers::PropertyData<qlonglong>(26, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'userUsage'
        QtMocHelpers::PropertyData<int>(27, QMetaType::Int, QMC::DefaultPropertyFlags, 0),
        // property 'sysUsage'
        QtMocHelpers::PropertyData<int>(28, QMetaType::Int, QMC::DefaultPropertyFlags, 0),
        // property 'totalUserUsage'
        QtMocHelpers::PropertyData<int>(29, QMetaType::Int, QMC::DefaultPropertyFlags, 0),
        // property 'totalSysUsage'
        QtMocHelpers::PropertyData<int>(30, QMetaType::Int, QMC::DefaultPropertyFlags, 0),
        // property 'numChildren'
        QtMocHelpers::PropertyData<int>(31, QMetaType::Int, QMC::DefaultPropertyFlags, 0),
        // property 'niceLevel'
        QtMocHelpers::PropertyData<int>(32, QMetaType::Int, QMC::DefaultPropertyFlags, 0),
        // property 'scheduler'
        QtMocHelpers::PropertyData<int>(33, QMetaType::Int, QMC::DefaultPropertyFlags, 0),
        // property 'ioPriorityClass'
        QtMocHelpers::PropertyData<int>(34, QMetaType::Int, QMC::DefaultPropertyFlags, 0),
        // property 'ioniceLevel'
        QtMocHelpers::PropertyData<int>(35, QMetaType::Int, QMC::DefaultPropertyFlags, 0),
        // property 'vmSize'
        QtMocHelpers::PropertyData<qlonglong>(36, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'vmRSS'
        QtMocHelpers::PropertyData<qlonglong>(37, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'vmURSS'
        QtMocHelpers::PropertyData<qlonglong>(38, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'pixmapBytes'
        QtMocHelpers::PropertyData<qlonglong>(39, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'hasManagedGuiWindow'
        QtMocHelpers::PropertyData<bool>(40, QMetaType::Bool, QMC::DefaultPropertyFlags, 0),
        // property 'command'
        QtMocHelpers::PropertyData<QString>(41, QMetaType::QString, QMC::DefaultPropertyFlags, 0),
        // property 'status'
        QtMocHelpers::PropertyData<qlonglong>(42, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'ioCharactersRead'
        QtMocHelpers::PropertyData<qlonglong>(43, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'ioCharactersWritten'
        QtMocHelpers::PropertyData<qlonglong>(44, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'ioReadSyscalls'
        QtMocHelpers::PropertyData<qlonglong>(45, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'ioWriteSyscalls'
        QtMocHelpers::PropertyData<qlonglong>(46, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'ioCharactersActuallyRead'
        QtMocHelpers::PropertyData<qlonglong>(47, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'ioCharactersActuallyWritten'
        QtMocHelpers::PropertyData<qlonglong>(48, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'ioCharactersReadRate'
        QtMocHelpers::PropertyData<qlonglong>(49, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'ioCharactersWrittenRate'
        QtMocHelpers::PropertyData<qlonglong>(50, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'ioReadSyscallsRate'
        QtMocHelpers::PropertyData<qlonglong>(51, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'ioWriteSyscallsRate'
        QtMocHelpers::PropertyData<qlonglong>(52, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'ioCharactersActuallyReadRate'
        QtMocHelpers::PropertyData<qlonglong>(53, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
        // property 'ioCharactersActuallyWrittenRate'
        QtMocHelpers::PropertyData<qlonglong>(54, QMetaType::LongLong, QMC::DefaultPropertyFlags, 0),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ProcessObject, qt_meta_tag_ZN13ProcessObjectE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ProcessObject::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13ProcessObjectE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13ProcessObjectE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13ProcessObjectE_t>.metaTypes,
    nullptr
} };

void ProcessObject::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ProcessObject *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->anythingChanged(); break;
        case 1: { bool _r = _t->fileExists((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 2: { QString _r = _t->readFile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ProcessObject::*)()>(_a, &ProcessObject::anythingChanged, 0))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<qlonglong*>(_v) = _t->pid(); break;
        case 1: *reinterpret_cast<qlonglong*>(_v) = _t->parentPid(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->name(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->fullname(); break;
        case 4: *reinterpret_cast<qlonglong*>(_v) = _t->vmRSS(); break;
        case 5: *reinterpret_cast<qlonglong*>(_v) = _t->vmURSS(); break;
        case 6: *reinterpret_cast<int*>(_v) = _t->numThreads(); break;
        case 7: *reinterpret_cast<qlonglong*>(_v) = _t->fsgid(); break;
        case 8: *reinterpret_cast<qlonglong*>(_v) = _t->parentPid(); break;
        case 9: *reinterpret_cast<QString*>(_v) = _t->login(); break;
        case 10: *reinterpret_cast<qlonglong*>(_v) = _t->uid(); break;
        case 11: *reinterpret_cast<qlonglong*>(_v) = _t->euid(); break;
        case 12: *reinterpret_cast<qlonglong*>(_v) = _t->suid(); break;
        case 13: *reinterpret_cast<qlonglong*>(_v) = _t->fsuid(); break;
        case 14: *reinterpret_cast<qlonglong*>(_v) = _t->gid(); break;
        case 15: *reinterpret_cast<qlonglong*>(_v) = _t->egid(); break;
        case 16: *reinterpret_cast<qlonglong*>(_v) = _t->sgid(); break;
        case 17: *reinterpret_cast<qlonglong*>(_v) = _t->tracerpid(); break;
        case 18: *reinterpret_cast<QByteArray*>(_v) = _t->tty(); break;
        case 19: *reinterpret_cast<qlonglong*>(_v) = _t->userTime(); break;
        case 20: *reinterpret_cast<qlonglong*>(_v) = _t->sysTime(); break;
        case 21: *reinterpret_cast<int*>(_v) = _t->userUsage(); break;
        case 22: *reinterpret_cast<int*>(_v) = _t->sysUsage(); break;
        case 23: *reinterpret_cast<int*>(_v) = _t->totalUserUsage(); break;
        case 24: *reinterpret_cast<int*>(_v) = _t->totalSysUsage(); break;
        case 25: *reinterpret_cast<int*>(_v) = _t->numChildren(); break;
        case 26: *reinterpret_cast<int*>(_v) = _t->niceLevel(); break;
        case 27: *reinterpret_cast<int*>(_v) = _t->scheduler(); break;
        case 28: *reinterpret_cast<int*>(_v) = _t->ioPriorityClass(); break;
        case 29: *reinterpret_cast<int*>(_v) = _t->ioniceLevel(); break;
        case 30: *reinterpret_cast<qlonglong*>(_v) = _t->vmSize(); break;
        case 31: *reinterpret_cast<qlonglong*>(_v) = _t->vmRSS(); break;
        case 32: *reinterpret_cast<qlonglong*>(_v) = _t->vmURSS(); break;
        case 33: *reinterpret_cast<qlonglong*>(_v) = _t->pixmapBytes(); break;
        case 34: *reinterpret_cast<bool*>(_v) = _t->hasManagedGuiWindow(); break;
        case 35: *reinterpret_cast<QString*>(_v) = _t->command(); break;
        case 36: *reinterpret_cast<qlonglong*>(_v) = _t->status(); break;
        case 37: *reinterpret_cast<qlonglong*>(_v) = _t->ioCharactersRead(); break;
        case 38: *reinterpret_cast<qlonglong*>(_v) = _t->ioCharactersWritten(); break;
        case 39: *reinterpret_cast<qlonglong*>(_v) = _t->ioReadSyscalls(); break;
        case 40: *reinterpret_cast<qlonglong*>(_v) = _t->ioWriteSyscalls(); break;
        case 41: *reinterpret_cast<qlonglong*>(_v) = _t->ioCharactersActuallyRead(); break;
        case 42: *reinterpret_cast<qlonglong*>(_v) = _t->ioCharactersActuallyWritten(); break;
        case 43: *reinterpret_cast<qlonglong*>(_v) = _t->ioCharactersReadRate(); break;
        case 44: *reinterpret_cast<qlonglong*>(_v) = _t->ioCharactersWrittenRate(); break;
        case 45: *reinterpret_cast<qlonglong*>(_v) = _t->ioReadSyscallsRate(); break;
        case 46: *reinterpret_cast<qlonglong*>(_v) = _t->ioWriteSyscallsRate(); break;
        case 47: *reinterpret_cast<qlonglong*>(_v) = _t->ioCharactersActuallyReadRate(); break;
        case 48: *reinterpret_cast<qlonglong*>(_v) = _t->ioCharactersActuallyWrittenRate(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setPid(*reinterpret_cast<qlonglong*>(_v)); break;
        default: break;
        }
    }
}

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

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

int ProcessObject::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 < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 3)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 3;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 49;
    }
    return _id;
}

// SIGNAL 0
void ProcessObject::anythingChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
QT_WARNING_POP
