Changeset View
Changeset View
Standalone View
Standalone View
src/screenchooserdialog.h
Show All 16 Lines | |||||
17 | * Authors: | 17 | * Authors: | ||
18 | * Jan Grulich <jgrulich@redhat.com> | 18 | * Jan Grulich <jgrulich@redhat.com> | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef XDG_DESKTOP_PORTAL_KDE_SCREENCHOOSER_DIALOG_H | 21 | #ifndef XDG_DESKTOP_PORTAL_KDE_SCREENCHOOSER_DIALOG_H | ||
22 | #define XDG_DESKTOP_PORTAL_KDE_SCREENCHOOSER_DIALOG_H | 22 | #define XDG_DESKTOP_PORTAL_KDE_SCREENCHOOSER_DIALOG_H | ||
23 | 23 | | |||
24 | #include <QDialog> | 24 | #include <QDialog> | ||
25 | #include <KWayland/Client/screencasting.h> | ||||
25 | 26 | | |||
26 | namespace Ui | 27 | namespace Ui | ||
27 | { | 28 | { | ||
28 | class ScreenChooserDialog; | 29 | class ScreenChooserDialog; | ||
29 | } | 30 | } | ||
30 | 31 | | |||
31 | class ScreenChooserDialog : public QDialog | 32 | class ScreenChooserDialog : public QDialog | ||
32 | { | 33 | { | ||
33 | Q_OBJECT | 34 | Q_OBJECT | ||
34 | public: | 35 | public: | ||
35 | ScreenChooserDialog(const QString &appName, bool multiple, QDialog *parent = nullptr, Qt::WindowFlags flags = {}); | 36 | ScreenChooserDialog(const QString &appName, bool multiple, QDialog *parent = nullptr, Qt::WindowFlags flags = {}); | ||
36 | ~ScreenChooserDialog(); | 37 | ~ScreenChooserDialog(); | ||
37 | 38 | | |||
38 | QList<quint32> selectedScreens() const; | 39 | QVector<KWayland::Client::ScreencastingSource> selectedScreens() const; | ||
39 | 40 | | |||
40 | private: | 41 | private: | ||
41 | Ui::ScreenChooserDialog *m_dialog; | 42 | Ui::ScreenChooserDialog *m_dialog; | ||
42 | }; | 43 | }; | ||
43 | 44 | | |||
44 | #endif // XDG_DESKTOP_PORTAL_KDE_SCREENCHOOSER_DIALOG_H | 45 | #endif // XDG_DESKTOP_PORTAL_KDE_SCREENCHOOSER_DIALOG_H |