diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-04-02 18:12:14 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-04-02 20:36:54 -0700 |
commit | aa1f78e57f3131ddbf6ee4154c6bddec00287358 (patch) | |
tree | 70cb826a880089db5cc0f2627d0ffe19d6786105 /bluetooth/bluetooth.h | |
parent | f4aad7aee0d23560a9b562057b866ea6762ca3cf (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/bluetooth.h')
-rw-r--r-- | bluetooth/bluetooth.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bluetooth/bluetooth.h b/bluetooth/bluetooth.h index 6cef0ce..b79e0f4 100644 --- a/bluetooth/bluetooth.h +++ b/bluetooth/bluetooth.h @@ -71,6 +71,7 @@ class Bluetooth : public QObject void discovery_command(bool); void populateDeviceList(QJsonObject data); void processDeviceChangesEvent(QJsonObject data); + void processAdapterChangesEvent(QJsonObject data); // slots void onConnected(); @@ -86,6 +87,7 @@ class Bluetooth : public QObject QMap<QString, QString> uuids; const QStringList events { + "adapter_changes", "device_changes", "agent", }; |