1
/* Evolution calendar - weather backend source class
3
* Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
5
* Authors: David Trowbridge <trowbrds@cs.colorado.edu>
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of version 2 of the GNU Lesser General Public
9
* License as published by the Free Software Foundation.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
#include "e-weather-source.h"
22
#include "e-weather-source-ccf.h"
26
G_DEFINE_TYPE (EWeatherSource, e_weather_source, G_TYPE_OBJECT)
29
e_weather_source_parse (EWeatherSource *source,
30
EWeatherSourceFinished done,
33
EWeatherSourceClass *class;
35
g_return_if_fail (source != NULL);
37
class = E_WEATHER_SOURCE_GET_CLASS (source);
38
g_return_if_fail (class->parse != NULL);
40
class->parse (source, done, data);
44
e_weather_source_class_init (EWeatherSourceClass *class)
46
/* nothing to do here */
50
e_weather_source_init (EWeatherSource *source)
52
/* nothing to do here */
56
e_weather_source_new (const gchar *location)
58
g_return_val_if_fail (location != NULL, NULL);
60
return e_weather_source_ccf_new (location);