Changeset View
Changeset View
Standalone View
Standalone View
kded/daemon.h
Show All 13 Lines | |||||
14 | * * | 14 | * * | ||
15 | * You should have received a copy of the GNU General Public License * | 15 | * You should have received a copy of the GNU General Public License * | ||
16 | * along with this program; if not, write to the Free Software * | 16 | * along with this program; if not, write to the Free Software * | ||
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * | 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * | ||
18 | *************************************************************************************/ | 18 | *************************************************************************************/ | ||
19 | #ifndef KSCREEN_DAEMON_H | 19 | #ifndef KSCREEN_DAEMON_H | ||
20 | #define KSCREEN_DAEMON_H | 20 | #define KSCREEN_DAEMON_H | ||
21 | 21 | | |||
22 | #include "../common/globals.h" | ||||
22 | #include "osdaction.h" | 23 | #include "osdaction.h" | ||
24 | | ||||
23 | #include <kscreen/config.h> | 25 | #include <kscreen/config.h> | ||
24 | 26 | | |||
25 | #include <kdedmodule.h> | 27 | #include <kdedmodule.h> | ||
26 | 28 | | |||
27 | #include <QVariant> | 29 | #include <QVariant> | ||
28 | 30 | | |||
29 | #include <memory> | 31 | #include <memory> | ||
30 | 32 | | |||
31 | class Config; | 33 | class Config; | ||
34 | class OrientationSensor; | ||||
32 | 35 | | |||
33 | namespace KScreen | 36 | namespace KScreen | ||
34 | { | 37 | { | ||
35 | class OsdManager; | 38 | class OsdManager; | ||
36 | } | 39 | } | ||
37 | 40 | | |||
38 | class QTimer; | 41 | class QTimer; | ||
39 | 42 | | |||
Show All 36 Lines | 61 | private: | |||
76 | void doApplyConfig(const KScreen::ConfigPtr &config); | 79 | void doApplyConfig(const KScreen::ConfigPtr &config); | ||
77 | void doApplyConfig(std::unique_ptr<Config> config); | 80 | void doApplyConfig(std::unique_ptr<Config> config); | ||
78 | void refreshConfig(); | 81 | void refreshConfig(); | ||
79 | 82 | | |||
80 | void monitorConnectedChange(); | 83 | void monitorConnectedChange(); | ||
81 | void disableOutput(KScreen::OutputPtr &output); | 84 | void disableOutput(KScreen::OutputPtr &output); | ||
82 | void showOsd(const QString &icon, const QString &text); | 85 | void showOsd(const QString &icon, const QString &text); | ||
83 | 86 | | |||
87 | void updateOrientation(); | ||||
88 | | ||||
84 | std::unique_ptr<Config> m_monitoredConfig; | 89 | std::unique_ptr<Config> m_monitoredConfig; | ||
85 | bool m_monitoring; | 90 | bool m_monitoring; | ||
91 | bool m_configDirty = true; | ||||
86 | QTimer* m_changeCompressor; | 92 | QTimer* m_changeCompressor; | ||
87 | QTimer* m_saveTimer; | 93 | QTimer* m_saveTimer; | ||
88 | QTimer* m_lidClosedTimer; | 94 | QTimer* m_lidClosedTimer; | ||
89 | KScreen::OsdManager *m_osdManager; | 95 | KScreen::OsdManager *m_osdManager; | ||
96 | OrientationSensor *m_orientationSensor; | ||||
90 | bool m_startingUp = true; | 97 | bool m_startingUp = true; | ||
91 | }; | 98 | }; | ||
92 | 99 | | |||
93 | #endif /*KSCREEN_DAEMON_H*/ | 100 | #endif /*KSCREEN_DAEMON_H*/ |