summaryrefslogtreecommitdiffstats
path: root/messageengine.cpp
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-02-06 15:52:25 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-02-09 20:17:51 -0800
commit0223839486802f3944df6e20b73dc93fa4a03727 (patch)
tree17d5be726c36a713aad297c90350596e413eebf0 /messageengine.cpp
parent112fc8be473f02befc7596750ad7044113f29849 (diff)
Add weather binding support
Allow subscription of weather data for libqtappfw consumers Bug-AGL: SPEC-1273 Change-Id: If794481e09084f9632387c64882861faefe4f62c Signed-off-by: Matt Ranostay <matt.ranostay@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 7d53694..101f7e0 100644
--- a/messageengine.cpp
+++ b/messageengine.cpp
@@ -17,6 +17,7 @@
#include "message.h"
#include "messageengine.h"
#include "telephonymessage.h"
+#include "weathermessage.h"
#include <QJsonArray>
@@ -74,6 +75,9 @@ void MessageEngine::onTextMessageReceived(QString jsonStr)
if (api == "telephony") {
message = new TelephonyMessage;
type = TelephonyEventMessage;
+ } else if (api == "weather") {
+ message = new WeatherMessage;
+ type = WeatherEventMessage;
} else {
message = new Message;
type = GenericMessage;