Changeset View
Changeset View
Standalone View
Standalone View
kcms/touchpad/src/kcm/xlib/touchpadconfigxlib.h
- This file was moved from kcms/touchpad/src/kcm/touchpadconfig.h.
Context not available. | |||||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
---|---|---|---|---|---|
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | #ifndef TOUCHPADCONFIG_H | 19 | #ifndef TOUCHPADCONFIGXLIB_H | ||
20 | #define TOUCHPADCONFIG_H | 20 | #define TOUCHPADCONFIGXLIB_H | ||
21 | | ||||
22 | #include "../touchpadconfigplugin.h" | ||||
21 | 23 | | |||
22 | #include <KCModule> | | |||
23 | #include <KConfigDialogManager> | 24 | #include <KConfigDialogManager> | ||
24 | #include <QScopedPointer> | 25 | #include <QScopedPointer> | ||
25 | 26 | | |||
Context not available. | |||||
33 | #include "ui_sensitivity.h" | 34 | #include "ui_sensitivity.h" | ||
34 | #include "ui_kded.h" | 35 | #include "ui_kded.h" | ||
35 | 36 | | |||
37 | class TouchpadConfigContainer; | ||||
36 | class TouchpadBackend; | 38 | class TouchpadBackend; | ||
37 | class KMessageWidget; | 39 | class KMessageWidget; | ||
38 | class OrgKdeTouchpadInterface; | 40 | class OrgKdeTouchpadInterface; | ||
Context not available. | |||||
42 | class QTabWidget; | 44 | class QTabWidget; | ||
43 | class KComboBox; | 45 | class KComboBox; | ||
44 | class QDBusPendingCallWatcher; | 46 | class QDBusPendingCallWatcher; | ||
47 | class QHideEvent; | ||||
45 | 48 | | |||
46 | class TouchpadConfig : public KCModule | 49 | class TouchpadConfigXlib : public TouchpadConfigPlugin | ||
47 | { | 50 | { | ||
48 | Q_OBJECT | 51 | Q_OBJECT | ||
49 | 52 | | |||
50 | public: | 53 | public: | ||
51 | explicit TouchpadConfig(QWidget *parent, | 54 | explicit TouchpadConfigXlib(TouchpadConfigContainer *parent, | ||
52 | const QVariantList &args = QVariantList()); | 55 | const QVariantList &args = QVariantList()); | ||
53 | virtual ~TouchpadConfig(); | 56 | virtual ~TouchpadConfigXlib(); | ||
57 | | ||||
58 | static void kcmInit(); | ||||
54 | 59 | | |||
55 | virtual void load(); | 60 | virtual void load(); | ||
56 | virtual void save(); | 61 | virtual void save(); | ||
57 | virtual void defaults(); | 62 | virtual void defaults(); | ||
58 | 63 | | |||
59 | protected: | | |||
60 | virtual void hideEvent(QHideEvent *); | 64 | virtual void hideEvent(QHideEvent *); | ||
61 | 65 | | |||
62 | private Q_SLOTS: | 66 | private Q_SLOTS: | ||
Context not available. | |||||
73 | private: | 77 | private: | ||
74 | QVariantHash getActiveConfig(); | 78 | QVariantHash getActiveConfig(); | ||
75 | 79 | | |||
76 | TouchpadBackend *m_backend; | | |||
77 | TouchpadParameters m_config; | 80 | TouchpadParameters m_config; | ||
78 | 81 | | |||
79 | QScopedPointer<QVariantHash> m_prevConfig; | 82 | QScopedPointer<QVariantHash> m_prevConfig; | ||
Context not available. | |||||
97 | Ui::KdedForm m_kded; | 100 | Ui::KdedForm m_kded; | ||
98 | }; | 101 | }; | ||
99 | 102 | | |||
100 | #endif // TOUCHPADCONFIG_H | 103 | #endif // TOUCHPADCONFIGXLIB_H | ||
Context not available. |