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 "screencast.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 | | |||
39 | void setSourceTypes(ScreenCastPortal::SourceTypes types); | ||||
40 | | ||||
38 | QList<quint32> selectedScreens() const; | 41 | QList<quint32> selectedScreens() const; | ||
42 | QList<quint32> selectedWindows() const; | ||||
39 | 43 | | |||
40 | private: | 44 | private: | ||
41 | Ui::ScreenChooserDialog *m_dialog; | 45 | Ui::ScreenChooserDialog *m_dialog; | ||
42 | }; | 46 | }; | ||
43 | 47 | | |||
44 | #endif // XDG_DESKTOP_PORTAL_KDE_SCREENCHOOSER_DIALOG_H | 48 | #endif // XDG_DESKTOP_PORTAL_KDE_SCREENCHOOSER_DIALOG_H |