Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / calendar / libedata-cal / e-cal-backend-factory.h
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* e-cal-backend-factory.h
3  *
4  * Copyright (C) 2004  Novell, Inc.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of version 2 of the GNU Lesser General Public
8  * License as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this program; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  *
20  * Author: Chris Toshok <toshok@ximian.com>
21  */
22
23 #ifndef _E_CAL_BACKEND_FACTORY_H_
24 #define _E_CAL_BACKEND_FACTORY_H_
25
26 #include <glib-object.h>
27 #include "e-cal-backend.h"
28
29 G_BEGIN_DECLS
30
31 #define E_TYPE_CAL_BACKEND_FACTORY        (e_cal_backend_factory_get_type ())
32 #define E_CAL_BACKEND_FACTORY(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), E_TYPE_CAL_BACKEND_FACTORY, ECalBackendFactory))
33 #define E_CAL_BACKEND_FACTORY_CLASS(k)    (G_TYPE_CHECK_CLASS_CAST((k), E_TYPE_CAL_BACKEND_FACTORY, ECalBackendFactoryClass))
34 #define E_IS_CAL_BACKEND_FACTORY(o)       (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_TYPE_CAL_BACKEND_FACTORY))
35 #define E_IS_CAL_BACKEND_FACTORY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_TYPE_CAL_BACKEND_FACTORY))
36 #define E_CAL_BACKEND_FACTORY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), E_TYPE_CAL_BACKEND_FACTORY, ECalBackendFactoryClass))
37
38 typedef struct _ECalBackendFactoryPrivate ECalBackendFactoryPrivate;
39
40 typedef struct {
41         GObject            parent_object;
42 } ECalBackendFactory;
43
44 typedef struct {
45         GObjectClass parent_class;
46
47         icalcomponent_kind (*get_kind)     (ECalBackendFactory *factory);
48         const char*        (*get_protocol) (ECalBackendFactory *factory);
49         ECalBackend*       (*new_backend)  (ECalBackendFactory *factory, ESource *source);
50 } ECalBackendFactoryClass;
51
52 GType               e_cal_backend_factory_get_type              (void);
53
54 icalcomponent_kind  e_cal_backend_factory_get_kind              (ECalBackendFactory *factory);
55 const char*         e_cal_backend_factory_get_protocol          (ECalBackendFactory *factory);
56 ECalBackend*        e_cal_backend_factory_new_backend           (ECalBackendFactory *factory, ESource *source);
57
58 G_END_DECLS
59
60 #endif /* _E_CAL_BACKEND_FACTORY_H_ */