20 #ifndef ICALCOMPONENT_H 21 #define ICALCOMPONENT_H 23 #include "libical_ical_export.h" 24 #include "icalenums.h" 25 #include "icalproperty.h" 34 icalcomponent_kind kind;
39 LIBICAL_ICAL_EXPORT
icalcomponent *icalcomponent_new(icalcomponent_kind kind);
43 LIBICAL_ICAL_EXPORT
icalcomponent *icalcomponent_new_from_string(
const char *str);
45 LIBICAL_ICAL_EXPORT
icalcomponent *icalcomponent_vanew(icalcomponent_kind kind, ...);
47 LIBICAL_ICAL_EXPORT
icalcomponent *icalcomponent_new_x(
const char *x_name);
49 LIBICAL_ICAL_EXPORT
void icalcomponent_free(
icalcomponent *component);
51 LIBICAL_ICAL_EXPORT
char *icalcomponent_as_ical_string(
icalcomponent *component);
53 LIBICAL_ICAL_EXPORT
char *icalcomponent_as_ical_string_r(
icalcomponent *component);
55 LIBICAL_ICAL_EXPORT
int icalcomponent_is_valid(
icalcomponent *component);
57 LIBICAL_ICAL_EXPORT icalcomponent_kind icalcomponent_isa(
const icalcomponent *component);
59 LIBICAL_ICAL_EXPORT
int icalcomponent_isa_component(
void *component);
65 LIBICAL_ICAL_EXPORT
void icalcomponent_add_property(
icalcomponent *component,
66 icalproperty *property);
68 LIBICAL_ICAL_EXPORT
void icalcomponent_remove_property(
icalcomponent *component,
69 icalproperty *property);
71 LIBICAL_ICAL_EXPORT
int icalcomponent_count_properties(
icalcomponent *component,
72 icalproperty_kind kind);
74 LIBICAL_ICAL_EXPORT
void icalproperty_set_parent(icalproperty *property,
77 LIBICAL_ICAL_EXPORT
icalcomponent *icalproperty_get_parent(
const icalproperty *property);
80 LIBICAL_ICAL_EXPORT icalproperty *icalcomponent_get_current_property(
icalcomponent *component);
82 LIBICAL_ICAL_EXPORT icalproperty *icalcomponent_get_first_property(
icalcomponent *component,
83 icalproperty_kind kind);
84 LIBICAL_ICAL_EXPORT icalproperty *icalcomponent_get_next_property(
icalcomponent *component,
85 icalproperty_kind kind);
98 LIBICAL_ICAL_EXPORT
void icalcomponent_remove_component(
icalcomponent *parent,
101 LIBICAL_ICAL_EXPORT
int icalcomponent_count_components(
icalcomponent *component,
102 icalcomponent_kind kind);
108 LIBICAL_ICAL_EXPORT
void icalcomponent_merge_component(
icalcomponent *comp,
120 icalcomponent_kind kind);
122 icalcomponent_kind kind);
126 icalcomponent_kind kind);
129 icalcomponent_kind kind);
141 LIBICAL_ICAL_EXPORT
int icalcomponent_check_restrictions(
icalcomponent *comp);
144 LIBICAL_ICAL_EXPORT
int icalcomponent_count_errors(
icalcomponent *component);
147 LIBICAL_ICAL_EXPORT
void icalcomponent_strip_errors(
icalcomponent *component);
150 LIBICAL_ICAL_EXPORT
void icalcomponent_convert_errors(
icalcomponent *component);
155 LIBICAL_ICAL_EXPORT
void icalcomponent_set_parent(
icalcomponent *component,
160 LIBICAL_ICAL_EXPORT
int icalcomponent_kind_is_valid(
const icalcomponent_kind kind);
162 LIBICAL_ICAL_EXPORT icalcomponent_kind icalcomponent_string_to_kind(
const char *
string);
164 LIBICAL_ICAL_EXPORT
const char *icalcomponent_kind_to_string(icalcomponent_kind kind);
178 LIBICAL_ICAL_EXPORT
struct icaltime_span icalcomponent_get_span(icalcomponent *comp);
182 LIBICAL_ICAL_EXPORT
void icalcomponent_set_dtstart(icalcomponent *comp,
struct icaltimetype v);
183 LIBICAL_ICAL_EXPORT
struct icaltimetype icalcomponent_get_dtstart(icalcomponent *comp);
194 LIBICAL_ICAL_EXPORT
struct icaltimetype icalcomponent_get_dtend(icalcomponent *comp);
196 LIBICAL_ICAL_EXPORT
void icalcomponent_set_dtend(icalcomponent *comp,
struct icaltimetype v);
198 LIBICAL_ICAL_EXPORT
struct icaltimetype icalcomponent_get_due(icalcomponent *comp);
200 LIBICAL_ICAL_EXPORT
void icalcomponent_set_due(icalcomponent *comp,
struct icaltimetype v);
202 LIBICAL_ICAL_EXPORT
void icalcomponent_set_duration(icalcomponent *comp,
205 LIBICAL_ICAL_EXPORT
struct icaldurationtype icalcomponent_get_duration(icalcomponent *comp);
207 LIBICAL_ICAL_EXPORT
void icalcomponent_set_method(icalcomponent *comp, icalproperty_method method);
209 LIBICAL_ICAL_EXPORT icalproperty_method icalcomponent_get_method(icalcomponent *comp);
211 LIBICAL_ICAL_EXPORT
struct icaltimetype icalcomponent_get_dtstamp(icalcomponent *comp);
213 LIBICAL_ICAL_EXPORT
void icalcomponent_set_dtstamp(icalcomponent *comp,
struct icaltimetype v);
215 LIBICAL_ICAL_EXPORT
void icalcomponent_set_summary(icalcomponent *comp,
const char *v);
217 LIBICAL_ICAL_EXPORT
const char *icalcomponent_get_summary(icalcomponent *comp);
219 LIBICAL_ICAL_EXPORT
void icalcomponent_set_comment(icalcomponent *comp,
const char *v);
221 LIBICAL_ICAL_EXPORT
const char *icalcomponent_get_comment(icalcomponent *comp);
223 LIBICAL_ICAL_EXPORT
void icalcomponent_set_uid(icalcomponent *comp,
const char *v);
225 LIBICAL_ICAL_EXPORT
const char *icalcomponent_get_uid(icalcomponent *comp);
227 LIBICAL_ICAL_EXPORT
void icalcomponent_set_relcalid(icalcomponent *comp,
const char *v);
229 LIBICAL_ICAL_EXPORT
const char *icalcomponent_get_relcalid(icalcomponent *comp);
231 LIBICAL_ICAL_EXPORT
void icalcomponent_set_recurrenceid(icalcomponent *comp,
234 LIBICAL_ICAL_EXPORT
struct icaltimetype icalcomponent_get_recurrenceid(icalcomponent *comp);
236 LIBICAL_ICAL_EXPORT
void icalcomponent_set_description(icalcomponent *comp,
const char *v);
238 LIBICAL_ICAL_EXPORT
const char *icalcomponent_get_description(icalcomponent *comp);
240 LIBICAL_ICAL_EXPORT
void icalcomponent_set_location(icalcomponent *comp,
const char *v);
242 LIBICAL_ICAL_EXPORT
const char *icalcomponent_get_location(icalcomponent *comp);
244 LIBICAL_ICAL_EXPORT
void icalcomponent_set_sequence(icalcomponent *comp,
int v);
246 LIBICAL_ICAL_EXPORT
int icalcomponent_get_sequence(icalcomponent *comp);
248 LIBICAL_ICAL_EXPORT
void icalcomponent_set_status(icalcomponent *comp,
enum icalproperty_status v);
250 LIBICAL_ICAL_EXPORT
enum icalproperty_status icalcomponent_get_status(icalcomponent *comp);
254 LIBICAL_ICAL_EXPORT
void icalcomponent_foreach_tzid(icalcomponent *comp,
255 void (*callback) (icalparameter *param,
257 void *callback_data);
261 LIBICAL_ICAL_EXPORT
icaltimezone *icalcomponent_get_timezone(icalcomponent *comp,
264 LIBICAL_ICAL_EXPORT
int icalproperty_recurrence_is_excluded(icalcomponent *comp,
268 LIBICAL_ICAL_EXPORT
void icalcomponent_foreach_recurrence(icalcomponent *comp,
271 void (*callback) (icalcomponent *comp,
274 void *callback_data);
278 LIBICAL_ICAL_EXPORT icalcomponent *icalcomponent_new_vcalendar(
void);
280 LIBICAL_ICAL_EXPORT icalcomponent *icalcomponent_new_vevent(
void);
282 LIBICAL_ICAL_EXPORT icalcomponent *icalcomponent_new_vtodo(
void);
284 LIBICAL_ICAL_EXPORT icalcomponent *icalcomponent_new_vjournal(
void);
286 LIBICAL_ICAL_EXPORT icalcomponent *icalcomponent_new_valarm(
void);
288 LIBICAL_ICAL_EXPORT icalcomponent *icalcomponent_new_vfreebusy(
void);
290 LIBICAL_ICAL_EXPORT icalcomponent *icalcomponent_new_vtimezone(
void);
292 LIBICAL_ICAL_EXPORT icalcomponent *icalcomponent_new_xstandard(
void);
294 LIBICAL_ICAL_EXPORT icalcomponent *icalcomponent_new_xdaylight(
void);
296 LIBICAL_ICAL_EXPORT icalcomponent *icalcomponent_new_vagenda(
void);
298 LIBICAL_ICAL_EXPORT icalcomponent *icalcomponent_new_vquery(
void);
300 LIBICAL_ICAL_EXPORT icalcomponent *icalcomponent_new_vavailability(
void);
302 LIBICAL_ICAL_EXPORT icalcomponent *icalcomponent_new_xavailable(
void);
304 LIBICAL_ICAL_EXPORT icalcomponent *icalcomponent_new_vpoll(
void);
306 LIBICAL_ICAL_EXPORT icalcomponent *icalcomponent_new_vvoter(
void);
308 LIBICAL_ICAL_EXPORT icalcomponent *icalcomponent_new_xvote(
void);
Definition: icaltime.h:96
A struct representing a duration.
Definition: icalduration.h:37
Definition: icalcomponent.c:33
Definition: icalcomponent.h:32
Definition: icaltime.h:105
Definition: icaltimezoneimpl.h:23