Changeset View
Changeset View
Standalone View
Standalone View
dataengines/powermanagement/powermanagementjob.h
Show All 16 Lines | |||||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | #ifndef POWERMANAGEMENTJOB_H | 19 | #ifndef POWERMANAGEMENTJOB_H | ||
20 | #define POWERMANAGEMENTJOB_H | 20 | #define POWERMANAGEMENTJOB_H | ||
21 | 21 | | |||
22 | // plasma | 22 | // plasma | ||
23 | #include <Plasma/ServiceJob> | 23 | #include <Plasma/ServiceJob> | ||
24 | 24 | | |||
25 | class SessionManagement; | ||||
25 | class QDBusPendingCall; | 26 | class QDBusPendingCall; | ||
26 | 27 | | |||
27 | class PowerManagementJob : public Plasma::ServiceJob | 28 | class PowerManagementJob : public Plasma::ServiceJob | ||
28 | { | 29 | { | ||
29 | Q_OBJECT | 30 | Q_OBJECT | ||
30 | 31 | | |||
31 | public: | 32 | public: | ||
32 | PowerManagementJob(const QString &operation, QMap<QString, QVariant> ¶meters, | 33 | PowerManagementJob(const QString &operation, QMap<QString, QVariant> ¶meters, | ||
33 | QObject *parent = nullptr); | 34 | QObject *parent = nullptr); | ||
34 | ~PowerManagementJob() override; | 35 | ~PowerManagementJob() override; | ||
35 | 36 | | |||
36 | protected: | 37 | protected: | ||
37 | void start() override; | 38 | void start() override; | ||
38 | 39 | | |||
39 | private: | 40 | private: | ||
40 | void requestShutDown(); | | |||
41 | QDBusPendingCall setScreenBrightness(int value, bool silent); | 41 | QDBusPendingCall setScreenBrightness(int value, bool silent); | ||
42 | QDBusPendingCall setKeyboardBrightness(int value, bool silent); | 42 | QDBusPendingCall setKeyboardBrightness(int value, bool silent); | ||
broulik: Where is it being initialized? | |||||
43 | SessionManagement *m_session; | ||||
43 | }; | 44 | }; | ||
44 | 45 | | |||
45 | #endif // POWERMANAGEMENTJOB_H | 46 | #endif // POWERMANAGEMENTJOB_H |
Where is it being initialized?