Changeset View
Changeset View
Standalone View
Standalone View
kded/daemon.h
Show All 29 Lines | |||||
30 | 30 | | |||
31 | class QTimer; | 31 | class QTimer; | ||
32 | 32 | | |||
33 | namespace KScreen | 33 | namespace KScreen | ||
34 | { | 34 | { | ||
35 | class ConfigOperation; | 35 | class ConfigOperation; | ||
36 | } | 36 | } | ||
37 | 37 | | |||
38 | class Q_DECL_EXPORT KScreenDaemon : public KDEDModule | 38 | class Q_DECL_EXPORT KScreenDaemon : public KDEDModule | ||
broulik: Can this cause trouble with ABI since this class is exported? But it's probably just exported… | |||||
Well, the header is not installed, so the export seems pretty silly. gladhorn: Well, the header is not installed, so the export seems pretty silly. | |||||
39 | { | 39 | { | ||
40 | Q_OBJECT | 40 | Q_OBJECT | ||
41 | Q_CLASSINFO("D-Bus Interface", "org.kde.KScreen") | 41 | Q_CLASSINFO("D-Bus Interface", "org.kde.KScreen") | ||
42 | 42 | | |||
43 | public: | 43 | public: | ||
44 | KScreenDaemon(QObject *parent, const QList<QVariant>&); | 44 | KScreenDaemon(QObject *parent, const QList<QVariant>&); | ||
45 | ~KScreenDaemon() override; | 45 | ~KScreenDaemon() override; | ||
46 | 46 | | |||
Show All 18 Lines | |||||
65 | Q_SIGNALS: | 65 | Q_SIGNALS: | ||
66 | void outputConnected(const QString &outputName); | 66 | void outputConnected(const QString &outputName); | ||
67 | void unknownOutputConnected(const QString &outputName); | 67 | void unknownOutputConnected(const QString &outputName); | ||
68 | 68 | | |||
69 | protected: | 69 | protected: | ||
70 | virtual void doApplyConfig(const KScreen::ConfigPtr &config); | 70 | virtual void doApplyConfig(const KScreen::ConfigPtr &config); | ||
71 | 71 | | |||
72 | void monitorConnectedChange(); | 72 | void monitorConnectedChange(); | ||
73 | static KScreen::OutputPtr findEmbeddedOutput(const KScreen::ConfigPtr &config); | | |||
74 | void disableOutput(KScreen::ConfigPtr &config, KScreen::OutputPtr &output); | 73 | void disableOutput(KScreen::ConfigPtr &config, KScreen::OutputPtr &output); | ||
75 | void showOsd(const QString &icon, const QString &text); | 74 | void showOsd(const QString &icon, const QString &text); | ||
76 | 75 | | |||
77 | KScreen::ConfigPtr m_monitoredConfig; | 76 | KScreen::ConfigPtr m_monitoredConfig; | ||
78 | bool m_monitoring; | 77 | bool m_monitoring; | ||
79 | QTimer* m_changeCompressor; | 78 | QTimer* m_changeCompressor; | ||
80 | QTimer* m_saveTimer; | 79 | QTimer* m_saveTimer; | ||
81 | QTimer* m_lidClosedTimer; | 80 | QTimer* m_lidClosedTimer; | ||
82 | KScreen::OsdManager *m_osdManager; | 81 | KScreen::OsdManager *m_osdManager; | ||
83 | }; | 82 | }; | ||
84 | 83 | | |||
85 | #endif /*KSCREEN_DAEMON_H*/ | 84 | #endif /*KSCREEN_DAEMON_H*/ |
Can this cause trouble with ABI since this class is exported? But it's probably just exported as an entry point for KDED and not for use as a library