diff options
Diffstat (limited to 'harmaccuweather')
-rw-r--r-- | harmaccuweather/harmaccuweather.cpp | 6 | ||||
-rw-r--r-- | harmaccuweather/harmaccuweather.h | 6 |
2 files changed, 6 insertions, 6 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; } diff --git a/harmaccuweather/harmaccuweather.h b/harmaccuweather/harmaccuweather.h index 8b403b9..4fcf2da 100644 --- a/harmaccuweather/harmaccuweather.h +++ b/harmaccuweather/harmaccuweather.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(); |