File indexing completed on 2024-04-28 05:31:36

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/ActionReply>
0016 #include <KAuth/HelperSupport>
0017 
0018 using namespace KAuth;
0019 
0020 /* The functions here run as ROOT.  So be careful. */
0021 
0022 class KSysGuardProcessListHelper : public QObject
0023 {
0024     Q_OBJECT
0025 public:
0026     KSysGuardProcessListHelper();
0027 
0028 public Q_SLOTS:
0029     ActionReply sendsignal(const QVariantMap &parameters);
0030     ActionReply renice(const QVariantMap &parameters);
0031     ActionReply changeioscheduler(const QVariantMap &parameters);
0032     ActionReply changecpuscheduler(const QVariantMap &parameters);
0033 };
0034 
0035 Q_DECLARE_METATYPE(QList<long long>)
0036 
0037 #endif // KSYSGUARD_HELPER_H