Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / calendar / libecal / e-cal-types.h
1 /* Evolution calendar utilities and types
2  *
3  * Copyright (C) 2000 Ximian, Inc.
4  * Copyright (C) 2000 Ximian, Inc.
5  *
6  * Authors: Federico Mena-Quintero <federico@ximian.com>
7  *          JP Rosevear <jpr@ximian.com>
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, USA.
21  */
22
23 #ifndef E_CAL_TYPES_H
24 #define E_CAL_TYPES_H
25
26 #include <libecal/e-cal-component.h>
27
28 G_BEGIN_DECLS
29
30 \f
31
32 #define E_CALENDAR_ERROR e_calendar_error_quark()
33
34 GQuark e_calendar_error_quark (void) G_GNUC_CONST;
35
36 typedef enum {
37         E_CAL_CHANGE_ADDED = 1 << 0,
38         E_CAL_CHANGE_MODIFIED = 1 << 1,
39         E_CAL_CHANGE_DELETED = 1 << 2
40 } ECalChangeType;
41
42 typedef struct 
43 {
44         ECalComponent *comp;
45         ECalChangeType type;
46 } ECalChange;
47
48 typedef enum {
49         E_CALENDAR_STATUS_OK,
50         E_CALENDAR_STATUS_INVALID_ARG,
51         E_CALENDAR_STATUS_BUSY,
52         E_CALENDAR_STATUS_REPOSITORY_OFFLINE,
53         E_CALENDAR_STATUS_NO_SUCH_CALENDAR,
54         E_CALENDAR_STATUS_OBJECT_NOT_FOUND,
55         E_CALENDAR_STATUS_INVALID_OBJECT,
56         E_CALENDAR_STATUS_URI_NOT_LOADED,
57         E_CALENDAR_STATUS_URI_ALREADY_LOADED,
58         E_CALENDAR_STATUS_PERMISSION_DENIED,
59         E_CALENDAR_STATUS_UNKNOWN_USER,
60         E_CALENDAR_STATUS_OBJECT_ID_ALREADY_EXISTS,
61         E_CALENDAR_STATUS_PROTOCOL_NOT_SUPPORTED,
62         E_CALENDAR_STATUS_CANCELLED,
63         E_CALENDAR_STATUS_COULD_NOT_CANCEL,
64         E_CALENDAR_STATUS_AUTHENTICATION_FAILED,
65         E_CALENDAR_STATUS_AUTHENTICATION_REQUIRED,
66         E_CALENDAR_STATUS_CORBA_EXCEPTION,
67         E_CALENDAR_STATUS_OTHER_ERROR,
68         E_CALENDAR_STATUS_INVALID_SERVER_VERSION
69
70 } ECalendarStatus;
71
72 G_END_DECLS
73
74 #endif
75