diff options
Diffstat (limited to 'weather/weather.cpp')
-rw-r--r-- | weather/weather.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/weather/weather.cpp b/weather/weather.cpp index c77e742..d4992d4 100644 --- a/weather/weather.cpp +++ b/weather/weather.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018 Konsulko Group + * Copyright (C) 2018-2020 Konsulko Group * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,10 +14,14 @@ * limitations under the License. */ +#include <QDebug> +#include <QJsonArray> + #include "message.h" +#include "weathermessage.h" #include "messageengine.h" #include "weather.h" -#include "weathermessage.h" + Weather::Weather (QUrl &url, QObject * parent) : QObject(parent), @@ -52,7 +56,7 @@ void Weather::onDisconnected() void Weather::onMessageReceived(MessageType type, Message *message) { - if (type == WeatherEventMessage) { + if (type == MessageType::WeatherEventMessage) { WeatherMessage *tmsg = qobject_cast<WeatherMessage*>(message); if (tmsg->isEvent()) { |