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