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 197 Lines • ▼ Show 20 Line(s) | 218 | private: | |||
240 | void commitGammaRamps(int temperature); | 241 | void commitGammaRamps(int temperature); | ||
241 | 242 | | |||
242 | void setEnabled(bool enabled); | 243 | void setEnabled(bool enabled); | ||
243 | void setRunning(bool running); | 244 | void setRunning(bool running); | ||
244 | void setCurrentTemperature(int temperature); | 245 | void setCurrentTemperature(int temperature); | ||
245 | void setMode(NightColorMode mode); | 246 | void setMode(NightColorMode mode); | ||
246 | 247 | | |||
247 | ColorCorrectDBusInterface *m_iface; | 248 | ColorCorrectDBusInterface *m_iface; | ||
249 | ClockSkewNotifier *m_skewNotifier; | ||||
248 | 250 | | |||
249 | // Specifies whether Night Color is enabled. | 251 | // Specifies whether Night Color is enabled. | ||
250 | bool m_active; | 252 | bool m_active; | ||
251 | 253 | | |||
252 | // Specifies whether Night Color is currently running. | 254 | // Specifies whether Night Color is currently running. | ||
253 | bool m_running = false; | 255 | bool m_running = false; | ||
254 | 256 | | |||
255 | // Specifies whether Night Color is inhibited globally. | 257 | // Specifies whether Night Color is inhibited globally. | ||
Show All 40 Lines |