Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / calendar / backends / weather / e-weather-source-ccf.h
1 /* Evolution calendar - weather backend source class for parsing
2  *      CCF (coded cities forecast) formatted NWS reports
3  *
4  * Copyright (C) 2005 Novell, Inc (www.novell.com)
5  *
6  * Authors: David Trowbridge <trowbrds@cs.colorado.edu>
7  *
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.
11  *
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.
16  *
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.
20  */
21
22 #ifndef E_WEATHER_SOURCE_CCF_H
23 #define E_WEATHER_SOURCE_CCF_H
24
25 #include <libsoup/soup-session-async.h>
26 #include <libsoup/soup-uri.h>
27 #include "e-weather-source.h"
28
29 G_BEGIN_DECLS
30
31 #define E_TYPE_WEATHER_SOURCE_CCF            (e_weather_source_ccf_get_type ())
32 #define E_WEATHER_SOURCE_CCF(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_WEATHER_SOURCE_CCF, EWeatherSourceCCF))
33 #define E_WEATHER_SOURCE_CCF_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_WEATHER_SOURCE_CCF, EWeatherSourceCCF))
34 #define E_IS_WEATHER_SOURCE_CCF(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_WEATHER_SOURCE_CCF))
35 #define E_IS_WEATHER_SOURCE_CCF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), E_TYPE_WEATHER_SOURCE_CCF))
36
37 typedef struct _EWeatherSourceCCF EWeatherSourceCCF;
38 typedef struct _EWeatherSourceCCFClass EWeatherSourceCCFClass;
39
40 struct _EWeatherSourceCCF {
41         EWeatherSource parent;
42
43         char *url;
44         char *substation;
45         EWeatherSourceFinished done;
46         SoupSession *soup_session;
47         gpointer finished_data;
48 };
49
50 struct _EWeatherSourceCCFClass {
51         EWeatherSourceClass parent_class;
52 };
53
54 EWeatherSource* e_weather_source_ccf_new (const char *uri);
55 GType           e_weather_source_ccf_get_type (void);
56
57 G_END_DECLS
58
59 #endif