summaryrefslogtreecommitdiffstats
path: root/messageengine.cpp
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-04-11 15:54:09 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-05-08 19:04:26 -0700
commit54ab6c2a6475967523e2250c926cee61bc37f1b1 (patch)
treebadfee94c02d38088a2e9d9712487758d2e41ad2 /messageengine.cpp
parent3d48372a7d3010e387cff99e5f599ee074be076b (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.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/messageengine.cpp b/messageengine.cpp
index 7d53694..c68093d 100644
--- a/messageengine.cpp
+++ b/messageengine.cpp
@@ -16,6 +16,7 @@
#include "message.h"
#include "messageengine.h"
+#include "bluetoothmessage.h"
#include "telephonymessage.h"
#include <QJsonArray>
@@ -71,7 +72,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 {