From ae37832316d905889c82706b351b3c037c9e1ab6 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Mon, 6 May 2013 23:13:37 +0200 Subject: prepare for weather qml notifications --- harmaccuweather/harmaccuweather.cpp | 6 +++--- harmaccuweather/harmaccuweather.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'harmaccuweather') 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(); -- cgit v1.2.3