1 /* Evolution calendar - weather backend source class for parsing
2 * CCF (coded cities forecast) formatted NWS reports
4 * Copyright (C) 2005 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"
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))
37 typedef struct _EWeatherSourceCCF EWeatherSourceCCF;
38 typedef struct _EWeatherSourceCCFClass EWeatherSourceCCFClass;
40 struct _EWeatherSourceCCF {
41 EWeatherSource parent;
45 EWeatherSourceFinished done;
46 SoupSession *soup_session;
47 gpointer finished_data;
50 struct _EWeatherSourceCCFClass {
51 EWeatherSourceClass parent_class;
54 EWeatherSource* e_weather_source_ccf_new (const char *uri);
55 GType e_weather_source_ccf_get_type (void);