diff options
| author | louis <louis.braun@gmx.de> | 2015-01-14 14:20:22 +0100 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2015-01-14 14:20:22 +0100 |
| commit | 3de7f8f13d2cef164b52a8dc1f5b09b3d4e12278 (patch) | |
| tree | 9618d7f34091562f332a49e9396d24d1e21874fa /views/viewhelpers.c | |
| parent | 645f625d79f8181e043fffc5bcbf4ad2a86f036a (diff) | |
| download | vdr-plugin-skindesigner-3de7f8f13d2cef164b52a8dc1f5b09b3d4e12278.tar.gz vdr-plugin-skindesigner-3de7f8f13d2cef164b52a8dc1f5b09b3d4e12278.tar.bz2 | |
added weather viewelement to metrix main menu
Diffstat (limited to 'views/viewhelpers.c')
| -rw-r--r-- | views/viewhelpers.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/views/viewhelpers.c b/views/viewhelpers.c index 8fdffaf..e10798f 100644 --- a/views/viewhelpers.c +++ b/views/viewhelpers.c @@ -427,13 +427,13 @@ bool cViewHelpers::SetDate(map < string, string > &stringTokens, map < string, i return true; } -void cViewHelpers::SetCurrentWeatherTokens(map < string, string > &stringTokens, map < string, int > &intTokens) { +bool cViewHelpers::SetCurrentWeatherTokens(map < string, string > &stringTokens, map < string, int > &intTokens) { static cPlugin *pWeatherForecast = cPluginManager::GetPlugin("weatherforecast"); if (!pWeatherForecast) - return; + return false; cServiceCurrentWeather currentWeather; if (!pWeatherForecast->Service("GetCurrentWeather", ¤tWeather)) { - return; + return false; } stringTokens.insert(pair<string,string>("timestamp", currentWeather.timeStamp)); stringTokens.insert(pair<string,string>("temperature", currentWeather.temperature)); @@ -453,4 +453,5 @@ void cViewHelpers::SetCurrentWeatherTokens(map < string, string > &stringTokens, intTokens.insert(pair<string,int>("cloudcover", currentWeather.cloudCover)); stringTokens.insert(pair<string,string>("pressure", currentWeather.pressure)); stringTokens.insert(pair<string,string>("ozone", currentWeather.ozone)); + return true; } |
