summaryrefslogtreecommitdiff
path: root/harmaccuweather
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-06 23:13:37 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-06 23:13:37 +0200
commitae37832316d905889c82706b351b3c037c9e1ab6 (patch)
treed90c4a18729937b782f557e170cf95d4ef38f031 /harmaccuweather
parentd83093df7602aa2896de71292b47948540c22a44 (diff)
downloadsowatch-ae37832316d905889c82706b351b3c037c9e1ab6.tar.gz
sowatch-ae37832316d905889c82706b351b3c037c9e1ab6.zip
prepare for weather qml notifications
Diffstat (limited to 'harmaccuweather')
-rw-r--r--harmaccuweather/harmaccuweather.cpp6
-rw-r--r--harmaccuweather/harmaccuweather.h6
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();