Changeset View
Changeset View
Standalone View
Standalone View
src/kded/tabletdaemon.h
Show All 17 Lines | |||||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef TABLETDAEMON_H | 20 | #ifndef TABLETDAEMON_H | ||
21 | #define TABLETDAEMON_H | 21 | #define TABLETDAEMON_H | ||
22 | 22 | | |||
23 | #include <KDEDModule> | 23 | #include <KDEDModule> | ||
24 | #include <QVariantList> | 24 | #include <QVariantList> | ||
25 | 25 | | |||
26 | class QScreen; | ||||
27 | | ||||
26 | /** | 28 | /** | ||
27 | * The wacom namespace holds all classes regarding the tablet daemon / kcmodule and applet. | 29 | * The wacom namespace holds all classes regarding the tablet daemon / kcmodule and applet. | ||
28 | */ | 30 | */ | ||
29 | namespace Wacom | 31 | namespace Wacom | ||
30 | { | 32 | { | ||
31 | class TabletDaemonPrivate; | 33 | class TabletDaemonPrivate; | ||
32 | 34 | | |||
33 | /** | 35 | /** | ||
▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | 87 | private: | |||
102 | void setupDBus(); | 104 | void setupDBus(); | ||
103 | 105 | | |||
104 | /** | 106 | /** | ||
105 | * Sets up the X event notifier. | 107 | * Sets up the X event notifier. | ||
106 | * This method should only be called by a constructor. | 108 | * This method should only be called by a constructor. | ||
107 | */ | 109 | */ | ||
108 | void setupEventNotifier(); | 110 | void setupEventNotifier(); | ||
109 | 111 | | |||
112 | /** | ||||
113 | * Helper function that sets up signals | ||||
114 | * monitoring screen rotations and geometry changes | ||||
115 | * for every existing and future screens. | ||||
116 | */ | ||||
117 | void monitorAllScreensGeometry(); | ||||
118 | | ||||
119 | private Q_SLOTS: | ||||
120 | /** | ||||
121 | * Sets up signals for rotation and geometry changes | ||||
122 | * for a specific screen | ||||
123 | * @param screen Screen to monitor | ||||
124 | */ | ||||
125 | void monitorScreenGeometry(QScreen *screen); | ||||
126 | | ||||
127 | private: | ||||
128 | | ||||
110 | 129 | | |||
111 | Q_DECLARE_PRIVATE(TabletDaemon) | 130 | Q_DECLARE_PRIVATE(TabletDaemon) | ||
112 | TabletDaemonPrivate *const d_ptr; /**< d-pointer for this class */ | 131 | TabletDaemonPrivate *const d_ptr; /**< d-pointer for this class */ | ||
113 | 132 | | |||
114 | }; // CLASS | 133 | }; // CLASS | ||
115 | } // NAMESPACE | 134 | } // NAMESPACE | ||
116 | #endif // HEADER PROTECTION | 135 | #endif // HEADER PROTECTION |