File indexing completed on 2024-04-28 16:49:53

0001 /*
0002     KSysGuard, the KDE System Guard
0003 
0004     SPDX-FileCopyrightText: 2009 John Tapsell <john.tapsell@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.0-or-later
0007 
0008 */
0009 
0010 #ifndef KSYSGUARD_HELPER_H
0011 #define KSYSGUARD_HELPER_H
0012 
0013 #include <QObject>
0014 
0015 #include <kauth_version.h>
0016 #if KAUTH_VERSION >= QT_VERSION_CHECK(5, 92, 0)
0017 #include <KAuth/ActionReply>
0018 #include <KAuth/HelperSupport>
0019 #else
0020 #include <kauth.h>
0021 #endif
0022 
0023 using namespace KAuth;
0024 
0025 /* The functions here run as ROOT.  So be careful. */
0026 
0027 class KSysGuardProcessListHelper : public QObject
0028 {
0029     Q_OBJECT
0030 public:
0031     KSysGuardProcessListHelper();
0032 
0033 public Q_SLOTS:
0034     ActionReply sendsignal(const QVariantMap &parameters);
0035     ActionReply renice(const QVariantMap &parameters);
0036     ActionReply changeioscheduler(const QVariantMap &parameters);
0037     ActionReply changecpuscheduler(const QVariantMap &parameters);
0038 };
0039 
0040 Q_DECLARE_METATYPE(QList<long long>)
0041 
0042 #endif // KSYSGUARD_HELPER_H