You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdetoys/kweather/weather_icon.h

21 lines
610 B

class TDEIconLoader;
class WeatherIcon {
public:
enum SimpleCondition { Sunny, Fog, Mist, Overcast, Hail, LightRain, Sleet };
enum RangedCondition { Cloudy, Showers, Snow, Thunderstorm };
WeatherIcon( int condition /* SimpleCondition */, bool night );
WeatherIcon( int condition /* RangedCondition */, bool night, unsigned int strength );
~WeatherIcon();
static TQString unknown() { return "weather-none-available"; };
TQString& name() { return iconName; }
private:
bool iconExists( TQString& icon, bool inTheme = true );
TDEIconLoader* iconLoader;
TQString iconName = unknown();
};