summaryrefslogtreecommitdiffabout
path: root/libical/src/libical/icalenums.h
Unidiff
Diffstat (limited to 'libical/src/libical/icalenums.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libical/src/libical/icalenums.h157
1 files changed, 157 insertions, 0 deletions
diff --git a/libical/src/libical/icalenums.h b/libical/src/libical/icalenums.h
new file mode 100644
index 0000000..21031dd
--- a/dev/null
+++ b/libical/src/libical/icalenums.h
@@ -0,0 +1,157 @@
1
2/* -*- Mode: C -*-*/
3/*======================================================================
4 FILE: icalenums.h
5
6
7
8 (C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
9
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of either:
12
13 The LGPL as published by the Free Software Foundation, version
14 2.1, available at: http://www.fsf.org/copyleft/lesser.html
15
16 Or:
17
18 The Mozilla Public License Version 1.0. You may obtain a copy of
19 the License at http://www.mozilla.org/MPL/
20
21 The original code is icalenums.h
22
23 Contributions from:
24 Graham Davison (g.m.davison@computer.org)
25
26======================================================================*/
27
28#ifndef ICALENUMS_H
29#define ICALENUMS_H
30
31
32
33/***********************************************************************
34 * Component enumerations
35**********************************************************************/
36
37typedef enum icalcomponent_kind {
38 ICAL_NO_COMPONENT,
39 ICAL_ANY_COMPONENT,/* Used to select all components*/
40 ICAL_XROOT_COMPONENT,
41 ICAL_XATTACH_COMPONENT, /* MIME attached data, returned by parser. */
42 ICAL_VEVENT_COMPONENT,
43 ICAL_VTODO_COMPONENT,
44 ICAL_VJOURNAL_COMPONENT,
45 ICAL_VCALENDAR_COMPONENT,
46 ICAL_VFREEBUSY_COMPONENT,
47 ICAL_VALARM_COMPONENT,
48 ICAL_XAUDIOALARM_COMPONENT,
49 ICAL_XDISPLAYALARM_COMPONENT,
50 ICAL_XEMAILALARM_COMPONENT,
51 ICAL_XPROCEDUREALARM_COMPONENT,
52 ICAL_VTIMEZONE_COMPONENT,
53 ICAL_XSTANDARD_COMPONENT,
54 ICAL_XDAYLIGHT_COMPONENT,
55 ICAL_X_COMPONENT,
56 ICAL_VSCHEDULE_COMPONENT,
57 ICAL_VQUERY_COMPONENT,
58 ICAL_VCAR_COMPONENT,
59 ICAL_VCOMMAND_COMPONENT,
60 ICAL_XLICINVALID_COMPONENT,
61 ICAL_XLICMIMEPART_COMPONENT /* a non-stardard component that mirrors
62 structure of MIME data */
63
64} icalcomponent_kind;
65
66
67
68/***********************************************************************
69 * Request Status codes
70 **********************************************************************/
71
72typedef enum icalrequeststatus {
73 ICAL_UNKNOWN_STATUS,
74 ICAL_2_0_SUCCESS_STATUS,
75 ICAL_2_1_FALLBACK_STATUS,
76 ICAL_2_2_IGPROP_STATUS,
77 ICAL_2_3_IGPARAM_STATUS,
78 ICAL_2_4_IGXPROP_STATUS,
79 ICAL_2_5_IGXPARAM_STATUS,
80 ICAL_2_6_IGCOMP_STATUS,
81 ICAL_2_7_FORWARD_STATUS,
82 ICAL_2_8_ONEEVENT_STATUS,
83 ICAL_2_9_TRUNC_STATUS,
84 ICAL_2_10_ONETODO_STATUS,
85 ICAL_2_11_TRUNCRRULE_STATUS,
86 ICAL_3_0_INVPROPNAME_STATUS,
87 ICAL_3_1_INVPROPVAL_STATUS,
88 ICAL_3_2_INVPARAM_STATUS,
89 ICAL_3_3_INVPARAMVAL_STATUS,
90 ICAL_3_4_INVCOMP_STATUS,
91 ICAL_3_5_INVTIME_STATUS,
92 ICAL_3_6_INVRULE_STATUS,
93 ICAL_3_7_INVCU_STATUS,
94 ICAL_3_8_NOAUTH_STATUS,
95 ICAL_3_9_BADVERSION_STATUS,
96 ICAL_3_10_TOOBIG_STATUS,
97 ICAL_3_11_MISSREQCOMP_STATUS,
98 ICAL_3_12_UNKCOMP_STATUS,
99 ICAL_3_13_BADCOMP_STATUS,
100 ICAL_3_14_NOCAP_STATUS,
101 ICAL_4_0_BUSY_STATUS,
102 ICAL_5_0_MAYBE_STATUS,
103 ICAL_5_1_UNAVAIL_STATUS,
104 ICAL_5_2_NOSERVICE_STATUS,
105 ICAL_5_3_NOSCHED_STATUS
106} icalrequeststatus;
107
108
109const char* icalenum_reqstat_desc(icalrequeststatus stat);
110short icalenum_reqstat_major(icalrequeststatus stat);
111short icalenum_reqstat_minor(icalrequeststatus stat);
112icalrequeststatus icalenum_num_to_reqstat(short major, short minor);
113
114/***********************************************************************
115 * Conversion functions
116**********************************************************************/
117
118
119/* Thse routines used to be in icalenums.c, but were moved into the
120 icalproperty, icalparameter, icalvalue, or icalcomponent modules. */
121
122/* const char* icalproperty_kind_to_string(icalproperty_kind kind);*/
123#define icalenum_property_kind_to_string(x) icalproperty_kind_to_string(x)
124
125/*icalproperty_kind icalproperty_string_to_kind(const char* string)*/
126#define icalenum_string_to_property_kind(x) icalproperty_string_to_kind(x)
127
128/*icalvalue_kind icalproperty_kind_to_value_kind(icalproperty_kind kind);*/
129#define icalenum_property_kind_to_value_kind(x) icalproperty_kind_to_value_kind(x)
130
131/*const char* icalenum_method_to_string(icalproperty_method);*/
132#define icalenum_method_to_string(x) icalproperty_method_to_string(x)
133
134/*icalproperty_method icalenum_string_to_method(const char* string);*/
135#define icalenum_string_to_method(x) icalproperty_string_to_method(x)
136
137/*const char* icalenum_status_to_string(icalproperty_status);*/
138#define icalenum_status_to_string(x) icalproperty_status_to_string(x)
139
140/*icalproperty_status icalenum_string_to_status(const char* string);*/
141#define icalenum_string_to_status(x) icalproperty_string_to_status(x)
142
143/*icalvalue_kind icalenum_string_to_value_kind(const char* str);*/
144#define icalenum_string_to_value_kind(x) icalvalue_string_to_kind(x)
145
146/*const char* icalenum_value_kind_to_string(icalvalue_kind kind);*/
147#define icalenum_value_kind_to_string(x) icalvalue_kind_to_string(x)
148
149/*const char* icalenum_component_kind_to_string(icalcomponent_kind kind);*/
150#define icalenum_component_kind_to_string(x) icalcomponent_kind_to_string(x)
151
152/*icalcomponent_kind icalenum_string_to_component_kind(const char* string);*/
153#define icalenum_string_to_component_kind(x) icalcomponent_string_to_kind(x)
154
155
156#endif /* !ICALENUMS_H */
157