Changeset View
Changeset View
Standalone View
Standalone View
src/inhibit.cpp
Show All 25 Lines | |||||
26 | #include <QDBusMessage> | 26 | #include <QDBusMessage> | ||
27 | #include <QDBusPendingCall> | 27 | #include <QDBusPendingCall> | ||
28 | #include <QDBusPendingReply> | 28 | #include <QDBusPendingReply> | ||
29 | #include <QDBusPendingCallWatcher> | 29 | #include <QDBusPendingCallWatcher> | ||
30 | #include <QLoggingCategory> | 30 | #include <QLoggingCategory> | ||
31 | 31 | | |||
32 | Q_LOGGING_CATEGORY(XdgDesktopPortalKdeInhibit, "xdg-desktop-portal-kde-inhibit") | 32 | Q_LOGGING_CATEGORY(XdgDesktopPortalKdeInhibit, "xdg-desktop-portal-kde-inhibit") | ||
33 | 33 | | |||
34 | Inhibit::Inhibit(QObject *parent) | 34 | InhibitPortal::InhibitPortal(QObject *parent) | ||
35 | : QObject(parent) | 35 | : QDBusAbstractAdaptor(parent) | ||
36 | { | 36 | { | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | Inhibit::~Inhibit() | 39 | InhibitPortal::~InhibitPortal() | ||
40 | { | 40 | { | ||
41 | } | 41 | } | ||
42 | 42 | | |||
43 | void Inhibit::inhibit(const QDBusObjectPath &handle, const QString &app_id, const QString &window, uint flags, const QVariantMap &options) | 43 | void InhibitPortal::Inhibit(const QDBusObjectPath &handle, const QString &app_id, const QString &window, uint flags, const QVariantMap &options) | ||
44 | { | 44 | { | ||
45 | qCDebug(XdgDesktopPortalKdeInhibit) << "Inhibit called with parameters:"; | 45 | qCDebug(XdgDesktopPortalKdeInhibit) << "Inhibit called with parameters:"; | ||
46 | qCDebug(XdgDesktopPortalKdeInhibit) << " handle: " << handle.path(); | 46 | qCDebug(XdgDesktopPortalKdeInhibit) << " handle: " << handle.path(); | ||
47 | qCDebug(XdgDesktopPortalKdeInhibit) << " app_id: " << app_id; | 47 | qCDebug(XdgDesktopPortalKdeInhibit) << " app_id: " << app_id; | ||
48 | qCDebug(XdgDesktopPortalKdeInhibit) << " window: " << window; | 48 | qCDebug(XdgDesktopPortalKdeInhibit) << " window: " << window; | ||
49 | qCDebug(XdgDesktopPortalKdeInhibit) << " flags: " << flags; | 49 | qCDebug(XdgDesktopPortalKdeInhibit) << " flags: " << flags; | ||
50 | qCDebug(XdgDesktopPortalKdeInhibit) << " options: " << options; | 50 | qCDebug(XdgDesktopPortalKdeInhibit) << " options: " << options; | ||
51 | 51 | | |||
Show All 29 Lines |