From fd1810addb8bfc69c4ca3dc218f3d14e5ad3343e Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Tue, 2 Apr 2019 18:12:14 -0700 Subject: 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 --- bluetooth/bluetoothmessage.h | 1 + 1 file changed, 1 insertion(+) (limited to 'bluetooth/bluetoothmessage.h') 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); -- cgit 1.2.3-korg