Changeset View
Changeset View
Standalone View
Standalone View
src/desktopportal.h
Show All 25 Lines | |||||
26 | 26 | | |||
27 | #include "access.h" | 27 | #include "access.h" | ||
28 | #include "appchooser.h" | 28 | #include "appchooser.h" | ||
29 | #include "email.h" | 29 | #include "email.h" | ||
30 | #include "filechooser.h" | 30 | #include "filechooser.h" | ||
31 | #include "inhibit.h" | 31 | #include "inhibit.h" | ||
32 | #include "notification.h" | 32 | #include "notification.h" | ||
33 | #include "print.h" | 33 | #include "print.h" | ||
34 | #if SCREENCAST_ENABLED | ||||
34 | #include "screencast.h" | 35 | #include "screencast.h" | ||
36 | #endif | ||||
35 | 37 | | |||
36 | class DesktopPortal : public QObject | 38 | class DesktopPortal : public QObject | ||
37 | { | 39 | { | ||
38 | Q_OBJECT | 40 | Q_OBJECT | ||
39 | public: | 41 | public: | ||
40 | explicit DesktopPortal(QObject *parent = nullptr); | 42 | explicit DesktopPortal(QObject *parent = nullptr); | ||
41 | ~DesktopPortal(); | 43 | ~DesktopPortal(); | ||
42 | 44 | | |||
43 | private: | 45 | private: | ||
44 | AccessPortal *m_access; | 46 | AccessPortal *m_access; | ||
45 | AppChooserPortal *m_appChooser; | 47 | AppChooserPortal *m_appChooser; | ||
46 | EmailPortal *m_email; | 48 | EmailPortal *m_email; | ||
47 | FileChooserPortal *m_fileChooser; | 49 | FileChooserPortal *m_fileChooser; | ||
48 | InhibitPortal *m_inhibit; | 50 | InhibitPortal *m_inhibit; | ||
49 | NotificationPortal *m_notification; | 51 | NotificationPortal *m_notification; | ||
50 | PrintPortal *m_print; | 52 | PrintPortal *m_print; | ||
53 | #if SCREENCAST_ENABLED | ||||
51 | ScreenCastPortal *m_screenCast; | 54 | ScreenCastPortal *m_screenCast; | ||
55 | #endif | ||||
52 | }; | 56 | }; | ||
53 | 57 | | |||
54 | #endif // XDG_DESKTOP_PORTAL_KDE_DESKTOP_PORTAL_H | 58 | #endif // XDG_DESKTOP_PORTAL_KDE_DESKTOP_PORTAL_H | ||
55 | 59 | |