Changeset View
Changeset View
Standalone View
Standalone View
src/access.h
Show All 15 Lines | |||||
16 | * | 16 | * | ||
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_ACCESS_H | 21 | #ifndef XDG_DESKTOP_PORTAL_KDE_ACCESS_H | ||
22 | #define XDG_DESKTOP_PORTAL_KDE_ACCESS_H | 22 | #define XDG_DESKTOP_PORTAL_KDE_ACCESS_H | ||
23 | 23 | | |||
24 | #include <QObject> | 24 | #include <QDBusAbstractAdaptor> | ||
25 | #include <QDBusObjectPath> | 25 | #include <QDBusObjectPath> | ||
26 | 26 | | |||
27 | class Access : public QObject | 27 | class AccessPortal : public QDBusAbstractAdaptor | ||
28 | { | 28 | { | ||
29 | Q_OBJECT | 29 | Q_OBJECT | ||
30 | Q_CLASSINFO("D-Bus Interface", "org.freedesktop.impl.portal.Access") | 30 | Q_CLASSINFO("D-Bus Interface", "org.freedesktop.impl.portal.Access") | ||
31 | public: | 31 | public: | ||
32 | Access(QObject *parent = nullptr); | 32 | AccessPortal(QObject *parent); | ||
apol: explicit (and others) | |||||
33 | ~Access(); | 33 | ~AccessPortal(); | ||
34 | 34 | | |||
35 | public Q_SLOTS: | 35 | public Q_SLOTS: | ||
36 | uint accessDialog(const QDBusObjectPath &handle, | 36 | uint AccessDialog(const QDBusObjectPath &handle, | ||
37 | const QString &app_id, | 37 | const QString &app_id, | ||
38 | const QString &parent_window, | 38 | const QString &parent_window, | ||
39 | const QString &title, | 39 | const QString &title, | ||
40 | const QString &subtitle, | 40 | const QString &subtitle, | ||
41 | const QString &body, | 41 | const QString &body, | ||
42 | const QVariantMap &options, | 42 | const QVariantMap &options, | ||
43 | QVariantMap &results); | 43 | QVariantMap &results); | ||
44 | }; | 44 | }; | ||
45 | 45 | | |||
46 | #endif // XDG_DESKTOP_PORTAL_KDE_ACCESS_H | 46 | #endif // XDG_DESKTOP_PORTAL_KDE_ACCESS_H | ||
47 | 47 | |
explicit (and others)