diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-05-06 23:13:37 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-05-06 23:13:37 +0200 |
commit | ae37832316d905889c82706b351b3c037c9e1ab6 (patch) | |
tree | d90c4a18729937b782f557e170cf95d4ef38f031 /harmaccuweather/harmaccuweather.cpp | |
parent | d83093df7602aa2896de71292b47948540c22a44 (diff) | |
download | sowatch-ae37832316d905889c82706b351b3c037c9e1ab6.tar.gz sowatch-ae37832316d905889c82706b351b3c037c9e1ab6.zip |
prepare for weather qml notifications
Diffstat (limited to 'harmaccuweather/harmaccuweather.cpp')
-rw-r--r-- | harmaccuweather/harmaccuweather.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/harmaccuweather/harmaccuweather.cpp b/harmaccuweather/harmaccuweather.cpp index c4daeb9..e48ee13 100644 --- a/harmaccuweather/harmaccuweather.cpp +++ b/harmaccuweather/harmaccuweather.cpp @@ -131,7 +131,7 @@ QString HarmAccuWeather::body() const } } -WeatherNotification::WeatherType HarmAccuWeather::forecast() +WeatherNotification::WeatherType HarmAccuWeather::forecast() const { switch (_lastWxCode) { case 1: @@ -198,12 +198,12 @@ WeatherNotification::WeatherType HarmAccuWeather::forecast() } } -int HarmAccuWeather::temperature() +int HarmAccuWeather::temperature() const { return _lastTemp; } -WeatherNotification::Unit HarmAccuWeather::temperatureUnits() +WeatherNotification::Unit HarmAccuWeather::temperatureUnits() const { return _metric ? Celsius : Fahrenheit; } |