Functions
weather_location_new ()
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
);
weather_location_free ()
void
weather_location_free (WeatherLocation *location
);
WeatherInfoFunc ()
void
(*WeatherInfoFunc) (WeatherInfo *info
,
gpointer data
);
weather_info_new()
#define weather_info_new(location, prefs, cb, data) _weather_info_fill (NULL, (location), (prefs), (cb), (data))
weather_info_update()
#define weather_info_update(info, prefs, cb, data) _weather_info_fill ((info), NULL, (prefs), (cb), (data))
weather_info_abort ()
void
weather_info_abort (WeatherInfo *info
);
weather_info_free ()
void
weather_info_free (WeatherInfo *info
);
weather_info_is_valid ()
gboolean
weather_info_is_valid (WeatherInfo *info
);
weather_info_network_error ()
gboolean
weather_info_network_error (WeatherInfo *info
);
weather_info_to_metric ()
void
weather_info_to_metric (WeatherInfo *info
);
weather_info_to_imperial ()
void
weather_info_to_imperial (WeatherInfo *info
);
weather_info_get_location_name ()
const gchar *
weather_info_get_location_name (WeatherInfo *info
);
weather_info_get_update ()
const gchar *
weather_info_get_update (WeatherInfo *info
);
weather_info_get_sky ()
const gchar *
weather_info_get_sky (WeatherInfo *info
);
weather_info_get_conditions ()
const gchar *
weather_info_get_conditions (WeatherInfo *info
);
weather_info_get_temp ()
const gchar *
weather_info_get_temp (WeatherInfo *info
);
weather_info_get_temp_min ()
const gchar *
weather_info_get_temp_min (WeatherInfo *info
);
weather_info_get_temp_max ()
const gchar *
weather_info_get_temp_max (WeatherInfo *info
);
weather_info_get_dew ()
const gchar *
weather_info_get_dew (WeatherInfo *info
);
weather_info_get_humidity ()
const gchar *
weather_info_get_humidity (WeatherInfo *info
);
weather_info_get_wind ()
const gchar *
weather_info_get_wind (WeatherInfo *info
);
weather_info_get_pressure ()
const gchar *
weather_info_get_pressure (WeatherInfo *info
);
weather_info_get_visibility ()
const gchar *
weather_info_get_visibility (WeatherInfo *info
);
weather_info_get_apparent ()
const gchar *
weather_info_get_apparent (WeatherInfo *info
);
weather_info_get_sunrise ()
const gchar *
weather_info_get_sunrise (WeatherInfo *info
);
weather_info_get_sunset ()
const gchar *
weather_info_get_sunset (WeatherInfo *info
);
weather_info_get_forecast ()
const gchar *
weather_info_get_forecast (WeatherInfo *info
);
weather_info_get_forecast_list ()
GSList *
weather_info_get_forecast_list (WeatherInfo *info
);
weather_info_get_radar ()
GdkPixbufAnimation *
weather_info_get_radar (WeatherInfo *info
);
weather_info_get_temp_summary ()
const gchar *
weather_info_get_temp_summary (WeatherInfo *info
);
weather_info_get_weather_summary ()
gchar *
weather_info_get_weather_summary (WeatherInfo *info
);
weather_info_get_icon_name ()
const gchar *
weather_info_get_icon_name (WeatherInfo *info
);
weather_info_next_sun_event ()
gint
weather_info_next_sun_event (WeatherInfo *info
);
Returns
the interval, in seconds, until the next "sun event":
local midnight, when rise and set times are recomputed
next sunrise, when icon changes to daytime version
next sunset, when icon changes to nighttime version
weather_info_get_value_update ()
gboolean
weather_info_get_value_update (WeatherInfo *info
,
time_t *value
);
weather_info_get_value_temp ()
gboolean
weather_info_get_value_temp (WeatherInfo *info
,
TempUnit unit
,
gdouble *value
);
weather_info_get_value_temp_min ()
gboolean
weather_info_get_value_temp_min (WeatherInfo *info
,
TempUnit unit
,
gdouble *value
);
weather_info_get_value_temp_max ()
gboolean
weather_info_get_value_temp_max (WeatherInfo *info
,
TempUnit unit
,
gdouble *value
);
weather_info_get_value_dew ()
gboolean
weather_info_get_value_dew (WeatherInfo *info
,
TempUnit unit
,
gdouble *value
);
weather_info_get_value_apparent ()
gboolean
weather_info_get_value_apparent (WeatherInfo *info
,
TempUnit unit
,
gdouble *value
);
weather_info_get_value_pressure ()
gboolean
weather_info_get_value_pressure (WeatherInfo *info
,
PressureUnit unit
,
gdouble *value
);
weather_info_get_value_visibility ()
gboolean
weather_info_get_value_visibility (WeatherInfo *info
,
DistanceUnit unit
,
gdouble *value
);
weather_info_get_value_sunrise ()
gboolean
weather_info_get_value_sunrise (WeatherInfo *info
,
time_t *value
);
weather_info_get_value_sunset ()
gboolean
weather_info_get_value_sunset (WeatherInfo *info
,
time_t *value
);