cafeweather-prefs

cafeweather-prefs

Functions

Types and Values

Description

Functions

cafeweather_prefs_load ()

void
cafeweather_prefs_load (CafeWeatherPrefs *prefs,
                        GSettings *settings);

cafeweather_prefs_get_temp_display_name ()

const char *
cafeweather_prefs_get_temp_display_name
                               (TempUnit temp);

cafeweather_prefs_get_speed_display_name ()

const char *
cafeweather_prefs_get_speed_display_name
                               (SpeedUnit speed);

cafeweather_prefs_get_pressure_display_name ()

const char *
cafeweather_prefs_get_pressure_display_name
                               (PressureUnit pressure);

cafeweather_prefs_get_distance_display_name ()

const char *
cafeweather_prefs_get_distance_display_name
                               (DistanceUnit distance);

Types and Values

GSETTINGS_TEMP_UNIT

#define GSETTINGS_TEMP_UNIT     "temperature-unit"

GSETTINGS_SPEED_UNIT

#define GSETTINGS_SPEED_UNIT    "speed-unit"

GSETTINGS_PRESSURE_UNIT

#define GSETTINGS_PRESSURE_UNIT "pressure-unit"

GSETTINGS_DISTANCE_UNIT

#define GSETTINGS_DISTANCE_UNIT "distance-unit"

struct CafeWeatherPrefs

struct CafeWeatherPrefs {
    WeatherLocation *location;
    gboolean show_notifications;
    gint update_interval;  /* in seconds */
    gboolean update_enabled;
    gboolean detailed;
    gboolean radar_enabled;
    gboolean use_custom_radar_url;
    gchar *radar;

    TempUnit     temperature_unit;
    SpeedUnit    speed_unit;
    PressureUnit pressure_unit;
    DistanceUnit distance_unit;
};