Libical API Documentation 4.0 UNRELEASED Go to the stable 3.0 documentation
Loading...
Searching...
No Matches
icalenums.h
Go to the documentation of this file.
1/*======================================================================
2 FILE: icalenums.h
3
4 SPDX-FileCopyrightText: 2000, Eric Busboom <eric@civicknowledge.com>
5 SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
6
7 Contributions from:
8 Graham Davison <g.m.davison@computer.org>
9======================================================================*/
10
11#ifndef ICALENUMS_H
12#define ICALENUMS_H
13
14#include "libical_ical_export.h"
15
17
18/***********************************************************************
19 * Component enumerations
20**********************************************************************/
21
22typedef enum icalcomponent_kind
23{
24 ICAL_NO_COMPONENT,
25 ICAL_ANY_COMPONENT, /* Used to select all components */
26 ICAL_XROOT_COMPONENT,
27 ICAL_XATTACH_COMPONENT, /* MIME attached data, returned by parser. */
28 ICAL_VEVENT_COMPONENT,
29 ICAL_VTODO_COMPONENT,
30 ICAL_VJOURNAL_COMPONENT,
31 ICAL_VCALENDAR_COMPONENT,
32 ICAL_VAGENDA_COMPONENT,
33 ICAL_VFREEBUSY_COMPONENT,
34 ICAL_VALARM_COMPONENT,
35 ICAL_XAUDIOALARM_COMPONENT,
36 ICAL_XDISPLAYALARM_COMPONENT,
37 ICAL_XEMAILALARM_COMPONENT,
38 ICAL_XPROCEDUREALARM_COMPONENT,
39 ICAL_VTIMEZONE_COMPONENT,
40 ICAL_XSTANDARD_COMPONENT,
41 ICAL_XDAYLIGHT_COMPONENT,
42 ICAL_X_COMPONENT,
43 ICAL_VSCHEDULE_COMPONENT,
44 ICAL_VQUERY_COMPONENT,
45 ICAL_VREPLY_COMPONENT,
46 ICAL_VCAR_COMPONENT,
47 ICAL_VCOMMAND_COMPONENT,
48 ICAL_XLICINVALID_COMPONENT,
49 ICAL_XLICMIMEPART_COMPONENT, /* A non-stardard component that mirrors
50 structure of MIME data */
51 ICAL_VAVAILABILITY_COMPONENT,
52 ICAL_XAVAILABLE_COMPONENT,
53 ICAL_VPOLL_COMPONENT,
54 ICAL_VVOTER_COMPONENT,
55 ICAL_XVOTE_COMPONENT,
56 ICAL_VPATCH_COMPONENT,
57 ICAL_XPATCH_COMPONENT,
58 ICAL_PARTICIPANT_COMPONENT,
59 ICAL_VLOCATION_COMPONENT,
60 ICAL_VRESOURCE_COMPONENT,
61 ICAL_IANA_COMPONENT,
62 ICAL_NUM_COMPONENT_TYPES /* MUST be last (unless we can put NO_COMP last) */
63} icalcomponent_kind;
64
65/***********************************************************************
66 * Request Status codes
67 **********************************************************************/
68
69typedef enum icalrequeststatus
70{
71 ICAL_UNKNOWN_STATUS,
72 ICAL_2_0_SUCCESS_STATUS,
73 ICAL_2_1_FALLBACK_STATUS,
74 ICAL_2_2_IGPROP_STATUS,
75 ICAL_2_3_IGPARAM_STATUS,
76 ICAL_2_4_IGXPROP_STATUS,
77 ICAL_2_5_IGXPARAM_STATUS,
78 ICAL_2_6_IGCOMP_STATUS,
79 ICAL_2_7_FORWARD_STATUS,
80 ICAL_2_8_ONEEVENT_STATUS,
81 ICAL_2_9_TRUNC_STATUS,
82 ICAL_2_10_ONETODO_STATUS,
83 ICAL_2_11_TRUNCRRULE_STATUS,
84 ICAL_3_0_INVPROPNAME_STATUS,
85 ICAL_3_1_INVPROPVAL_STATUS,
86 ICAL_3_2_INVPARAM_STATUS,
87 ICAL_3_3_INVPARAMVAL_STATUS,
88 ICAL_3_4_INVCOMP_STATUS,
89 ICAL_3_5_INVTIME_STATUS,
90 ICAL_3_6_INVRULE_STATUS,
91 ICAL_3_7_INVCU_STATUS,
92 ICAL_3_8_NOAUTH_STATUS,
93 ICAL_3_9_BADVERSION_STATUS,
94 ICAL_3_10_TOOBIG_STATUS,
95 ICAL_3_11_MISSREQCOMP_STATUS,
96 ICAL_3_12_UNKCOMP_STATUS,
97 ICAL_3_13_BADCOMP_STATUS,
98 ICAL_3_14_NOCAP_STATUS,
99 ICAL_3_15_INVCOMMAND,
100 ICAL_4_0_BUSY_STATUS,
101 ICAL_4_1_STORE_ACCESS_DENIED,
102 ICAL_4_2_STORE_FAILED,
103 ICAL_4_3_STORE_NOT_FOUND,
104 ICAL_5_0_MAYBE_STATUS,
105 ICAL_5_1_UNAVAIL_STATUS,
106 ICAL_5_2_NOSERVICE_STATUS,
107 ICAL_5_3_NOSCHED_STATUS,
108 ICAL_6_1_CONTAINER_NOT_FOUND,
109 ICAL_9_0_UNRECOGNIZED_COMMAND
110} icalrequeststatus;
111
114LIBICAL_ICAL_EXPORT const char *icalenum_reqstat_desc(icalrequeststatus stat);
115
118LIBICAL_ICAL_EXPORT short icalenum_reqstat_major(icalrequeststatus stat);
119
122LIBICAL_ICAL_EXPORT short icalenum_reqstat_minor(icalrequeststatus stat);
123
126LIBICAL_ICAL_EXPORT icalrequeststatus icalenum_num_to_reqstat(short major, short minor);
127
128LIBICAL_ICAL_EXPORT char *icalenum_reqstat_code(icalrequeststatus stat);
129
132LIBICAL_ICAL_EXPORT char *icalenum_reqstat_code_r(icalrequeststatus stat);
133
134#endif /* !ICALENUMS_H */
const char * icalenum_reqstat_desc(icalrequeststatus stat)
Returns the descriptive text for a request status.
Definition icalenums.c:69
short icalenum_reqstat_major(icalrequeststatus stat)
Returns the major number for a request status.
Definition icalenums.c:108
icalrequeststatus icalenum_num_to_reqstat(short major, short minor)
Returns a request status for major/minor status numbers.
Definition icalenums.c:134
short icalenum_reqstat_minor(icalrequeststatus stat)
Returns the minor number for a request status.
Definition icalenums.c:121
char * icalenum_reqstat_code_r(icalrequeststatus stat)
Returns the code for a request status.
Definition icalenums.c:92