![]() |
![]() |
![]() |
libgweather Reference Manual | |
---|---|---|---|---|
Top | Description |
#define GCONF_TEMP_UNIT #define GCONF_SPEED_UNIT #define GCONF_PRESSURE_UNIT #define GCONF_DISTANCE_UNIT GWeatherPrefs; void gweather_prefs_load (GWeatherPrefs *prefs, GWeatherGConf *ctx); const char * gweather_prefs_temp_enum_to_string (TempUnit temp); const char * gweather_prefs_speed_enum_to_string (SpeedUnit speed); const char * gweather_prefs_pressure_enum_to_string (PressureUnit pressure); const char * gweather_prefs_distance_enum_to_string (DistanceUnit distance); TempUnit gweather_prefs_parse_temperature (const char *str, gboolean *is_default); SpeedUnit gweather_prefs_parse_speed (const char *str, gboolean *is_default); const char * gweather_prefs_get_temp_display_name (TempUnit temp); const char * gweather_prefs_get_speed_display_name (SpeedUnit speed); const char * gweather_prefs_get_pressure_display_name (PressureUnit pressure); const char * gweather_prefs_get_distance_display_name (DistanceUnit distance);
typedef struct { WeatherLocation *location; gint update_interval; /* in seconds */ gboolean update_enabled; gboolean detailed; gboolean radar_enabled; gboolean use_custom_radar_url; gchar *radar; TempUnit temperature_unit; gboolean use_temperature_default; SpeedUnit speed_unit; gboolean use_speed_default; PressureUnit pressure_unit; gboolean use_pressure_default; DistanceUnit distance_unit; gboolean use_distance_default; } GWeatherPrefs;
void gweather_prefs_load (GWeatherPrefs *prefs, GWeatherGConf *ctx);
|
|
|
const char * gweather_prefs_temp_enum_to_string (TempUnit temp);
|
|
Returns : |
const char * gweather_prefs_speed_enum_to_string (SpeedUnit speed);
|
|
Returns : |
const char * gweather_prefs_pressure_enum_to_string (PressureUnit pressure);
|
|
Returns : |
const char * gweather_prefs_distance_enum_to_string (DistanceUnit distance);
|
|
Returns : |
TempUnit gweather_prefs_parse_temperature (const char *str, gboolean *is_default);
|
|
|
|
Returns : |
SpeedUnit gweather_prefs_parse_speed (const char *str, gboolean *is_default);
|
|
|
|
Returns : |
const char * gweather_prefs_get_temp_display_name (TempUnit temp);
|
|
Returns : |
const char * gweather_prefs_get_speed_display_name (SpeedUnit speed);
|
|
Returns : |
const char * gweather_prefs_get_pressure_display_name (PressureUnit pressure);
|
|
Returns : |
const char * gweather_prefs_get_distance_display_name (DistanceUnit distance);
|
|
Returns : |