1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* e-cal-backend-factory.h
4 * Copyright (C) 2004 Novell, Inc.
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.
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.
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.
20 * Author: Chris Toshok <toshok@ximian.com>
23 #ifndef _E_CAL_BACKEND_FACTORY_H_
24 #define _E_CAL_BACKEND_FACTORY_H_
26 #include <glib-object.h>
27 #include "e-cal-backend.h"
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))
38 typedef struct _ECalBackendFactoryPrivate ECalBackendFactoryPrivate;
41 GObject parent_object;
45 GObjectClass parent_class;
47 icalcomponent_kind (*get_kind) (ECalBackendFactory *factory);
48 const char* (*get_protocol) (ECalBackendFactory *factory);
49 ECalBackend* (*new_backend) (ECalBackendFactory *factory, ESource *source);
50 } ECalBackendFactoryClass;
52 GType e_cal_backend_factory_get_type (void);
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);
60 #endif /* _E_CAL_BACKEND_FACTORY_H_ */