summaryrefslogtreecommitdiffstats
path: root/messageengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'messageengine.cpp')
-rw-r--r--messageengine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/messageengine.cpp b/messageengine.cpp
index c68093d..427c557 100644
--- a/messageengine.cpp
+++ b/messageengine.cpp
@@ -17,6 +17,7 @@
#include "message.h"
#include "messageengine.h"
#include "bluetoothmessage.h"
+#include "mediaplayermessage.h"
#include "telephonymessage.h"
#include <QJsonArray>
@@ -78,6 +79,9 @@ void MessageEngine::onTextMessageReceived(QString jsonStr)
} else if (api == "telephony") {
message = new TelephonyMessage;
type = TelephonyEventMessage;
+ } else if (api == "mediaplayer") {
+ message = new MediaplayerMessage;
+ type = MediaplayerEventMessage;
} else {
message = new Message;
type = GenericMessage;