summaryrefslogtreecommitdiffstats
path: root/messageengine.cpp
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-12-04 11:36:34 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-12-05 12:19:45 -0800
commit3cd5fe38ba160fd8d0fdba40f8bd2b5ea8e001b5 (patch)
treecb1850394156675fe98b1ba89cb825fb8e28b2c2 /messageengine.cpp
parent16c4429c177a4eb9943e5b9e3c945be76a4fee70 (diff)
Add initial signal-composer supporticefish_8.99.2icefish/8.99.28.99.2
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 4920043..1261339 100644
--- a/messageengine.cpp
+++ b/messageengine.cpp
@@ -27,6 +27,7 @@
#include "telephonymessage.h"
#include "weathermessage.h"
#include "voicemessage.h"
+#include "signalcomposermessage.h"
#include <QJsonArray>
@@ -147,6 +148,9 @@ void MessageEngine::onTextMessageReceived(QString jsonStr)
} else if (api == "alexa-voiceagent") {
message = new AlexaVoiceMessage;
type = VoiceEventMessage;
+ } else if (api == "signal-composer") {
+ message = new SignalComposerMessage;
+ type = SignalComposerEventMessage;
} else {
message = new Message;
type = GenericMessage;