summaryrefslogtreecommitdiffstats
path: root/messageengine.cpp
diff options
context:
space:
mode:
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 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") {