Changeset View
Changeset View
Standalone View
Standalone View
colorcorrection/manager.h
Show All 26 Lines | |||||
27 | #include <QPair> | 27 | #include <QPair> | ||
28 | #include <QDateTime> | 28 | #include <QDateTime> | ||
29 | 29 | | |||
30 | class QTimer; | 30 | class QTimer; | ||
31 | 31 | | |||
32 | namespace KWin | 32 | namespace KWin | ||
33 | { | 33 | { | ||
34 | 34 | | |||
35 | class ClockSkewNotifier; | ||||
35 | class Workspace; | 36 | class Workspace; | ||
36 | 37 | | |||
37 | namespace ColorCorrect | 38 | namespace ColorCorrect | ||
38 | { | 39 | { | ||
39 | 40 | | |||
40 | typedef QPair<QDateTime,QDateTime> DateTimes; | 41 | typedef QPair<QDateTime,QDateTime> DateTimes; | ||
41 | typedef QPair<QTime,QTime> Times; | 42 | typedef QPair<QTime,QTime> Times; | ||
42 | 43 | | |||
▲ Show 20 Lines • Show All 186 Lines • ▼ Show 20 Line(s) | 208 | private: | |||
229 | void commitGammaRamps(int temperature); | 230 | void commitGammaRamps(int temperature); | ||
230 | 231 | | |||
231 | void setEnabled(bool enabled); | 232 | void setEnabled(bool enabled); | ||
232 | void setRunning(bool running); | 233 | void setRunning(bool running); | ||
233 | void setCurrentTemperature(int temperature); | 234 | void setCurrentTemperature(int temperature); | ||
234 | void setMode(NightColorMode mode); | 235 | void setMode(NightColorMode mode); | ||
235 | 236 | | |||
236 | ColorCorrectDBusInterface *m_iface; | 237 | ColorCorrectDBusInterface *m_iface; | ||
238 | ClockSkewNotifier *m_skewNotifier; | ||||
237 | 239 | | |||
238 | // Specifies whether Night Color is enabled. | 240 | // Specifies whether Night Color is enabled. | ||
239 | bool m_active; | 241 | bool m_active; | ||
240 | 242 | | |||
241 | // Specifies whether Night Color is currently running. | 243 | // Specifies whether Night Color is currently running. | ||
242 | bool m_running = false; | 244 | bool m_running = false; | ||
243 | 245 | | |||
244 | // Specifies whether Night Color is inhibited globally. | 246 | // Specifies whether Night Color is inhibited globally. | ||
Show All 39 Lines |