Changeset View
Changeset View
Standalone View
Standalone View
src/desktopportal.h
Show All 31 Lines | |||||
32 | #include "filechooser.h" | 32 | #include "filechooser.h" | ||
33 | #include "inhibit.h" | 33 | #include "inhibit.h" | ||
34 | #include "notification.h" | 34 | #include "notification.h" | ||
35 | #include "print.h" | 35 | #include "print.h" | ||
36 | #include "screenshot.h" | 36 | #include "screenshot.h" | ||
37 | #include "settings.h" | 37 | #include "settings.h" | ||
38 | #include "waylandintegration.h" | 38 | #include "waylandintegration.h" | ||
39 | 39 | | |||
40 | #if HAVE_PIPEWIRE_SUPPORT | | |||
41 | #include "screencast.h" | 40 | #include "screencast.h" | ||
42 | #include "remotedesktop.h" | 41 | #include "remotedesktop.h" | ||
43 | #endif | | |||
44 | 42 | | |||
45 | class DesktopPortal : public QObject, public QDBusContext | 43 | class DesktopPortal : public QObject, public QDBusContext | ||
46 | { | 44 | { | ||
47 | Q_OBJECT | 45 | Q_OBJECT | ||
48 | public: | 46 | public: | ||
49 | explicit DesktopPortal(QObject *parent = nullptr); | 47 | explicit DesktopPortal(QObject *parent = nullptr); | ||
50 | ~DesktopPortal(); | 48 | ~DesktopPortal(); | ||
51 | 49 | | |||
52 | private: | 50 | private: | ||
53 | AccessPortal *m_access; | 51 | AccessPortal *m_access; | ||
54 | AccountPortal *m_account; | 52 | AccountPortal *m_account; | ||
55 | AppChooserPortal *m_appChooser; | 53 | AppChooserPortal *m_appChooser; | ||
56 | BackgroundPortal *m_background; | 54 | BackgroundPortal *m_background; | ||
57 | EmailPortal *m_email; | 55 | EmailPortal *m_email; | ||
58 | FileChooserPortal *m_fileChooser; | 56 | FileChooserPortal *m_fileChooser; | ||
59 | InhibitPortal *m_inhibit; | 57 | InhibitPortal *m_inhibit; | ||
60 | NotificationPortal *m_notification; | 58 | NotificationPortal *m_notification; | ||
61 | PrintPortal *m_print; | 59 | PrintPortal *m_print; | ||
62 | ScreenshotPortal *m_screenshot; | 60 | ScreenshotPortal *m_screenshot; | ||
63 | SettingsPortal *m_settings; | 61 | SettingsPortal *m_settings; | ||
64 | #if HAVE_PIPEWIRE_SUPPORT | | |||
65 | ScreenCastPortal *m_screenCast; | 62 | ScreenCastPortal *m_screenCast; | ||
66 | RemoteDesktopPortal *m_remoteDesktop; | 63 | RemoteDesktopPortal *m_remoteDesktop; | ||
67 | #endif | | |||
68 | }; | 64 | }; | ||
69 | 65 | | |||
70 | #endif // XDG_DESKTOP_PORTAL_KDE_DESKTOP_PORTAL_H | 66 | #endif // XDG_DESKTOP_PORTAL_KDE_DESKTOP_PORTAL_H | ||
71 | |