From 0223839486802f3944df6e20b73dc93fa4a03727 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Tue, 6 Feb 2018 15:52:25 -0800 Subject: Add weather binding support Allow subscription of weather data for libqtappfw consumers Bug-AGL: SPEC-1273 Change-Id: If794481e09084f9632387c64882861faefe4f62c Signed-off-by: Matt Ranostay --- messageengine.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'messageengine.cpp') 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 @@ -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; -- cgit 1.2.3-korg