aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary-weather.h
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-06-09 04:47:52 +0800
committerIain Holmes <iain@src.gnome.org>2001-06-09 04:47:52 +0800
commitd09d4962997e9056652815aab81f49311a6a59a8 (patch)
tree807d49e73be441e0332b67f889b38c0b518f74ef /my-evolution/e-summary-weather.h
parentda6c1c4d2ef41c60130e4de31160ee8107227588 (diff)
downloadgsoc2013-evolution-d09d4962997e9056652815aab81f49311a6a59a8.tar
gsoc2013-evolution-d09d4962997e9056652815aab81f49311a6a59a8.tar.gz
gsoc2013-evolution-d09d4962997e9056652815aab81f49311a6a59a8.tar.bz2
gsoc2013-evolution-d09d4962997e9056652815aab81f49311a6a59a8.tar.lz
gsoc2013-evolution-d09d4962997e9056652815aab81f49311a6a59a8.tar.xz
gsoc2013-evolution-d09d4962997e9056652815aab81f49311a6a59a8.tar.zst
gsoc2013-evolution-d09d4962997e9056652815aab81f49311a6a59a8.zip
Committing the new My Evolution.
svn path=/trunk/; revision=10163
Diffstat (limited to 'my-evolution/e-summary-weather.h')
-rw-r--r--my-evolution/e-summary-weather.h128
1 files changed, 128 insertions, 0 deletions
diff --git a/my-evolution/e-summary-weather.h b/my-evolution/e-summary-weather.h
new file mode 100644
index 0000000000..d771a05aa8
--- /dev/null
+++ b/my-evolution/e-summary-weather.h
@@ -0,0 +1,128 @@
+/*
+ * e-summary-weather.h
+ *
+ */
+
+#ifndef __E_SUMMARY_WEATHER_H__
+#define __E_SUMMARY_WEATHER_H__
+
+#include <time.h>
+#include "e-summary-type.h"
+
+typedef struct _ESummaryWeather ESummaryWeather;
+
+#define WEATHER_LOCATION_NAME_MAX_LEN 100
+#define WEATHER_LOCATION_CODE_LEN 4
+#define WEATHER_LOCATION_ZONE_LEN 7
+#define WEATHER_LOCATION_RADAR_LEN 3
+
+typedef struct _ESummaryWeatherLocation {
+ char *name;
+ char *code;
+ char *zone;
+ char *radar;
+} ESummaryWeatherLocation;
+
+typedef enum _ESummaryWeatherWindDir {
+ WIND_VARIABLE,
+ WIND_N,
+ WIND_NNE,
+ WIND_NE,
+ WIND_ENE,
+ WIND_E,
+ WIND_ESE,
+ WIND_SE,
+ WIND_SSE,
+ WIND_S,
+ WIND_SSW,
+ WIND_SW,
+ WIND_WSW,
+ WIND_W,
+ WIND_WNW,
+ WIND_NW,
+ WIND_NNW
+} ESummaryWeatherWindDir;
+
+typedef enum _ESummaryWeatherSky {
+ SKY_CLEAR,
+ SKY_BROKEN,
+ SKY_SCATTERED,
+ SKY_FEW,
+ SKY_OVERCAST
+} ESummaryWeatherSky;
+
+typedef enum _ESummaryWeatherConditionPhenomenon {
+ PHENOMENON_NONE,
+
+ PHENOMENON_DRIZZLE,
+ PHENOMENON_RAIN,
+ PHENOMENON_SNOW,
+ PHENOMENON_SNOW_GRAINS,
+ PHENOMENON_ICE_CRYSTALS,
+ PHENOMENON_ICE_PELLETS,
+ PHENOMENON_HAIL,
+ PHENOMENON_SMALL_HAIL,
+ PHENOMENON_UNKNOWN_PRECIPITATION,
+
+ PHENOMENON_MIST,
+ PHENOMENON_FOG,
+ PHENOMENON_SMOKE,
+ PHENOMENON_VOLCANIC_ASH,
+ PHENOMENON_SAND,
+ PHENOMENON_HAZE,
+ PHENOMENON_SPRAY,
+ PHENOMENON_DUST,
+
+ PHENOMENON_SQUALL,
+ PHENOMENON_SANDSTORM,
+ PHENOMENON_DUSTSTORM,
+ PHENOMENON_FUNNEL_CLOUD,
+ PHENOMENON_TORNADO,
+ PHENOMENON_DUST_WHIRLS
+} ESummaryWeatherConditionPhenomenon;
+
+typedef enum _ESummaryWeatherConditionQualifier {
+ QUALIFIER_NONE,
+
+ QUALIFIER_VICINITY,
+
+ QUALIFIER_LIGHT,
+ QUALIFIER_MODERATE,
+ QUALIFIER_HEAVY,
+ QUALIFIER_SHALLOW,
+ QUALIFIER_PATCHES,
+ QUALIFIER_PARTIAL,
+ QUALIFIER_THUNDERSTORM,
+ QUALIFIER_BLOWING,
+ QUALIFIER_SHOWERS,
+ QUALIFIER_DRIFTING,
+ QUALIFIER_FREEZING
+} ESummaryWeatherConditionQualifier;
+
+typedef struct _ESummaryWeatherConditions {
+ gboolean significant;
+ ESummaryWeatherConditionPhenomenon phenomenon;
+ ESummaryWeatherConditionQualifier qualifier;
+} ESummaryWeatherConditions;
+
+typedef enum _ESummaryWeatherUnits {
+ UNITS_IMPERIAL,
+ UNITS_METRIC
+} ESummaryWeatherUnits;
+
+typedef enum _ESummaryWeatherForecastType {
+ FORECAST_STATE,
+ FORECAST_ZONE
+} ESummaryWeatherForecastType;
+
+typedef double ESummaryWeatherTemperature;
+typedef int ESummaryWeatherHumidity;
+typedef int ESummaryWeatherWindSpeed;
+typedef double ESummaryWeatherPressure;
+typedef double ESummaryWeatherVisibility;
+
+typedef time_t ESummaryWeatherUpdate;
+
+char *e_summary_weather_get_html (ESummary *summary);
+void e_summary_weather_init (ESummary *summary);
+#endif