Changeset View
Changeset View
Standalone View
Standalone View
interfaces/dbusinterfaces.h
Context not available. | |||||
51 | static QString activatedService(); | 51 | static QString activatedService(); | ||
---|---|---|---|---|---|
52 | 52 | | |||
53 | Q_SIGNALS: | 53 | Q_SIGNALS: | ||
54 | void deviceAdded(const QString &id); | 54 | void deviceAdded(const QString& id); | ||
55 | void pairingRequestsChangedProxy(); | 55 | void pairingRequestsChangedProxy(); | ||
56 | }; | 56 | }; | ||
57 | 57 | | |||
Context not available. | |||||
71 | ~DeviceDbusInterface() override; | 71 | ~DeviceDbusInterface() override; | ||
72 | 72 | | |||
73 | Q_SCRIPTABLE QString id() const; | 73 | Q_SCRIPTABLE QString id() const; | ||
74 | Q_SCRIPTABLE void pluginCall(const QString &plugin, const QString &method); | 74 | Q_SCRIPTABLE void pluginCall(const QString& plugin, const QString& method); | ||
75 | 75 | | |||
76 | Q_SIGNALS: | 76 | Q_SIGNALS: | ||
77 | void nameChangedProxy(const QString &name); | 77 | void nameChangedProxy(const QString& name); | ||
78 | void trustedChangedProxy(bool paired); | 78 | void trustedChangedProxy(bool paired); | ||
79 | void reachableChangedProxy(bool reachable); | 79 | void reachableChangedProxy(bool reachable); | ||
80 | void hasPairingRequestsChangedProxy(bool); | 80 | void hasPairingRequestsChangedProxy(bool); | ||
Context not available. | |||||
197 | }; | 197 | }; | ||
198 | 198 | | |||
199 | template <typename T, typename W> | 199 | template <typename T, typename W> | ||
200 | static void setWhenAvailable(const QDBusPendingReply<T> &pending, W func, QObject* parent) | 200 | static void setWhenAvailable(const QDBusPendingReply<T>& pending, W func, QObject* parent) | ||
201 | { | 201 | { | ||
202 | QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(pending, parent); | 202 | QDBusPendingCallWatcher* watcher = new QDBusPendingCallWatcher(pending, parent); | ||
203 | QObject::connect(watcher, &QDBusPendingCallWatcher::finished, | 203 | QObject::connect(watcher, &QDBusPendingCallWatcher::finished, | ||
204 | parent, [func](QDBusPendingCallWatcher* watcher) { | 204 | parent, [func](QDBusPendingCallWatcher* watcher) { | ||
205 | watcher->deleteLater(); | 205 | watcher->deleteLater(); | ||
Context not available. |