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

template <> constexpr inline auto KSysGuardProcessList::qt_create_metaobjectdata<qt_meta_tag_ZN20KSysGuardProcessListE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KSysGuardProcessList",
        "updated",
        "",
        "processListChanged",
        "selectionChanged",
        "killSelectedProcesses",
        "sendSignalToSelectedProcesses",
        "sig",
        "confirm",
        "killProcesses",
        "QList<qlonglong>",
        "pids",
        "reniceSelectedProcesses",
        "changeCpuScheduler",
        "KSysGuard::Process::Scheduler",
        "newCpuSched",
        "newCpuSchedPriority",
        "changeIoScheduler",
        "KSysGuard::Process::IoPriorityClass",
        "newIoSched",
        "newIoSchedPriority",
        "reniceProcesses",
        "niceValue",
        "updateList",
        "setState",
        "ProcessFilter::State",
        "state",
        "setUpdateIntervalMSecs",
        "intervalMSecs",
        "setShowTotals",
        "showTotals",
        "selectAndJumpToProcess",
        "pid",
        "setUnits",
        "ProcessModel::Units",
        "unit",
        "rowsInserted",
        "QModelIndex",
        "parent",
        "start",
        "end",
        "expandAllChildren",
        "expandInit",
        "showColumnContextMenu",
        "QPoint",
        "point",
        "showProcessContextMenu",
        "index",
        "setStateInt",
        "filterTextChanged",
        "newText",
        "actionTriggered",
        "object",
        "showTotalsInTree",
        "updateIntervalMSecs",
        "units",
        "killButtonVisible",
        "scriptingEnabled"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'updated'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'processListChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'selectionChanged'
        QtMocHelpers::SlotData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'killSelectedProcesses'
        QtMocHelpers::SlotData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'sendSignalToSelectedProcesses'
        QtMocHelpers::SlotData<void(int, bool)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 7 }, { QMetaType::Bool, 8 },
        }}),
        // Slot 'killProcesses'
        QtMocHelpers::SlotData<bool(const QList<long long> &, int)>(9, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 10, 11 }, { QMetaType::Int, 7 },
        }}),
        // Slot 'reniceSelectedProcesses'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'changeCpuScheduler'
        QtMocHelpers::SlotData<bool(const QList<long long> &, KSysGuard::Process::Scheduler, int)>(13, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 10, 11 }, { 0x80000000 | 14, 15 }, { QMetaType::Int, 16 },
        }}),
        // Slot 'changeIoScheduler'
        QtMocHelpers::SlotData<bool(const QList<long long> &, KSysGuard::Process::IoPriorityClass, int)>(17, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 10, 11 }, { 0x80000000 | 18, 19 }, { QMetaType::Int, 20 },
        }}),
        // Slot 'reniceProcesses'
        QtMocHelpers::SlotData<bool(const QList<long long> &, int)>(21, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 10, 11 }, { QMetaType::Int, 22 },
        }}),
        // Slot 'updateList'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setState'
        QtMocHelpers::SlotData<void(ProcessFilter::State)>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 25, 26 },
        }}),
        // Slot 'setUpdateIntervalMSecs'
        QtMocHelpers::SlotData<void(int)>(27, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 28 },
        }}),
        // Slot 'setShowTotals'
        QtMocHelpers::SlotData<void(bool)>(29, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 30 },
        }}),
        // Slot 'selectAndJumpToProcess'
        QtMocHelpers::SlotData<void(int)>(31, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 32 },
        }}),
        // Slot 'setUnits'
        QtMocHelpers::SlotData<void(ProcessModel::Units)>(33, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 34, 35 },
        }}),
        // Slot 'rowsInserted'
        QtMocHelpers::SlotData<void(const QModelIndex &, int, int)>(36, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 37, 38 }, { QMetaType::Int, 39 }, { QMetaType::Int, 40 },
        }}),
        // Slot 'expandAllChildren'
        QtMocHelpers::SlotData<void(const QModelIndex &)>(41, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 37, 38 },
        }}),
        // Slot 'expandInit'
        QtMocHelpers::SlotData<void()>(42, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'showColumnContextMenu'
        QtMocHelpers::SlotData<void(const QPoint &)>(43, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 44, 45 },
        }}),
        // Slot 'showProcessContextMenu'
        QtMocHelpers::SlotData<void(const QModelIndex &)>(46, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 37, 47 },
        }}),
        // Slot 'showProcessContextMenu'
        QtMocHelpers::SlotData<void(const QPoint &)>(46, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 44, 45 },
        }}),
        // Slot 'setStateInt'
        QtMocHelpers::SlotData<void(int)>(48, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 26 },
        }}),
        // Slot 'filterTextChanged'
        QtMocHelpers::SlotData<void(const QString &)>(49, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 50 },
        }}),
        // Slot 'actionTriggered'
        QtMocHelpers::SlotData<void(QObject *)>(51, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QObjectStar, 52 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'showTotalsInTree'
        QtMocHelpers::PropertyData<bool>(53, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable),
        // property 'state'
        QtMocHelpers::PropertyData<ProcessFilter::State>(26, 0x80000000 | 25, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'updateIntervalMSecs'
        QtMocHelpers::PropertyData<int>(54, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'units'
        QtMocHelpers::PropertyData<ProcessModel::Units>(55, 0x80000000 | 34, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'killButtonVisible'
        QtMocHelpers::PropertyData<bool>(56, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'scriptingEnabled'
        QtMocHelpers::PropertyData<bool>(57, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<KSysGuardProcessList, qt_meta_tag_ZN20KSysGuardProcessListE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT static const QMetaObject::SuperData qt_meta_extradata_ZN20KSysGuardProcessListE[] = {
    QMetaObject::SuperData::link<ProcessFilter::staticMetaObject>(),
    QMetaObject::SuperData::link<ProcessModel::staticMetaObject>(),
    nullptr
};

Q_CONSTINIT const QMetaObject KSysGuardProcessList::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN20KSysGuardProcessListE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN20KSysGuardProcessListE_t>.data,
    qt_static_metacall,
    qt_meta_extradata_ZN20KSysGuardProcessListE,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN20KSysGuardProcessListE_t>.metaTypes,
    nullptr
} };

void KSysGuardProcessList::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KSysGuardProcessList *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->updated(); break;
        case 1: _t->processListChanged(); break;
        case 2: _t->selectionChanged(); break;
        case 3: _t->killSelectedProcesses(); break;
        case 4: _t->sendSignalToSelectedProcesses((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 5: { bool _r = _t->killProcesses((*reinterpret_cast<std::add_pointer_t<QList<qlonglong>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 6: _t->reniceSelectedProcesses(); break;
        case 7: { bool _r = _t->changeCpuScheduler((*reinterpret_cast<std::add_pointer_t<QList<qlonglong>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<KSysGuard::Process::Scheduler>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 8: { bool _r = _t->changeIoScheduler((*reinterpret_cast<std::add_pointer_t<QList<qlonglong>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<KSysGuard::Process::IoPriorityClass>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 9: { bool _r = _t->reniceProcesses((*reinterpret_cast<std::add_pointer_t<QList<qlonglong>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 10: _t->updateList(); break;
        case 11: _t->setState((*reinterpret_cast<std::add_pointer_t<ProcessFilter::State>>(_a[1]))); break;
        case 12: _t->setUpdateIntervalMSecs((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 13: _t->setShowTotals((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 14: _t->selectAndJumpToProcess((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 15: _t->setUnits((*reinterpret_cast<std::add_pointer_t<ProcessModel::Units>>(_a[1]))); break;
        case 16: _t->rowsInserted((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 17: _t->expandAllChildren((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 18: _t->expandInit(); break;
        case 19: _t->showColumnContextMenu((*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[1]))); break;
        case 20: _t->showProcessContextMenu((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 21: _t->showProcessContextMenu((*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[1]))); break;
        case 22: _t->setStateInt((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 23: _t->filterTextChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 24: _t->actionTriggered((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1]))); 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< QList<qlonglong> >(); 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 8:
            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<qlonglong> >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (KSysGuardProcessList::*)()>(_a, &KSysGuardProcessList::updated, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (KSysGuardProcessList::*)()>(_a, &KSysGuardProcessList::processListChanged, 1))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->showTotals(); break;
        case 1: *reinterpret_cast<ProcessFilter::State*>(_v) = _t->state(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->updateIntervalMSecs(); break;
        case 3: *reinterpret_cast<ProcessModel::Units*>(_v) = _t->units(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->isKillButtonVisible(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->scriptingEnabled(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setShowTotals(*reinterpret_cast<bool*>(_v)); break;
        case 1: _t->setState(*reinterpret_cast<ProcessFilter::State*>(_v)); break;
        case 2: _t->setUpdateIntervalMSecs(*reinterpret_cast<int*>(_v)); break;
        case 3: _t->setUnits(*reinterpret_cast<ProcessModel::Units*>(_v)); break;
        case 4: _t->setKillButtonVisible(*reinterpret_cast<bool*>(_v)); break;
        case 5: _t->setScriptingEnabled(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

int KSysGuardProcessList::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 < 25)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 25;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 25)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 25;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    }
    return _id;
}

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

// SIGNAL 1
void KSysGuardProcessList::processListChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
