Changeset View
Changeset View
Standalone View
Standalone View
src/email.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_EMAIL_H | 21 | #ifndef XDG_DESKTOP_PORTAL_KDE_EMAIL_H | ||
22 | #define XDG_DESKTOP_PORTAL_KDE_EMAIL_H | 22 | #define XDG_DESKTOP_PORTAL_KDE_EMAIL_H | ||
23 | 23 | | |||
24 | #include <QObject> | 24 | #include <QDBusAbstractAdaptor> | ||
25 | #include <QDBusObjectPath> | 25 | #include <QDBusObjectPath> | ||
26 | 26 | | |||
27 | class Email : public QObject | 27 | class EmailPortal : public QDBusAbstractAdaptor | ||
28 | { | 28 | { | ||
29 | Q_OBJECT | 29 | Q_OBJECT | ||
30 | Q_CLASSINFO("D-Bus Interface", "org.freedesktop.impl.portal.Email") | 30 | Q_CLASSINFO("D-Bus Interface", "org.freedesktop.impl.portal.Email") | ||
31 | public: | 31 | public: | ||
32 | Email(QObject *parent = 0); | 32 | EmailPortal(QObject *parent); | ||
33 | ~Email(); | 33 | ~EmailPortal(); | ||
34 | 34 | | |||
35 | public Q_SLOTS: | 35 | public Q_SLOTS: | ||
36 | uint composeEmail(const QDBusObjectPath &handle, | 36 | uint ComposeEmail(const QDBusObjectPath &handle, | ||
37 | const QString &app_id, | 37 | const QString &app_id, | ||
38 | const QString &window, | 38 | const QString &window, | ||
39 | const QVariantMap &options, | 39 | const QVariantMap &options, | ||
40 | QVariantMap &results); | 40 | QVariantMap &results); | ||
41 | }; | 41 | }; | ||
42 | 42 | | |||
43 | #endif // XDG_DESKTOP_PORTAL_KDE_EMAIL_H | 43 | #endif // XDG_DESKTOP_PORTAL_KDE_EMAIL_H | ||
44 | 44 | |