Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / calendar / backends / groupwise / e-cal-backend-groupwise.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* 
3  * Authors : 
4  *  JP Rosevear <jpr@ximian.com>
5  *  Rodrigo Moya <rodrigo@ximian.com>
6  *
7  * Copyright 2003, Novell, Inc.
8  *
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.
12  *
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.
17  *
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
21  * USA
22  */
23
24 #ifndef E_CAL_BACKEND_GROUPWISE_H
25 #define E_CAL_BACKEND_GROUPWISE_H
26
27 #include <libedata-cal/e-cal-backend-sync.h>
28 #include <servers/groupwise/e-gw-connection.h>
29
30 G_BEGIN_DECLS
31
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))
37
38 typedef struct _ECalBackendGroupwise        ECalBackendGroupwise;
39 typedef struct _ECalBackendGroupwiseClass   ECalBackendGroupwiseClass;
40
41 typedef struct _ECalBackendGroupwisePrivate ECalBackendGroupwisePrivate;
42
43 struct _ECalBackendGroupwise {
44         ECalBackendSync backend;
45
46         /* Private data */
47         ECalBackendGroupwisePrivate *priv;
48 };
49
50 struct _ECalBackendGroupwiseClass {
51         ECalBackendSyncClass parent_class;
52 };
53
54 typedef struct {
55         ECalBackendGroupwise *cbgw;
56         EGwSendOptions *opts;
57 } GwSettings;
58
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);
66 G_END_DECLS
67
68 #endif