Changeset View
Changeset View
Standalone View
Standalone View
daemon/actions/bundled/suspendsessionconfig.h
Show All 17 Lines | |||||
18 | ***************************************************************************/ | 18 | ***************************************************************************/ | ||
19 | 19 | | |||
20 | 20 | | |||
21 | #ifndef POWERDEVIL_BUNDLEDACTIONS_SUSPENDSESSIONCONFIG_H | 21 | #ifndef POWERDEVIL_BUNDLEDACTIONS_SUSPENDSESSIONCONFIG_H | ||
22 | #define POWERDEVIL_BUNDLEDACTIONS_SUSPENDSESSIONCONFIG_H | 22 | #define POWERDEVIL_BUNDLEDACTIONS_SUSPENDSESSIONCONFIG_H | ||
23 | 23 | | |||
24 | #include <powerdevilactionconfig.h> | 24 | #include <powerdevilactionconfig.h> | ||
25 | 25 | | |||
26 | class KComboBox; | | |||
27 | class QCheckBox; | 26 | class QCheckBox; | ||
27 | class QComboBox; | ||||
28 | class QSpinBox; | 28 | class QSpinBox; | ||
29 | 29 | | |||
30 | namespace PowerDevil { | 30 | namespace PowerDevil { | ||
31 | namespace BundledActions { | 31 | namespace BundledActions { | ||
32 | 32 | | |||
33 | class SuspendSessionConfig : public PowerDevil::ActionConfig | 33 | class SuspendSessionConfig : public PowerDevil::ActionConfig | ||
34 | { | 34 | { | ||
35 | Q_OBJECT | 35 | Q_OBJECT | ||
36 | Q_DISABLE_COPY(SuspendSessionConfig) | 36 | Q_DISABLE_COPY(SuspendSessionConfig) | ||
37 | public: | 37 | public: | ||
38 | SuspendSessionConfig(QObject* parent, const QVariantList&); | 38 | SuspendSessionConfig(QObject* parent, const QVariantList&); | ||
39 | ~SuspendSessionConfig() override; | 39 | ~SuspendSessionConfig() override; | ||
40 | 40 | | |||
41 | void save() override; | 41 | void save() override; | ||
42 | void load() override; | 42 | void load() override; | ||
43 | QList< QPair< QString, QWidget* > > buildUi() override; | 43 | QList< QPair< QString, QWidget* > > buildUi() override; | ||
44 | 44 | | |||
45 | private: | 45 | private: | ||
46 | QSpinBox *m_idleTime; | 46 | QSpinBox *m_idleTime; | ||
47 | QCheckBox *m_suspendThenHibernateEnabled; | 47 | QCheckBox *m_suspendThenHibernateEnabled; | ||
48 | KComboBox *m_comboBox; | 48 | QComboBox *m_comboBox; | ||
49 | }; | 49 | }; | ||
50 | 50 | | |||
51 | } | 51 | } | ||
52 | } | 52 | } | ||
53 | 53 | | |||
54 | #endif // POWERDEVIL_BUNDLEDACTIONS_SUSPENDSESSIONCONFIG_H | 54 | #endif // POWERDEVIL_BUNDLEDACTIONS_SUSPENDSESSIONCONFIG_H |