1 /* Evolution calendar - iCalendar file backend
2  *
3  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
4  *
5  * This library is free software: you can redistribute it and/or modify it
6  * under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation.
8  *
9  * This library is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
12  * for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library. If not, see <http://www.gnu.org/licenses/>.
16  *
17  * Authors: Federico Mena-Quintero <federico@ximian.com>
18  */
19 
20 #ifndef E_CAL_BACKEND_FILE_H
21 #define E_CAL_BACKEND_FILE_H
22 
23 #include <libedata-cal/libedata-cal.h>
24 
25 /* Standard GObject macros */
26 #define E_TYPE_CAL_BACKEND_FILE \
27 	(e_cal_backend_file_get_type ())
28 #define E_CAL_BACKEND_FILE(obj) \
29 	(G_TYPE_CHECK_INSTANCE_CAST \
30 	((obj), E_TYPE_CAL_BACKEND_FILE, ECalBackendFile))
31 #define E_CAL_BACKEND_FILE_CLASS(cls) \
32 	(G_TYPE_CHECK_CLASS_CAST \
33 	((cls), E_TYPE_CAL_BACKEND_FILE, ECalBackendFileClass))
34 #define E_IS_CAL_BACKEND_FILE(obj) \
35 	(G_TYPE_CHECK_INSTANCE_TYPE \
36 	((obj), E_TYPE_CAL_BACKEND_FILE))
37 #define E_IS_CAL_BACKEND_FILE_CLASS(cls) \
38 	(G_TYPE_CHECK_CLASS_TYPE \
39 	((cls), E_TYPE_CAL_BACKEND_FILE))
40 #define E_CAL_BACKEND_FILE_GET_CLASS(obj) \
41 	(G_TYPE_INSTANCE_GET_CLASS \
42 	((obj), E_TYPE_CAL_BACKEND_FILE, ECalBackendFileClass))
43 
44 G_BEGIN_DECLS
45 
46 typedef struct _ECalBackendFile ECalBackendFile;
47 typedef struct _ECalBackendFileClass ECalBackendFileClass;
48 typedef struct _ECalBackendFilePrivate ECalBackendFilePrivate;
49 
50 struct _ECalBackendFile {
51 	ECalBackendSync parent;
52 	ECalBackendFilePrivate *priv;
53 };
54 
55 struct _ECalBackendFileClass {
56 	ECalBackendSyncClass parent_class;
57 };
58 
59 GType		e_cal_backend_file_get_type	(void);
60 const gchar *	e_cal_backend_file_get_file_name
61 						(ECalBackendFile *cbfile);
62 void		e_cal_backend_file_set_file_name
63 						(ECalBackendFile *cbfile,
64 						 const gchar *file_name);
65 void		e_cal_backend_file_reload	(ECalBackendFile *cbfile,
66 						 GError **error);
67 
68 G_END_DECLS
69 
70 #endif /* E_CAL_BACKEND_FILE_H */
71