diff options
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 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 { |