|
Packit Service |
4897fc |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
|
Packit Service |
4897fc |
/* gweather-enums.h: enumerations for GWeather settings
|
|
Packit Service |
4897fc |
*
|
|
Packit Service |
4897fc |
* Copyright: 2011 Giovanni Campagna <scampa.giovanni@gmail.com>
|
|
Packit Service |
4897fc |
*
|
|
Packit Service |
4897fc |
* This program is free software; you can redistribute it and/or
|
|
Packit Service |
4897fc |
* modify it under the terms of the GNU General Public License as
|
|
Packit Service |
4897fc |
* published by the Free Software Foundation; either version 2 of the
|
|
Packit Service |
4897fc |
* License, or (at your option) any later version.
|
|
Packit Service |
4897fc |
*
|
|
Packit Service |
4897fc |
* This program is distributed in the hope that it will be useful, but
|
|
Packit Service |
4897fc |
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
4897fc |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
4897fc |
* General Public License for more details.
|
|
Packit Service |
4897fc |
*
|
|
Packit Service |
4897fc |
* You should have received a copy of the GNU General Public License
|
|
Packit Service |
4897fc |
* along with this program; if not, see
|
|
Packit Service |
4897fc |
* <http://www.gnu.org/licenses/>.
|
|
Packit Service |
4897fc |
*/
|
|
Packit Service |
4897fc |
|
|
Packit Service |
4897fc |
#ifndef __GWEATHER_ENUMS_H_
|
|
Packit Service |
4897fc |
#define __GWEATHER_ENUMS_H_
|
|
Packit Service |
4897fc |
|
|
Packit Service |
4897fc |
#if !(defined(IN_GWEATHER_H) || defined(GWEATHER_COMPILATION))
|
|
Packit Service |
4897fc |
#error "gweather-enums.h must not be included individually, include gweather.h instead"
|
|
Packit Service |
4897fc |
#endif
|
|
Packit Service |
4897fc |
|
|
Packit Service |
4897fc |
/**
|
|
Packit Service |
4897fc |
* GWeatherTemperatureUnit:
|
|
Packit Service |
4897fc |
* @GWEATHER_TEMP_UNIT_INVALID: invalid unit
|
|
Packit Service |
4897fc |
* @GWEATHER_TEMP_UNIT_DEFAULT: the user preferred temperature unit
|
|
Packit Service |
4897fc |
* @GWEATHER_TEMP_UNIT_KELVIN: Kelvin (absolute) temperature scale
|
|
Packit Service |
4897fc |
* @GWEATHER_TEMP_UNIT_CENTIGRADE: Celsius temperature scale
|
|
Packit Service |
4897fc |
* @GWEATHER_TEMP_UNIT_FAHRENHEIT: Fahrenheit temperature scale
|
|
Packit Service |
4897fc |
*
|
|
Packit Service |
4897fc |
* The measure unit to use for temperature values, when retrieved by
|
|
Packit Service |
4897fc |
* the gweather_info_get_value_temp() family of functions.
|
|
Packit Service |
4897fc |
*/
|
|
Packit Service |
4897fc |
typedef enum { /*< underscore_name=gweather_temperature_unit >*/
|
|
Packit Service |
4897fc |
GWEATHER_TEMP_UNIT_INVALID = 0,
|
|
Packit Service |
4897fc |
GWEATHER_TEMP_UNIT_DEFAULT,
|
|
Packit Service |
4897fc |
GWEATHER_TEMP_UNIT_KELVIN,
|
|
Packit Service |
4897fc |
GWEATHER_TEMP_UNIT_CENTIGRADE,
|
|
Packit Service |
4897fc |
GWEATHER_TEMP_UNIT_FAHRENHEIT
|
|
Packit Service |
4897fc |
} GWeatherTemperatureUnit;
|
|
Packit Service |
4897fc |
|
|
Packit Service |
4897fc |
/**
|
|
Packit Service |
4897fc |
* GWeatherSpeedUnit:
|
|
Packit Service |
4897fc |
* @GWEATHER_SPEED_UNIT_INVALID: invalid unit
|
|
Packit Service |
4897fc |
* @GWEATHER_SPEED_UNIT_DEFAULT: the user preferred speed unit
|
|
Packit Service |
4897fc |
* @GWEATHER_SPEED_UNIT_MS: meters per second
|
|
Packit Service |
4897fc |
* @GWEATHER_SPEED_UNIT_KPH: kilometers per hour
|
|
Packit Service |
4897fc |
* @GWEATHER_SPEED_UNIT_MPH: miles per hour
|
|
Packit Service |
4897fc |
* @GWEATHER_SPEED_UNIT_KNOTS: knots
|
|
Packit Service |
4897fc |
* @GWEATHER_SPEED_UNIT_BFT: Beaufort scale
|
|
Packit Service |
4897fc |
*
|
|
Packit Service |
4897fc |
* The measure unit to use for wind speed values, when retrieved by
|
|
Packit Service |
4897fc |
* gweather_info_get_value_wind().
|
|
Packit Service |
4897fc |
*/
|
|
Packit Service |
4897fc |
typedef enum { /*< underscore_name=gweather_speed_unit >*/
|
|
Packit Service |
4897fc |
GWEATHER_SPEED_UNIT_INVALID = 0,
|
|
Packit Service |
4897fc |
GWEATHER_SPEED_UNIT_DEFAULT,
|
|
Packit Service |
4897fc |
GWEATHER_SPEED_UNIT_MS, /* metres per second */
|
|
Packit Service |
4897fc |
GWEATHER_SPEED_UNIT_KPH, /* kilometres per hour */
|
|
Packit Service |
4897fc |
GWEATHER_SPEED_UNIT_MPH, /* miles per hour */
|
|
Packit Service |
4897fc |
GWEATHER_SPEED_UNIT_KNOTS, /* Knots */
|
|
Packit Service |
4897fc |
GWEATHER_SPEED_UNIT_BFT /* Beaufort scale */
|
|
Packit Service |
4897fc |
} GWeatherSpeedUnit;
|
|
Packit Service |
4897fc |
|
|
Packit Service |
4897fc |
/**
|
|
Packit Service |
4897fc |
* GWeatherPressureUnit:
|
|
Packit Service |
4897fc |
* @GWEATHER_PRESSURE_UNIT_INVALID: invalid unit
|
|
Packit Service |
4897fc |
* @GWEATHER_PRESSURE_UNIT_DEFAULT: the user preferred pressure unit
|
|
Packit Service |
4897fc |
* @GWEATHER_PRESSURE_UNIT_KPA: kiloPascal (* 10^3 Pa)
|
|
Packit Service |
4897fc |
* @GWEATHER_PRESSURE_UNIT_HPA: hectoPascal (* 10^2 Pa); also known
|
|
Packit Service |
4897fc |
* as millibars, but formatted differently
|
|
Packit Service |
4897fc |
* @GWEATHER_PRESSURE_UNIT_MB: millibars; same as %GWEATHER_PRESSURE_UNIT_HPA
|
|
Packit Service |
4897fc |
* @GWEATHER_PRESSURE_UNIT_MM_HG: millimeters of mercury
|
|
Packit Service |
4897fc |
* @GWEATHER_PRESSURE_UNIT_INCH_HG: inches of mercury
|
|
Packit Service |
4897fc |
* @GWEATHER_PRESSURE_UNIT_ATM: atmospheres
|
|
Packit Service |
4897fc |
*
|
|
Packit Service |
4897fc |
* The measure unit to use for atmospheric pressure values, when
|
|
Packit Service |
4897fc |
* retrieved by gweather_info_get_value_pressure().
|
|
Packit Service |
4897fc |
*/
|
|
Packit Service |
4897fc |
typedef enum { /*< underscore_name=gweather_pressure_unit >*/
|
|
Packit Service |
4897fc |
GWEATHER_PRESSURE_UNIT_INVALID = 0,
|
|
Packit Service |
4897fc |
GWEATHER_PRESSURE_UNIT_DEFAULT,
|
|
Packit Service |
4897fc |
GWEATHER_PRESSURE_UNIT_KPA, /* kiloPascal */
|
|
Packit Service |
4897fc |
GWEATHER_PRESSURE_UNIT_HPA, /* hectoPascal */
|
|
Packit Service |
4897fc |
GWEATHER_PRESSURE_UNIT_MB, /* 1 millibars = 1 hectoPascal */
|
|
Packit Service |
4897fc |
GWEATHER_PRESSURE_UNIT_MM_HG, /* millimeters of mercury */
|
|
Packit Service |
4897fc |
GWEATHER_PRESSURE_UNIT_INCH_HG, /* inches of mercury */
|
|
Packit Service |
4897fc |
GWEATHER_PRESSURE_UNIT_ATM /* atmosphere */
|
|
Packit Service |
4897fc |
} GWeatherPressureUnit;
|
|
Packit Service |
4897fc |
|
|
Packit Service |
4897fc |
/**
|
|
Packit Service |
4897fc |
* GWeatherDistanceUnit:
|
|
Packit Service |
4897fc |
* @GWEATHER_DISTANCE_UNIT_INVALID: invalid unit
|
|
Packit Service |
4897fc |
* @GWEATHER_DISTANCE_UNIT_DEFAULT: the user preferred distance unit
|
|
Packit Service |
4897fc |
* @GWEATHER_DISTANCE_UNIT_METERS: meters
|
|
Packit Service |
4897fc |
* @GWEATHER_DISTANCE_UNIT_KM: kilometers (= 1000 meters)
|
|
Packit Service |
4897fc |
* @GWEATHER_DISTANCE_UNIT_MILES: miles
|
|
Packit Service |
4897fc |
*
|
|
Packit Service |
4897fc |
* The measure unit to use for sky visibility values, when retrieved
|
|
Packit Service |
4897fc |
* by gweather_info_get_value_visibility().
|
|
Packit Service |
4897fc |
*/
|
|
Packit Service |
4897fc |
typedef enum { /*< underscore_name=gweather_distance_unit >*/
|
|
Packit Service |
4897fc |
GWEATHER_DISTANCE_UNIT_INVALID = 0,
|
|
Packit Service |
4897fc |
GWEATHER_DISTANCE_UNIT_DEFAULT,
|
|
Packit Service |
4897fc |
GWEATHER_DISTANCE_UNIT_METERS,
|
|
Packit Service |
4897fc |
GWEATHER_DISTANCE_UNIT_KM,
|
|
Packit Service |
4897fc |
GWEATHER_DISTANCE_UNIT_MILES
|
|
Packit Service |
4897fc |
} GWeatherDistanceUnit;
|
|
Packit Service |
4897fc |
|
|
Packit Service |
4897fc |
/**
|
|
Packit Service |
4897fc |
* GWeatherFormatOptions:
|
|
Packit Service |
4897fc |
* @GWEATHER_FORMAT_OPTION_DEFAULT: The default string format
|
|
Packit Service |
4897fc |
* @GWEATHER_FORMAT_OPTION_SENTENCE_CAPITALIZATION: Capitalize as if the string
|
|
Packit Service |
4897fc |
* was starting a sentence
|
|
Packit Service |
4897fc |
* @GWEATHER_FORMAT_OPTION_NO_CAPITALIZATION: Capitalize as if the string was
|
|
Packit Service |
4897fc |
* appearing within a sentence
|
|
Packit Service |
4897fc |
*
|
|
Packit Service |
4897fc |
* Format options to influence the returned string of the
|
|
Packit Service |
4897fc |
* gweather_*_to_string_full() functions.
|
|
Packit Service |
4897fc |
*/
|
|
Packit Service |
4897fc |
typedef enum { /*< underscore_name=gweather_format_options >*/
|
|
Packit Service |
4897fc |
GWEATHER_FORMAT_OPTION_DEFAULT = 0,
|
|
Packit Service |
4897fc |
GWEATHER_FORMAT_OPTION_SENTENCE_CAPITALIZATION = 1 << 0,
|
|
Packit Service |
4897fc |
GWEATHER_FORMAT_OPTION_NO_CAPITALIZATION = 1 << 1
|
|
Packit Service |
4897fc |
} GWeatherFormatOptions;
|
|
Packit Service |
4897fc |
|
|
Packit Service |
4897fc |
#endif /* __GWEATHER_ENUMS_H_ */
|