Changeset View
Changeset View
Standalone View
Standalone View
kded/daemon.h
Show All 20 Lines | |||||
21 | 21 | | |||
22 | #include "osdaction.h" | 22 | #include "osdaction.h" | ||
23 | #include <kscreen/config.h> | 23 | #include <kscreen/config.h> | ||
24 | 24 | | |||
25 | #include <kdedmodule.h> | 25 | #include <kdedmodule.h> | ||
26 | 26 | | |||
27 | #include <QVariant> | 27 | #include <QVariant> | ||
28 | 28 | | |||
29 | #include <memory> | ||||
30 | | ||||
31 | class Config; | ||||
32 | | ||||
29 | namespace KScreen | 33 | namespace KScreen | ||
30 | { | 34 | { | ||
31 | class ConfigOperation; | 35 | class ConfigOperation; | ||
32 | class OsdManager; | 36 | class OsdManager; | ||
33 | } | 37 | } | ||
34 | 38 | | |||
35 | class QTimer; | 39 | class QTimer; | ||
36 | 40 | | |||
Show All 29 Lines | 59 | private: | |||
66 | void lidClosedTimeout(); | 70 | void lidClosedTimeout(); | ||
67 | void setMonitorForChanges(bool enabled); | 71 | void setMonitorForChanges(bool enabled); | ||
68 | 72 | | |||
69 | void outputConnectedChanged(); | 73 | void outputConnectedChanged(); | ||
70 | void showOutputIdentifier(); | 74 | void showOutputIdentifier(); | ||
71 | void applyOsdAction(KScreen::OsdAction::Action action); | 75 | void applyOsdAction(KScreen::OsdAction::Action action); | ||
72 | 76 | | |||
73 | void doApplyConfig(const KScreen::ConfigPtr &config); | 77 | void doApplyConfig(const KScreen::ConfigPtr &config); | ||
78 | void doApplyConfig(std::unique_ptr<Config> config); | ||||
79 | void refreshConfig(); | ||||
74 | 80 | | |||
75 | void monitorConnectedChange(); | 81 | void monitorConnectedChange(); | ||
76 | void disableOutput(KScreen::ConfigPtr &config, KScreen::OutputPtr &output); | 82 | void disableOutput(KScreen::OutputPtr &output); | ||
77 | void showOsd(const QString &icon, const QString &text); | 83 | void showOsd(const QString &icon, const QString &text); | ||
78 | 84 | | |||
79 | KScreen::ConfigPtr m_monitoredConfig; | 85 | std::unique_ptr<Config> m_monitoredConfig; | ||
80 | bool m_monitoring; | 86 | bool m_monitoring; | ||
81 | QTimer* m_changeCompressor; | 87 | QTimer* m_changeCompressor; | ||
82 | QTimer* m_saveTimer; | 88 | QTimer* m_saveTimer; | ||
83 | QTimer* m_lidClosedTimer; | 89 | QTimer* m_lidClosedTimer; | ||
84 | KScreen::OsdManager *m_osdManager; | 90 | KScreen::OsdManager *m_osdManager; | ||
85 | }; | 91 | }; | ||
86 | 92 | | |||
87 | #endif /*KSCREEN_DAEMON_H*/ | 93 | #endif /*KSCREEN_DAEMON_H*/ |