Changeset View
Changeset View
Standalone View
Standalone View
kded/daemon.h
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 47 | public Q_SLOTS: | |||
---|---|---|---|---|---|
50 | 50 | | |||
51 | void init(); | 51 | void init(); | ||
52 | void applyConfig(); | 52 | void applyConfig(); | ||
53 | void applyKnownConfig(); | 53 | void applyKnownConfig(); | ||
54 | void applyIdealConfig(); | 54 | void applyIdealConfig(); | ||
55 | void configChanged(); | 55 | void configChanged(); | ||
56 | void saveCurrentConfig(); | 56 | void saveCurrentConfig(); | ||
57 | void displayButton(); | 57 | void displayButton(); | ||
58 | void resetDisplaySwitch(); | | |||
59 | void applyGenericConfig(); | | |||
60 | void lidClosedChanged(bool lidIsClosed); | 58 | void lidClosedChanged(bool lidIsClosed); | ||
61 | void lidClosedTimeout(); | 59 | void lidClosedTimeout(); | ||
62 | void setMonitorForChanges(bool enabled); | 60 | void setMonitorForChanges(bool enabled); | ||
63 | void outputConnectedChanged(); | 61 | void outputConnectedChanged(); | ||
64 | void showOutputIdentifier(); | 62 | void showOutputIdentifier(); | ||
65 | void applyOsdAction(KScreen::OsdAction::Action action); | 63 | void applyOsdAction(KScreen::OsdAction::Action action); | ||
66 | 64 | | |||
67 | Q_SIGNALS: | 65 | Q_SIGNALS: | ||
68 | void outputConnected(const QString &outputName); | 66 | void outputConnected(const QString &outputName); | ||
69 | void unknownOutputConnected(const QString &outputName); | 67 | void unknownOutputConnected(const QString &outputName); | ||
70 | 68 | | |||
71 | protected: | 69 | protected: | ||
72 | virtual void doApplyConfig(const KScreen::ConfigPtr &config); | 70 | virtual void doApplyConfig(const KScreen::ConfigPtr &config); | ||
73 | 71 | | |||
74 | void monitorConnectedChange(); | 72 | void monitorConnectedChange(); | ||
75 | static KScreen::OutputPtr findEmbeddedOutput(const KScreen::ConfigPtr &config); | 73 | static KScreen::OutputPtr findEmbeddedOutput(const KScreen::ConfigPtr &config); | ||
76 | void disableOutput(KScreen::ConfigPtr &config, KScreen::OutputPtr &output); | 74 | void disableOutput(KScreen::ConfigPtr &config, KScreen::OutputPtr &output); | ||
77 | void showOsd(const QString &icon, const QString &text); | 75 | void showOsd(const QString &icon, const QString &text); | ||
78 | 76 | | |||
79 | KScreen::ConfigPtr m_monitoredConfig; | 77 | KScreen::ConfigPtr m_monitoredConfig; | ||
80 | Generator::DisplaySwitchAction m_iteration; | | |||
81 | bool m_monitoring; | 78 | bool m_monitoring; | ||
82 | QTimer* m_changeCompressor; | 79 | QTimer* m_changeCompressor; | ||
83 | QTimer* m_buttonTimer; | | |||
84 | QTimer* m_saveTimer; | 80 | QTimer* m_saveTimer; | ||
85 | QTimer* m_lidClosedTimer; | 81 | QTimer* m_lidClosedTimer; | ||
86 | }; | 82 | }; | ||
87 | 83 | | |||
88 | #endif /*KSCREEN_DAEMON_H*/ | 84 | #endif /*KSCREEN_DAEMON_H*/ |