summaryrefslogtreecommitdiffstats
path: root/bluetooth/bluetoothmessage.h
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-04-02 18:12:14 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-04-04 11:43:43 -0700
commitfd1810addb8bfc69c4ca3dc218f3d14e5ad3343e (patch)
tree2b6e6c104f329e7d8107d9f3e33e5ca034bb0428 /bluetooth/bluetoothmessage.h
parent5ba2e7752c478a386de6c6cf06adb6f9cf7ee79e (diff)
libqtappfw: bluetooth: add adapter_changes event processing
Process events from adapter_changes to emit the respective signal. This has the advantage of avoiding race conditions of waiting for powering up of an adapter, and to allow Settings UI to detect events. Bug-AGL: SPEC-2295 SPEC-2290 Change-Id: I9cd391ed01cab709dad6801331eade7494155af5 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'bluetooth/bluetoothmessage.h')
-rw-r--r--bluetooth/bluetoothmessage.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bluetooth/bluetoothmessage.h b/bluetooth/bluetoothmessage.h
index 4fc9124..a561061 100644
--- a/bluetooth/bluetoothmessage.h
+++ b/bluetooth/bluetoothmessage.h
@@ -24,6 +24,7 @@ class BluetoothMessage : public Message
Q_OBJECT
public:
bool isDeviceChangesEvent() { return (this->eventName() == "device_changes"); };
+ bool isAdapterChangesEvent() { return (this->eventName() == "adapter_changes"); };
bool isAgentEvent() { return (this->eventName() == "agent"); };
bool createRequest(QString verb, QJsonObject parameter);