~ubuntu-branches/ubuntu/saucy/evolution-data-server/saucy

« back to all changes in this revision

Viewing changes to .pc/gweather_3.6.patch/calendar/backends/weather/e-weather-source-ccf.h

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-10-08 12:58:16 UTC
  • mfrom: (181.1.7 quantal)
  • Revision ID: package-import@ubuntu.com-20121008125816-i3n76e8c0m64e7xp
Tags: 3.6.0-0ubuntu2
* Fix LP: #1038047 part 1 - Don't abort in e_source_registry_new* when a
  problem occurs connecting to the Dbus service
  - add debian/patches/dont-abort-in-e_source_registry_new.patch
  - update debian/patches/series
* Fix LP: #1038047 part 2 - libedataserver depends on
  evolution-data-server-common to ensure that the GSettings schemas are
  present
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Evolution calendar - weather backend source class for parsing
2
 
 *      CCF (coded cities forecast) formatted NWS reports
3
 
 *
4
 
 * Copyright (C) 1999-2008 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
 
#define GWEATHER_I_KNOW_THIS_IS_UNSTABLE
30
 
#include <libgweather/weather.h>
31
 
#undef GWEATHER_I_KNOW_THIS_IS_UNSTABLE
32
 
 
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))
51
 
 
52
 
G_BEGIN_DECLS
53
 
 
54
 
typedef struct _EWeatherSourceCCF EWeatherSourceCCF;
55
 
typedef struct _EWeatherSourceCCFClass EWeatherSourceCCFClass;
56
 
 
57
 
struct _EWeatherSourceCCF {
58
 
        EWeatherSource parent;
59
 
 
60
 
        WeatherLocation *location;
61
 
        WeatherInfo *info;
62
 
 
63
 
        EWeatherSourceFinished done;
64
 
        gpointer finished_data;
65
 
};
66
 
 
67
 
struct _EWeatherSourceCCFClass {
68
 
        EWeatherSourceClass parent_class;
69
 
};
70
 
 
71
 
GType           e_weather_source_ccf_get_type   (void);
72
 
EWeatherSource *e_weather_source_ccf_new        (const gchar *location);
73
 
 
74
 
G_END_DECLS
75
 
 
76
 
#endif /* E_WEATHER_SOURCE_CCF_H */