Changeset View
Changeset View
Standalone View
Standalone View
kcms/touchpad/src/kded/kded.h
Show All 17 Lines | |||||
18 | 18 | | |||
19 | #ifndef KDED_H | 19 | #ifndef KDED_H | ||
20 | #define KDED_H | 20 | #define KDED_H | ||
21 | 21 | | |||
22 | #include <QVariantList> | 22 | #include <QVariantList> | ||
23 | #include <QTimer> | 23 | #include <QTimer> | ||
24 | #include <QDBusServiceWatcher> | 24 | #include <QDBusServiceWatcher> | ||
25 | #include <QDBusPendingCallWatcher> | 25 | #include <QDBusPendingCallWatcher> | ||
26 | #include <QPointer> | ||||
26 | 27 | | |||
27 | #include <KDEDModule> | 28 | #include <KDEDModule> | ||
29 | #include <KNotification> | ||||
28 | 30 | | |||
29 | #include "touchpadbackend.h" | 31 | #include "touchpadbackend.h" | ||
30 | #include "kdedsettings.h" | 32 | #include "kdedsettings.h" | ||
31 | 33 | | |||
32 | class TouchpadDisabler : public KDEDModule | 34 | class TouchpadDisabler : public KDEDModule | ||
33 | { | 35 | { | ||
34 | Q_OBJECT | 36 | Q_OBJECT | ||
35 | Q_CLASSINFO("D-Bus Interface", "org.kde.touchpad") | 37 | Q_CLASSINFO("D-Bus Interface", "org.kde.touchpad") | ||
Show All 37 Lines | 67 | private: | |||
73 | QTimer m_keyboardActivityTimeout; | 75 | QTimer m_keyboardActivityTimeout; | ||
74 | QDBusServiceWatcher m_dependencies; | 76 | QDBusServiceWatcher m_dependencies; | ||
75 | 77 | | |||
76 | TouchpadBackend::TouchpadOffState m_keyboardDisableState; | 78 | TouchpadBackend::TouchpadOffState m_keyboardDisableState; | ||
77 | bool m_userRequestedState, m_touchpadEnabled; | 79 | bool m_userRequestedState, m_touchpadEnabled; | ||
78 | bool m_workingTouchpadFound; | 80 | bool m_workingTouchpadFound; | ||
79 | bool m_keyboardActivity, m_mouse; | 81 | bool m_keyboardActivity, m_mouse; | ||
80 | 82 | | |||
83 | QPointer<KNotification> m_notification; | ||||
84 | | ||||
81 | bool m_preparingForSleep = false; | 85 | bool m_preparingForSleep = false; | ||
82 | }; | 86 | }; | ||
83 | 87 | | |||
84 | #endif // KDED_H | 88 | #endif // KDED_H |