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-02 20:36:54 -0700
commitaa1f78e57f3131ddbf6ee4154c6bddec00287358 (patch)
tree70cb826a880089db5cc0f2627d0ffe19d6786105 /bluetooth/bluetoothmessage.h
parentf4aad7aee0d23560a9b562057b866ea6762ca3cf (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 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);