Top | ![]() |
![]() |
![]() |
![]() |
WeatherLocation | |
enum | WeatherForecastType |
enum | TempUnit |
enum | SpeedUnit |
enum | PressureUnit |
enum | DistanceUnit |
WeatherPrefs | |
WeatherInfo | |
enum | WeatherWindDirection |
enum | WeatherSky |
enum | WeatherConditionPhenomenon |
enum | WeatherConditionQualifier |
WeatherLocation * weather_location_new (const gchar *trans_name
,const gchar *code
,const gchar *zone
,const gchar *radar
,const gchar *coordinates
,const gchar *country_code
,const gchar *tz_hint
);
WeatherLocation *
weather_location_clone (const WeatherLocation *location
);
gboolean weather_location_equal (const WeatherLocation *location1
,const WeatherLocation *location2
);
#define weather_info_new(location, prefs, cb, data) _weather_info_fill (NULL, (location), (prefs), (cb), (data))
#define weather_info_update(info, prefs, cb, data) _weather_info_fill ((info), NULL, (prefs), (cb), (data))
gboolean weather_info_get_value_update (WeatherInfo *info
,time_t *value
);
gboolean weather_info_get_value_sky (WeatherInfo *info
,WeatherSky *sky
);
gboolean weather_info_get_value_conditions (WeatherInfo *info
,WeatherConditionPhenomenon *phenomenon
,WeatherConditionQualifier *qualifier
);
gboolean weather_info_get_value_temp (WeatherInfo *info
,TempUnit unit
,gdouble *value
);
gboolean weather_info_get_value_temp_min (WeatherInfo *info
,TempUnit unit
,gdouble *value
);
gboolean weather_info_get_value_temp_max (WeatherInfo *info
,TempUnit unit
,gdouble *value
);
gboolean weather_info_get_value_dew (WeatherInfo *info
,TempUnit unit
,gdouble *value
);
gboolean weather_info_get_value_apparent (WeatherInfo *info
,TempUnit unit
,gdouble *value
);
gboolean weather_info_get_value_wind (WeatherInfo *info
,SpeedUnit unit
,gdouble *speed
,WeatherWindDirection *direction
);
gboolean weather_info_get_value_pressure (WeatherInfo *info
,PressureUnit unit
,gdouble *value
);
gboolean weather_info_get_value_visibility (WeatherInfo *info
,DistanceUnit unit
,gdouble *value
);
gboolean weather_info_get_value_sunrise (WeatherInfo *info
,time_t *value
);
gboolean weather_info_get_value_sunset (WeatherInfo *info
,time_t *value
);
typedef struct { gchar *name; gchar *code; gchar *zone; gchar *radar; gboolean zone_valid; gchar *coordinates; gdouble latitude; gdouble longitude; gboolean latlon_valid; gchar *country_code; gchar *tz_hint; } WeatherLocation;
typedef struct { WeatherForecastType type; gboolean radar; const char *radar_custom_url; TempUnit temperature_unit; SpeedUnit speed_unit; PressureUnit pressure_unit; DistanceUnit distance_unit; } WeatherPrefs;