summaryrefslogtreecommitdiffstats
path: root/kweather/weather_icon.h
blob: 732e2666c174057bc5edcc97aed7026ee05e72ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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();
};