diff options
author | Raquel Medina <raquel.medina@konsulko.com> | 2019-11-29 23:01:41 +0100 |
---|---|---|
committer | Raquel Medina <raquel.medina@konsulko.com> | 2019-11-29 23:41:25 +0100 |
commit | da091649e775b23a35eb88df1c2cf9ce3fb350f7 (patch) | |
tree | 0eb475a54336b12c6796f93dbedce60d2e30199d /messageengine.cpp | |
parent | 5cd66764ad6f7397feeb3bf30f24c58ab62c1064 (diff) |
voice: add initial support for voice agents configuration
Bug-AGL: SPEC-2981
Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
Change-Id: I0195d914dc10f4fcdea1cb6df0e6a5859ad8269d
Diffstat (limited to 'messageengine.cpp')
-rw-r--r-- | messageengine.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/messageengine.cpp b/messageengine.cpp index d057d11..4920043 100644 --- a/messageengine.cpp +++ b/messageengine.cpp @@ -26,6 +26,7 @@ #include "responsemessage.h" #include "telephonymessage.h" #include "weathermessage.h" +#include "voicemessage.h" #include <QJsonArray> @@ -137,6 +138,15 @@ void MessageEngine::onTextMessageReceived(QString jsonStr) } else if (api == "bluetooth-map") { message = new MapMessage; type = MapEventMessage; + } else if (api == "vshl-core" ) { + message = new VshlCoreVoiceMessage; + type = VoiceEventMessage; + } else if (api == "vshl-capabilities") { + message = new VshlCpbltsVoiceMessage; + type = VoiceEventMessage; + } else if (api == "alexa-voiceagent") { + message = new AlexaVoiceMessage; + type = VoiceEventMessage; } else { message = new Message; type = GenericMessage; |