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 --- meecastweather/meecastweather.cpp | 6 +++--- meecastweather/meecastweather.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'meecastweather') 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(); -- cgit v1.2.3