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