Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / calendar / libedata-cal / e-data-cal-factory.h
1 /* Evolution calendar factory
2  *
3  * Copyright (C) 2000 Ximian, Inc.
4  *
5  * Author: Federico Mena-Quintero <federico@ximian.com>
6  *
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.
10  *
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.
15  *
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.
19  */
20
21 #ifndef E_DATA_CAL_FACTORY_H
22 #define E_DATA_CAL_FACTORY_H
23
24 #include <bonobo/bonobo-object.h>
25 #include <libical/ical.h>
26 #include <libedata-cal/Evolution-DataServer-Calendar.h>
27 #include <libedata-cal/e-cal-backend-factory.h>
28
29 G_BEGIN_DECLS
30
31 \f
32
33 #define E_TYPE_DATA_CAL_FACTORY            (e_data_cal_factory_get_type ())
34 #define E_DATA_CAL_FACTORY(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_DATA_CAL_FACTORY, EDataCalFactory))
35 #define E_DATA_CAL_FACTORY_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_DATA_CAL_FACTORY,  EDataCalFactoryClass))
36 #define E_IS_DATA_CAL_FACTORY(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_DATA_CAL_FACTORY))
37 #define E_IS_DATA_CAL_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), E_TYPE_DATA_CAL_FACTORY))
38
39 typedef struct _EDataCalFactory EDataCalFactory;
40 typedef struct _EDataCalFactoryClass EDataCalFactoryClass;
41
42 typedef struct _EDataCalFactoryPrivate EDataCalFactoryPrivate;
43
44 struct _EDataCalFactory {
45         BonoboObject object;
46
47         /* Private data */
48         EDataCalFactoryPrivate *priv;
49 };
50
51 struct _EDataCalFactoryClass {
52         BonoboObjectClass parent_class;
53         
54         POA_GNOME_Evolution_Calendar_CalFactory__epv epv;
55
56         /* Notification signals */
57         void (* last_calendar_gone) (EDataCalFactory *factory);
58 };
59
60 GType       e_data_cal_factory_get_type        (void);
61 EDataCalFactory *e_data_cal_factory_new             (void);
62
63 gboolean    e_data_cal_factory_register_storage (EDataCalFactory *factory, const char *iid);
64 void        e_data_cal_factory_register_backend  (EDataCalFactory *factory,
65                                                   ECalBackendFactory *backend_factory);
66
67 void        e_data_cal_factory_register_backends    (EDataCalFactory    *factory);
68
69 int         e_data_cal_factory_get_n_backends       (EDataCalFactory *factory);
70 void        e_data_cal_factory_dump_active_backends (EDataCalFactory *factory);
71 void        e_data_cal_factory_set_backend_mode (EDataCalFactory *factory, int mode);
72
73 G_END_DECLS
74
75 #endif