Changeset View
Changeset View
Standalone View
Standalone View
runners/kill/killrunner.h
Show All 19 Lines | |||||
20 | #ifndef KILLRUNNER_H | 20 | #ifndef KILLRUNNER_H | ||
21 | #define KILLRUNNER_H | 21 | #define KILLRUNNER_H | ||
22 | 22 | | |||
23 | #include <QReadWriteLock> | 23 | #include <QReadWriteLock> | ||
24 | #include <QTimer> | 24 | #include <QTimer> | ||
25 | 25 | | |||
26 | #include <KRunner/AbstractRunner> | 26 | #include <KRunner/AbstractRunner> | ||
27 | 27 | | |||
28 | #include "killrunner_config.h" | 28 | #include "config_keys.h" | ||
29 | class QAction; | 29 | class QAction; | ||
30 | 30 | | |||
31 | namespace KSysGuard | 31 | namespace KSysGuard | ||
32 | { | 32 | { | ||
33 | class Processes; | 33 | class Processes; | ||
34 | class Process; | 34 | class Process; | ||
35 | } | 35 | } | ||
36 | 36 | | |||
Show All 19 Lines | 55 | /** @param uid the uid of the user | |||
56 | * @return the username of the user with the UID uid | 56 | * @return the username of the user with the UID uid | ||
57 | */ | 57 | */ | ||
58 | QString getUserName(qlonglong uid); | 58 | QString getUserName(qlonglong uid); | ||
59 | 59 | | |||
60 | /** The trigger word */ | 60 | /** The trigger word */ | ||
61 | QString m_triggerWord; | 61 | QString m_triggerWord; | ||
62 | 62 | | |||
63 | /** How to sort */ | 63 | /** How to sort */ | ||
64 | KillRunnerConfig::Sort m_sorting; | 64 | Sort m_sorting; | ||
65 | 65 | | |||
66 | /** process lister */ | 66 | /** process lister */ | ||
67 | KSysGuard::Processes *m_processes; | 67 | KSysGuard::Processes *m_processes; | ||
68 | 68 | | |||
69 | /** lock for initializing m_processes */ | 69 | /** lock for initializing m_processes */ | ||
70 | QReadWriteLock m_prepLock; | 70 | QReadWriteLock m_prepLock; | ||
71 | 71 | | |||
72 | /** timer for retrying the cleanup due to lock contention */ | 72 | /** timer for retrying the cleanup due to lock contention */ | ||
73 | QTimer m_delayedCleanupTimer; | 73 | QTimer m_delayedCleanupTimer; | ||
74 | }; | 74 | }; | ||
75 | 75 | | |||
76 | #endif | 76 | #endif |