diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-04-11 15:54:09 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-04-19 18:20:17 -0700 |
commit | ad867a98c184bb884f2f540f6588e8775fbe9fc4 (patch) | |
tree | 792bdf14381af54f42f7baec78fff81d931fdf23 /messageengine.cpp | |
parent | c2912031a5faa821cf3ba3e24f0a496a732e81e8 (diff) |
libqtappfw: bluetooth: add initial agl-service-bluetooth support
Add initial support for libqtappfw of the agl-service-bluetooth binding
to allow removal of QML logic from the Settings application
Bug-AGL: SPEC-1385
Change-Id: Iea909af113590667d619afcf09c50523c1c34035
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'messageengine.cpp')
-rw-r--r-- | messageengine.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/messageengine.cpp b/messageengine.cpp index 916fb25..4cc5bf3 100644 --- a/messageengine.cpp +++ b/messageengine.cpp @@ -16,6 +16,7 @@ #include "message.h" #include "messageengine.h" +#include "bluetoothmessage.h" #include "mediaplayermessage.h" #include "telephonymessage.h" #include "weathermessage.h" @@ -73,7 +74,10 @@ void MessageEngine::onTextMessageReceived(QString jsonStr) MessageType type; // FIXME: This should be rewritten using a factory class with a // parser parameter to remove API specific handling here - if (api == "telephony") { + if (api == "Bluetooth-Manager") { + message = new BluetoothMessage; + type = BluetoothEventMessage; + } else if (api == "telephony") { message = new TelephonyMessage; type = TelephonyEventMessage; } else if (api == "weather") { |