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