Changeset View
Changeset View
Standalone View
Standalone View
kded/osdmanager.h
Context not available. | |||||
32 | class Osd; | 32 | class Osd; | ||
---|---|---|---|---|---|
33 | class Output; | 33 | class Output; | ||
34 | 34 | | |||
35 | class OsdAction : public QObject | ||||
36 | { | ||||
37 | Q_OBJECT | ||||
38 | public: | ||||
39 | enum Action { | ||||
40 | NoAction, | ||||
41 | SwitchToExternal, | ||||
42 | SwitchToInternal, | ||||
43 | Clone, | ||||
44 | ExtendLeft, | ||||
45 | ExtendRight | ||||
46 | }; | ||||
47 | Q_ENUM(Action) | ||||
48 | | ||||
49 | Q_SIGNALS: | ||||
50 | void selected(Action action); | ||||
51 | | ||||
52 | protected: | ||||
53 | explicit OsdAction(QObject *parent = nullptr); | ||||
54 | }; | ||||
55 | | ||||
56 | | ||||
35 | class OsdManager : public QObject { | 57 | class OsdManager : public QObject { | ||
36 | Q_OBJECT | 58 | Q_OBJECT | ||
37 | Q_CLASSINFO("D-Bus Interface", "org.kde.kscreen.osdService") | 59 | Q_CLASSINFO("D-Bus Interface", "org.kde.kscreen.osdService") | ||
Context not available. | |||||
43 | public Q_SLOTS: | 65 | public Q_SLOTS: | ||
44 | void showOutputIdentifiers(); | 66 | void showOutputIdentifiers(); | ||
45 | void showOsd(const QString &icon, const QString &text); | 67 | void showOsd(const QString &icon, const QString &text); | ||
68 | void hideOsd(); | ||||
69 | OsdAction *showActionSelector(); | ||||
46 | 70 | | |||
47 | private: | 71 | private: | ||
48 | OsdManager(QObject *parent = nullptr); | 72 | OsdManager(QObject *parent = nullptr); | ||
Context not available. |