Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/plugin/systementry.h
Show All 16 Lines | |||||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * | ||
18 | ***************************************************************************/ | 18 | ***************************************************************************/ | ||
19 | 19 | | |||
20 | #ifndef SYSTEMENTRY_H | 20 | #ifndef SYSTEMENTRY_H | ||
21 | #define SYSTEMENTRY_H | 21 | #define SYSTEMENTRY_H | ||
22 | 22 | | |||
23 | #include "abstractentry.h" | 23 | #include "abstractentry.h" | ||
24 | 24 | | |||
25 | class KDisplayManager; | | |||
26 | | ||||
27 | class SystemEntry : public AbstractEntry | 25 | class SystemEntry : public AbstractEntry | ||
28 | { | 26 | { | ||
29 | public: | 27 | public: | ||
30 | enum Action | 28 | enum Action | ||
31 | { | 29 | { | ||
32 | NoAction = 0, | 30 | NoAction = 0, | ||
33 | LockSession, | 31 | LockSession, | ||
34 | LogoutSession, | 32 | LogoutSession, | ||
Show All 23 Lines | |||||
58 | bool run(const QString& actionId = QString(), const QVariant &argument = QVariant()) override; | 56 | bool run(const QString& actionId = QString(), const QVariant &argument = QVariant()) override; | ||
59 | 57 | | |||
60 | private: | 58 | private: | ||
61 | void init(); | 59 | void init(); | ||
62 | 60 | | |||
63 | Action m_action; | 61 | Action m_action; | ||
64 | bool m_valid; | 62 | bool m_valid; | ||
65 | 63 | | |||
66 | static KDisplayManager *m_displayManager; | | |||
67 | }; | 64 | }; | ||
68 | 65 | | |||
69 | #endif | 66 | #endif |