summaryrefslogtreecommitdiff
path: root/meecastweather
diff options
context:
space:
mode:
Diffstat (limited to 'meecastweather')
-rw-r--r--meecastweather/meecastweather.cpp6
-rw-r--r--meecastweather/meecastweather.h6
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();