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