/****************************************************************************
** Meta object code from reading C++ file 'process_controller.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/processcore/process_controller.h"
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'process_controller.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_ZN9KSysGuard17ProcessControllerE_t {};
} // unnamed namespace

template <> constexpr inline auto KSysGuard::ProcessController::qt_create_metaobjectdata<qt_meta_tag_ZN9KSysGuard17ProcessControllerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KSysGuard::ProcessController",
        "sendSignal",
        "Result",
        "",
        "QList<int>",
        "pids",
        "signal",
        "QList<qlonglong>",
        "QVariantList",
        "setPriority",
        "priority",
        "setCPUScheduler",
        "Process::Scheduler",
        "scheduler",
        "setIOScheduler",
        "Process::IoPriorityClass",
        "priorityClass",
        "resultToString",
        "result",
        "Signal",
        "StopSignal",
        "ContinueSignal",
        "HangupSignal",
        "InterruptSignal",
        "TerminateSignal",
        "KillSignal",
        "User1Signal",
        "User2Signal",
        "Unknown",
        "Success",
        "InsufficientPermissions",
        "NoSuchProcess",
        "Unsupported",
        "UserCancelled",
        "Error"
    };

    QtMocHelpers::UintData qt_methods {
        // Method 'sendSignal'
        QtMocHelpers::MethodData<enum Result(const QList<int> &, int)>(1, 3, QMC::AccessPublic, 0x80000000 | 2, {{
            { 0x80000000 | 4, 5 }, { QMetaType::Int, 6 },
        }}),
        // Method 'sendSignal'
        QtMocHelpers::MethodData<enum Result(const QList<long long> &, int)>(1, 3, QMC::AccessPublic, 0x80000000 | 2, {{
            { 0x80000000 | 7, 5 }, { QMetaType::Int, 6 },
        }}),
        // Method 'sendSignal'
        QtMocHelpers::MethodData<enum Result(const QVariantList &, int)>(1, 3, QMC::AccessPublic, 0x80000000 | 2, {{
            { 0x80000000 | 8, 5 }, { QMetaType::Int, 6 },
        }}),
        // Method 'setPriority'
        QtMocHelpers::MethodData<enum Result(const QList<int> &, int)>(9, 3, QMC::AccessPublic, 0x80000000 | 2, {{
            { 0x80000000 | 4, 5 }, { QMetaType::Int, 10 },
        }}),
        // Method 'setPriority'
        QtMocHelpers::MethodData<enum Result(const QList<long long> &, int)>(9, 3, QMC::AccessPublic, 0x80000000 | 2, {{
            { 0x80000000 | 7, 5 }, { QMetaType::Int, 10 },
        }}),
        // Method 'setPriority'
        QtMocHelpers::MethodData<enum Result(const QVariantList &, int)>(9, 3, QMC::AccessPublic, 0x80000000 | 2, {{
            { 0x80000000 | 8, 5 }, { QMetaType::Int, 10 },
        }}),
        // Method 'setCPUScheduler'
        QtMocHelpers::MethodData<enum Result(const QList<int> &, Process::Scheduler, int)>(11, 3, QMC::AccessPublic, 0x80000000 | 2, {{
            { 0x80000000 | 4, 5 }, { 0x80000000 | 12, 13 }, { QMetaType::Int, 10 },
        }}),
        // Method 'setCPUScheduler'
        QtMocHelpers::MethodData<enum Result(const QList<long long> &, Process::Scheduler, int)>(11, 3, QMC::AccessPublic, 0x80000000 | 2, {{
            { 0x80000000 | 7, 5 }, { 0x80000000 | 12, 13 }, { QMetaType::Int, 10 },
        }}),
        // Method 'setCPUScheduler'
        QtMocHelpers::MethodData<enum Result(const QVariantList &, Process::Scheduler, int)>(11, 3, QMC::AccessPublic, 0x80000000 | 2, {{
            { 0x80000000 | 8, 5 }, { 0x80000000 | 12, 13 }, { QMetaType::Int, 10 },
        }}),
        // Method 'setIOScheduler'
        QtMocHelpers::MethodData<enum Result(const QList<int> &, Process::IoPriorityClass, int)>(14, 3, QMC::AccessPublic, 0x80000000 | 2, {{
            { 0x80000000 | 4, 5 }, { 0x80000000 | 15, 16 }, { QMetaType::Int, 10 },
        }}),
        // Method 'setIOScheduler'
        QtMocHelpers::MethodData<enum Result(const QList<long long> &, Process::IoPriorityClass, int)>(14, 3, QMC::AccessPublic, 0x80000000 | 2, {{
            { 0x80000000 | 7, 5 }, { 0x80000000 | 15, 16 }, { QMetaType::Int, 10 },
        }}),
        // Method 'setIOScheduler'
        QtMocHelpers::MethodData<enum Result(const QVariantList &, Process::IoPriorityClass, int)>(14, 3, QMC::AccessPublic, 0x80000000 | 2, {{
            { 0x80000000 | 8, 5 }, { 0x80000000 | 15, 16 }, { QMetaType::Int, 10 },
        }}),
        // Method 'resultToString'
        QtMocHelpers::MethodData<QString(enum Result)>(17, 3, QMC::AccessPublic, QMetaType::QString, {{
            { 0x80000000 | 2, 18 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Signal'
        QtMocHelpers::EnumData<enum Signal>(19, 19, QMC::EnumFlags{}).add({
            {   20, Signal::StopSignal },
            {   21, Signal::ContinueSignal },
            {   22, Signal::HangupSignal },
            {   23, Signal::InterruptSignal },
            {   24, Signal::TerminateSignal },
            {   25, Signal::KillSignal },
            {   26, Signal::User1Signal },
            {   27, Signal::User2Signal },
        }),
        // enum 'Result'
        QtMocHelpers::EnumData<enum Result>(2, 2, QMC::EnumIsScoped).add({
            {   28, Result::Unknown },
            {   29, Result::Success },
            {   30, Result::InsufficientPermissions },
            {   31, Result::NoSuchProcess },
            {   32, Result::Unsupported },
            {   33, Result::UserCancelled },
            {   34, Result::Error },
        }),
    };
    return QtMocHelpers::metaObjectData<ProcessController, qt_meta_tag_ZN9KSysGuard17ProcessControllerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KSysGuard::ProcessController::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9KSysGuard17ProcessControllerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9KSysGuard17ProcessControllerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9KSysGuard17ProcessControllerE_t>.metaTypes,
    nullptr
} };

void KSysGuard::ProcessController::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ProcessController *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { enum Result _r = _t->sendSignal((*reinterpret_cast<std::add_pointer_t<QList<int>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<enum Result*>(_a[0]) = std::move(_r); }  break;
        case 1: { enum Result _r = _t->sendSignal((*reinterpret_cast<std::add_pointer_t<QList<qlonglong>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<enum Result*>(_a[0]) = std::move(_r); }  break;
        case 2: { enum Result _r = _t->sendSignal((*reinterpret_cast<std::add_pointer_t<QVariantList>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<enum Result*>(_a[0]) = std::move(_r); }  break;
        case 3: { enum Result _r = _t->setPriority((*reinterpret_cast<std::add_pointer_t<QList<int>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<enum Result*>(_a[0]) = std::move(_r); }  break;
        case 4: { enum Result _r = _t->setPriority((*reinterpret_cast<std::add_pointer_t<QList<qlonglong>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<enum Result*>(_a[0]) = std::move(_r); }  break;
        case 5: { enum Result _r = _t->setPriority((*reinterpret_cast<std::add_pointer_t<QVariantList>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<enum Result*>(_a[0]) = std::move(_r); }  break;
        case 6: { enum Result _r = _t->setCPUScheduler((*reinterpret_cast<std::add_pointer_t<QList<int>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Process::Scheduler>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])));
            if (_a[0]) *reinterpret_cast<enum Result*>(_a[0]) = std::move(_r); }  break;
        case 7: { enum Result _r = _t->setCPUScheduler((*reinterpret_cast<std::add_pointer_t<QList<qlonglong>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Process::Scheduler>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])));
            if (_a[0]) *reinterpret_cast<enum Result*>(_a[0]) = std::move(_r); }  break;
        case 8: { enum Result _r = _t->setCPUScheduler((*reinterpret_cast<std::add_pointer_t<QVariantList>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Process::Scheduler>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])));
            if (_a[0]) *reinterpret_cast<enum Result*>(_a[0]) = std::move(_r); }  break;
        case 9: { enum Result _r = _t->setIOScheduler((*reinterpret_cast<std::add_pointer_t<QList<int>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Process::IoPriorityClass>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])));
            if (_a[0]) *reinterpret_cast<enum Result*>(_a[0]) = std::move(_r); }  break;
        case 10: { enum Result _r = _t->setIOScheduler((*reinterpret_cast<std::add_pointer_t<QList<qlonglong>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Process::IoPriorityClass>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])));
            if (_a[0]) *reinterpret_cast<enum Result*>(_a[0]) = std::move(_r); }  break;
        case 11: { enum Result _r = _t->setIOScheduler((*reinterpret_cast<std::add_pointer_t<QVariantList>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Process::IoPriorityClass>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])));
            if (_a[0]) *reinterpret_cast<enum Result*>(_a[0]) = std::move(_r); }  break;
        case 12: { QString _r = _t->resultToString((*reinterpret_cast<std::add_pointer_t<enum Result>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<int> >(); break;
            }
            break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<qlonglong> >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<int> >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<qlonglong> >(); 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< QList<int> >(); 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< QList<qlonglong> >(); break;
            }
            break;
        case 9:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<int> >(); break;
            }
            break;
        case 10:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<qlonglong> >(); break;
            }
            break;
        }
    }
}

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

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

int KSysGuard::ProcessController::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 < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    return _id;
}
QT_WARNING_POP
