summaryrefslogtreecommitdiffstats
path: root/messageengine.cpp
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2019-12-04 11:36:34 -0800
committerScott Murray <scott.murray@konsulko.com>2019-12-05 01:02:13 -0500
commit2e95f1fb45741c9a2b22dc286990c590ed9e5b06 (patch)
treecb32206cc83d41a6b065518f2efe1285d87b7bd3 /messageengine.cpp
parent815589132b93468f3d2577273da35ed644017fff (diff)
Add initial signal-composer support
Add support for new abstract event.vehicle.speed and event.engine.speed events from the signal-composer binding. This should help avoid code duplication in the Qt apps needing events from signal-composer. Bug-AGL: SPEC-3023 Change-Id: I877f8c1cc057d0d491318ef5ad6a943119ffc8b8 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com> 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 d057d11..9ea59a3 100644
--- a/messageengine.cpp
+++ b/messageengine.cpp
@@ -26,6 +26,7 @@
#include "responsemessage.h"
#include "telephonymessage.h"
#include "weathermessage.h"
+#include "signalcomposermessage.h"
#include <QJsonArray>
@@ -137,6 +138,9 @@ void MessageEngine::onTextMessageReceived(QString jsonStr)
} else if (api == "bluetooth-map") {
message = new MapMessage;
type = MapEventMessage;
+ } else if (api == "signal-composer") {
+ message = new SignalComposerMessage;
+ type = SignalComposerEventMessage;
} else {
message = new Message;
type = GenericMessage;