Changeset View
Changeset View
Standalone View
Standalone View
src/remotedesktopdialog.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_REMOTEDESKTOP_DIALOG_H | 21 | #ifndef XDG_DESKTOP_PORTAL_KDE_REMOTEDESKTOP_DIALOG_H | ||
22 | #define XDG_DESKTOP_PORTAL_KDE_REMOTEDESKTOP_DIALOG_H | 22 | #define XDG_DESKTOP_PORTAL_KDE_REMOTEDESKTOP_DIALOG_H | ||
23 | 23 | | |||
24 | #include <QDialog> | 24 | #include <QDialog> | ||
25 | #include <KWayland/Client/screencasting.h> | ||||
25 | 26 | | |||
26 | #include "remotedesktop.h" | 27 | #include "remotedesktop.h" | ||
27 | 28 | | |||
28 | namespace Ui | 29 | namespace Ui | ||
29 | { | 30 | { | ||
30 | class RemoteDesktopDialog; | 31 | class RemoteDesktopDialog; | ||
31 | } | 32 | } | ||
32 | 33 | | |||
33 | class RemoteDesktopDialog : public QDialog | 34 | class RemoteDesktopDialog : public QDialog | ||
34 | { | 35 | { | ||
35 | Q_OBJECT | 36 | Q_OBJECT | ||
36 | public: | 37 | public: | ||
37 | RemoteDesktopDialog(const QString &appName, RemoteDesktopPortal::DeviceTypes deviceTypes, bool screenSharingEnabled = false, | 38 | RemoteDesktopDialog(const QString &appName, RemoteDesktopPortal::DeviceTypes deviceTypes, bool screenSharingEnabled = false, | ||
38 | bool multiple = false, QDialog *parent = nullptr, Qt::WindowFlags flags = {}); | 39 | bool multiple = false, QDialog *parent = nullptr, Qt::WindowFlags flags = {}); | ||
39 | ~RemoteDesktopDialog(); | 40 | ~RemoteDesktopDialog(); | ||
40 | 41 | | |||
41 | QList<quint32> selectedScreens() const; | 42 | QVector<KWayland::Client::ScreencastingSource> selectedScreens() const; | ||
42 | RemoteDesktopPortal::DeviceTypes deviceTypes() const; | 43 | RemoteDesktopPortal::DeviceTypes deviceTypes() const; | ||
43 | 44 | | |||
44 | private: | 45 | private: | ||
45 | Ui::RemoteDesktopDialog * m_dialog; | 46 | Ui::RemoteDesktopDialog * m_dialog; | ||
46 | }; | 47 | }; | ||
47 | 48 | | |||
48 | #endif // XDG_DESKTOP_PORTAL_KDE_REMOTEDESKTOP_DIALOG_H | 49 | #endif // XDG_DESKTOP_PORTAL_KDE_REMOTEDESKTOP_DIALOG_H |