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 /meecastweather | |
parent | d83093df7602aa2896de71292b47948540c22a44 (diff) | |
download | sowatch-ae37832316d905889c82706b351b3c037c9e1ab6.tar.gz sowatch-ae37832316d905889c82706b351b3c037c9e1ab6.zip |
prepare for weather qml notifications
Diffstat (limited to 'meecastweather')
-rw-r--r-- | meecastweather/meecastweather.cpp | 6 | ||||
-rw-r--r-- | meecastweather/meecastweather.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/meecastweather/meecastweather.cpp b/meecastweather/meecastweather.cpp index fa62ab7..47df334 100644 --- a/meecastweather/meecastweather.cpp +++ b/meecastweather/meecastweather.cpp @@ -52,7 +52,7 @@ QString MeeCastWeather::body() const return _lastText; } -WeatherNotification::WeatherType MeeCastWeather::forecast() +WeatherNotification::WeatherType MeeCastWeather::forecast() const { switch (_lastCode) { // Day versions @@ -125,12 +125,12 @@ WeatherNotification::WeatherType MeeCastWeather::forecast() } } -int MeeCastWeather::temperature() +int MeeCastWeather::temperature() const { return _lastTemp; } -WeatherNotification::Unit MeeCastWeather::temperatureUnits() +WeatherNotification::Unit MeeCastWeather::temperatureUnits() const { return _tempUnit; } diff --git a/meecastweather/meecastweather.h b/meecastweather/meecastweather.h index a1ac393..b51a1e4 100644 --- a/meecastweather/meecastweather.h +++ b/meecastweather/meecastweather.h @@ -24,9 +24,9 @@ public: QString title() const; QString body() const; - WeatherType forecast(); - int temperature(); - Unit temperatureUnits(); + WeatherType forecast() const; + int temperature() const; + Unit temperatureUnits() const; void activate(); void dismiss(); |