1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
4 * JP Rosevear <jpr@ximian.com>
5 * Rodrigo Moya <rodrigo@ximian.com>
7 * Copyright 2003, Novell, Inc.
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of version 2 of the GNU Lesser General Public
11 * License as published by the Free Software Foundation.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
24 #ifndef E_CAL_BACKEND_GROUPWISE_H
25 #define E_CAL_BACKEND_GROUPWISE_H
27 #include <libedata-cal/e-cal-backend-sync.h>
28 #include <servers/groupwise/e-gw-connection.h>
32 #define E_TYPE_CAL_BACKEND_GROUPWISE (e_cal_backend_groupwise_get_type ())
33 #define E_CAL_BACKEND_GROUPWISE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_CAL_BACKEND_GROUPWISE, ECalBackendGroupwise))
34 #define E_CAL_BACKEND_GROUPWISE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_CAL_BACKEND_GROUPWISE, ECalBackendGroupwiseClass))
35 #define E_IS_CAL_BACKEND_GROUPWISE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_CAL_BACKEND_GROUPWISE))
36 #define E_IS_CAL_BACKEND_GROUPWISE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), E_TYPE_CAL_BACKEND_GROUPWISE))
38 typedef struct _ECalBackendGroupwise ECalBackendGroupwise;
39 typedef struct _ECalBackendGroupwiseClass ECalBackendGroupwiseClass;
41 typedef struct _ECalBackendGroupwisePrivate ECalBackendGroupwisePrivate;
43 struct _ECalBackendGroupwise {
44 ECalBackendSync backend;
47 ECalBackendGroupwisePrivate *priv;
50 struct _ECalBackendGroupwiseClass {
51 ECalBackendSyncClass parent_class;
55 ECalBackendGroupwise *cbgw;
59 GType e_cal_backend_groupwise_get_type (void);
60 EGwConnection* e_cal_backend_groupwise_get_connection (ECalBackendGroupwise *cbgw);
61 GHashTable* e_cal_backend_groupwise_get_categories_by_id (ECalBackendGroupwise *cbgw);
62 GHashTable* e_cal_backend_groupwise_get_categories_by_name (ECalBackendGroupwise *cbgw);
63 icaltimezone* e_cal_backend_groupwise_get_default_zone (ECalBackendGroupwise *cbgw);
64 void e_cal_backend_groupwise_notify_error_code (ECalBackendGroupwise *cbgw, EGwConnectionStatus status);
65 const char * e_cal_backend_groupwise_get_local_attachments_store (ECalBackendGroupwise *cbgw);