diff options
Diffstat (limited to 'messageengine.cpp')
-rw-r--r-- | messageengine.cpp | 4 |
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; |