Changeset View
Changeset View
Standalone View
Standalone View
src/desktopportal.h
Show All 26 Lines | |||||
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 | 34 | | |||
35 | class DesktopPortal : public QDBusVirtualObject | 35 | class DesktopPortal : public QObject | ||
36 | { | 36 | { | ||
37 | Q_OBJECT | 37 | Q_OBJECT | ||
38 | public: | 38 | public: | ||
39 | explicit DesktopPortal(QObject *parent = nullptr); | 39 | explicit DesktopPortal(QObject *parent = nullptr); | ||
40 | ~DesktopPortal(); | 40 | ~DesktopPortal(); | ||
41 | 41 | | |||
42 | bool handleMessage(const QDBusMessage &message, const QDBusConnection &connection) Q_DECL_OVERRIDE; | | |||
43 | QString introspect(const QString &path) const Q_DECL_OVERRIDE; | | |||
44 | private: | 42 | private: | ||
45 | Access *m_access; | 43 | AccessPortal *m_access; | ||
46 | AppChooser *m_appChooser; | 44 | AppChooserPortal *m_appChooser; | ||
47 | Email *m_email; | 45 | EmailPortal *m_email; | ||
48 | FileChooser *m_fileChooser; | 46 | FileChooserPortal *m_fileChooser; | ||
49 | Inhibit *m_inhibit; | 47 | InhibitPortal *m_inhibit; | ||
50 | Notification *m_notification; | 48 | NotificationPortal *m_notification; | ||
51 | Print *m_print; | 49 | PrintPortal *m_print; | ||
52 | }; | 50 | }; | ||
53 | 51 | | |||
54 | #endif // XDG_DESKTOP_PORTAL_KDE_DESKTOP_PORTAL_H | 52 | #endif // XDG_DESKTOP_PORTAL_KDE_DESKTOP_PORTAL_H | ||
55 | 53 | |