Changeset View
Changeset View
Standalone View
Standalone View
src/appchooser.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_APPCHOOSER_H | 21 | #ifndef XDG_DESKTOP_PORTAL_KDE_APPCHOOSER_H | ||
22 | #define XDG_DESKTOP_PORTAL_KDE_APPCHOOSER_H | 22 | #define XDG_DESKTOP_PORTAL_KDE_APPCHOOSER_H | ||
23 | 23 | | |||
24 | #include <QObject> | 24 | #include <QDBusAbstractAdaptor> | ||
25 | #include <QDBusObjectPath> | 25 | #include <QDBusObjectPath> | ||
26 | 26 | | |||
27 | class AppChooser : public QObject | 27 | class AppChooserPortal : public QDBusAbstractAdaptor | ||
28 | { | 28 | { | ||
29 | Q_OBJECT | 29 | Q_OBJECT | ||
30 | Q_CLASSINFO("D-Bus Interface", "org.freedesktop.impl.portal.AppChooser") | 30 | Q_CLASSINFO("D-Bus Interface", "org.freedesktop.impl.portal.AppChooser") | ||
31 | public: | 31 | public: | ||
32 | AppChooser(QObject *parent = nullptr); | 32 | AppChooserPortal(QObject *parent); | ||
33 | ~AppChooser(); | 33 | ~AppChooserPortal(); | ||
34 | 34 | | |||
35 | public Q_SLOTS: | 35 | public Q_SLOTS: | ||
36 | uint chooseApplication(const QDBusObjectPath &handle, | 36 | uint ChooseApplication(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 QStringList &choices, | 39 | const QStringList &choices, | ||
40 | const QVariantMap &options, | 40 | const QVariantMap &options, | ||
41 | QVariantMap &results); | 41 | QVariantMap &results); | ||
42 | }; | 42 | }; | ||
43 | 43 | | |||
44 | #endif // XDG_DESKTOP_PORTAL_KDE_APPCHOOSER_H | 44 | #endif // XDG_DESKTOP_PORTAL_KDE_APPCHOOSER_H | ||
45 | 45 | |