## mateweather-prefs mateweather-prefs |

## Synopsis

    struct              MateWeatherPrefs;
    void                mateweather_prefs_load              (MateWeatherPrefs *prefs,
                                                             GSettings *settings);
    const char *        mateweather_prefs_get_temp_display_name
                                                            (TempUnit temp);
    const char *        mateweather_prefs_get_speed_display_name
                                                            (SpeedUnit speed);
    const char *        mateweather_prefs_get_pressure_display_name
                                                            (PressureUnit pressure);
    const char *        mateweather_prefs_get_distance_display_name
                                                            (DistanceUnit distance);

## Description

## Details

### struct MateWeatherPrefs

    struct MateWeatherPrefs {
        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;
    };

### mateweather_prefs_load ()

    void                mateweather_prefs_load              (MateWeatherPrefs *prefs,
                                                             GSettings *settings);

### mateweather_prefs_get_temp_display_name ()

    const char *        mateweather_prefs_get_temp_display_name
                                                            (TempUnit temp);

### mateweather_prefs_get_speed_display_name ()

    const char *        mateweather_prefs_get_speed_display_name
                                                            (SpeedUnit speed);

### mateweather_prefs_get_pressure_display_name ()

    const char *        mateweather_prefs_get_pressure_display_name
                                                            (PressureUnit pressure);

### mateweather_prefs_get_distance_display_name ()

    const char *        mateweather_prefs_get_distance_display_name
                                                            (DistanceUnit distance);