Revision 863418

Go back to digest for 28th September 2008

Other in KDE Base

Shawn Starr committed changes in /trunk/KDE/kdebase/workspace/plasma/dataengines/weather/ions:

envcan: remove timezone methods.
Convert reported date timestamp to a useable string and use this to determine period of day, we assume if it's 4pm or greater then nightfall may be starting (in some places of the world).

This adds some private methods night() and periodHour().
We also have to do some ugly a handling for various condition/forecast types.
We use m_conditionNightList['condition_or_forecast'] and set this to a valid icon using the enumerated values.

Surely there's a better way?

File Changes

Modified 2 files
  • /trunk/KDE/kdebase/workspace/plasma/dataengines/weather/ions
  •   /ion_envcan.cpp
  •   /ion_envcan.h
2 files changed in total