Add new ESource classes.
[platform/upstream/evolution-data-server.git] / libedataserver / e-system-source.h
1 /*
2  * e-system-source.h
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) version 3.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with the program; if not, see <http://www.gnu.org/licenses/>
16  *
17  */
18
19 #ifndef E_SYSTEM_SOURCE_H
20 #define E_SYSTEM_SOURCE_H
21
22 #include <libedataserver/e-source.h>
23
24 /* Standard GObject macros */
25 #define E_TYPE_SYSTEM_SOURCE \
26         (e_system_source_get_type ())
27 #define E_SYSTEM_SOURCE(obj) \
28         (G_TYPE_CHECK_INSTANCE_CAST \
29         ((obj), E_TYPE_SYSTEM_SOURCE, ESystemSource))
30 #define E_SYSTEM_SOURCE_CLASS(cls) \
31         (G_TYPE_CHECK_CLASS_CAST \
32         ((cls), E_TYPE_SYSTEM_SOURCE, ESystemSourceClass))
33 #define E_IS_SYSTEM_SOURCE(obj) \
34         (G_TYPE_CHECK_INSTANCE_TYPE \
35         ((obj), E_TYPE_SYSTEM_SOURCE))
36 #define E_IS_SYSTEM_SOURCE_CLASS(cls) \
37         (G_TYPE_CHECK_CLASS_TYPE \
38         ((cls), E_TYPE_SYSTEM_SOURCE))
39 #define E_SYSTEM_SOURCE_GET_CLASS(obj) \
40         (G_TYPE_INSTANCE_GET_CLASS \
41         ((obj), E_TYPE_SOURCE, ESystemSourceClass))
42
43 G_BEGIN_DECLS
44
45 typedef struct _ESystemSource ESystemSource;
46 typedef struct _ESystemSourceClass ESystemSourceClass;
47 typedef struct _ESystemSourcePrivate ESystemSourcePrivate;
48
49 struct _ESystemSource {
50         ESource parent;
51         ESystemSourcePrivate *priv;
52 };
53
54 struct _ESystemSourceClass {
55         ESourceClass parent_class;
56 };
57
58 GType           e_system_source_get_type        (void) G_GNUC_CONST;
59 ESource *       e_system_source_new             (void);
60
61 G_END_DECLS
62
63 #endif /* E_SYSTEM_SOURCE_H */