1
/* Evolution calendar - weather backend source class for parsing
2
* CCF (coded cities forecast) formatted NWS reports
4
* Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
6
* Authors: David Trowbridge <trowbrds@cs.colorado.edu>
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of version 2 of the GNU Lesser General Public
10
* License as published by the Free Software Foundation.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
#ifndef E_WEATHER_SOURCE_CCF_H
23
#define E_WEATHER_SOURCE_CCF_H
25
#include <libsoup/soup-session-async.h>
26
#include <libsoup/soup-uri.h>
27
#include "e-weather-source.h"
29
#define GWEATHER_I_KNOW_THIS_IS_UNSTABLE
30
#include <libgweather/weather.h>
31
#undef GWEATHER_I_KNOW_THIS_IS_UNSTABLE
33
/* Standard GObject macros */
34
#define E_TYPE_WEATHER_SOURCE_CCF \
35
(e_weather_source_ccf_get_type ())
36
#define E_WEATHER_SOURCE_CCF(obj) \
37
(G_TYPE_CHECK_INSTANCE_CAST \
38
((obj), E_TYPE_WEATHER_SOURCE_CCF, EWeatherSourceCCF))
39
#define E_WEATHER_SOURCE_CCF_CLASS(cls) \
40
(G_TYPE_CHECK_CLASS_CAST \
41
((cls), E_TYPE_WEATHER_SOURCE_CCF, EWeatherSourceCCF))
42
#define E_IS_WEATHER_SOURCE_CCF(obj) \
43
(G_TYPE_CHECK_INSTANCE_TYPE \
44
((obj), E_TYPE_WEATHER_SOURCE_CCF))
45
#define E_IS_WEATHER_SOURCE_CCF_CLASS(cls) \
46
(G_TYPE_CHECK_CLASS_TYPE \
47
((cls), E_TYPE_WEATHER_SOURCE_CCF))
48
#define E_WEATHER_SOURCE_CCF_GET_CLASS(obj) \
49
(G_TYPE_INSTANCE_GET_CLASS \
50
((obj), E_TYPE_WEATHER_SOURCE_CCF, EWeatherSourceCCF))
54
typedef struct _EWeatherSourceCCF EWeatherSourceCCF;
55
typedef struct _EWeatherSourceCCFClass EWeatherSourceCCFClass;
57
struct _EWeatherSourceCCF {
58
EWeatherSource parent;
60
WeatherLocation *location;
63
EWeatherSourceFinished done;
64
gpointer finished_data;
67
struct _EWeatherSourceCCFClass {
68
EWeatherSourceClass parent_class;
71
GType e_weather_source_ccf_get_type (void);
72
EWeatherSource *e_weather_source_ccf_new (const gchar *location);
76
#endif /* E_WEATHER_SOURCE_CCF_H */