summaryrefslogtreecommitdiffstats
path: root/messageengine.cpp
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2019-01-03 01:10:01 -0500
committerScott Murray <scott.murray@konsulko.com>2019-01-03 01:21:10 -0500
commit8053629c99f157e716a4560ef8d1e194d569d960 (patch)
tree507ac4a57b8311325f2ce4898791f220059bc1ba /messageengine.cpp
parentf2835952c4c1a47f8c8bc8dbb343d7980f49ef8f (diff)
libqtappfw: Add radio binding support
Add initial support for the radio binding. At the moment, everything required for the current demo radio application is in place. Further development will be required to fill in support for changing bands and the stereo mode. Change-Id: I1b1866856ce8388b34624c14c692102c344a7a62 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
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 c82670b..b51147e 100644
--- a/messageengine.cpp
+++ b/messageengine.cpp
@@ -20,6 +20,7 @@
#include "mediaplayermessage.h"
#include "networkmessage.h"
#include "pbapmessage.h"
+#include "radiomessage.h"
#include "responsemessage.h"
#include "telephonymessage.h"
#include "weathermessage.h"
@@ -125,6 +126,9 @@ void MessageEngine::onTextMessageReceived(QString jsonStr)
} else if (api == "network-manager") {
message = new NetworkMessage;
type = NetworkEventMessage;
+ } else if (api == "radio") {
+ message = new RadioMessage;
+ type = RadioEventMessage;
} else {
message = new Message;
type = GenericMessage;