From 1c3ee9654bec525a0f650f20dfea92c3f79b6e4a Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Fri, 7 Jul 2000 02:07:43 +0000 Subject: Handle the CREATED property. (free_icalcomponent): Ditto. 2000-07-06 Federico Mena Quintero * cal-util/cal-component.c (scan_property): Handle the CREATED property. (free_icalcomponent): Ditto. (cal_component_free_icaltimetype): Ditto. (cal_component_get_created): Ditto. (cal_component_set_created): Ditto. (cal_component_init): Do not create an UID here. (ensure_mandatory_properties): New function to ensure that the mandatory RFC properties are indeed in the component. If they are not, we create them on the fly. (cal_component_set_new_vtype): Use ensure_mandatory_properties(). (cal_component_set_icalcomponent): Ditto. (cal_component_get_uid): Return the UID in a parameter, not as a function return value, for consistency's sake. (scan_property): Handle the DTSTAMP property. (free_icalcomponent): Ditto. (cal_component_get_dtstamp): Ditto. (cal_component_set_dtstamp): Ditto. svn path=/trunk/; revision=3934 --- calendar/cal-util/cal-component.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'calendar/cal-util/cal-component.h') diff --git a/calendar/cal-util/cal-component.h b/calendar/cal-util/cal-component.h index dbb0096830..5a66b42619 100644 --- a/calendar/cal-util/cal-component.h +++ b/calendar/cal-util/cal-component.h @@ -104,7 +104,7 @@ icalcomponent *cal_component_get_icalcomponent (CalComponent *comp); CalComponentVType cal_component_get_vtype (CalComponent *comp); -const char *cal_component_get_uid (CalComponent *comp); +void cal_component_get_uid (CalComponent *comp, const char **uid); void cal_component_set_uid (CalComponent *comp, const char *uid); void cal_component_get_categories_list (CalComponent *comp, GSList **categ_list); @@ -119,17 +119,25 @@ void cal_component_free_text_list (GSList *text_list); void cal_component_get_comment_list (CalComponent *comp, GSList **text_list); void cal_component_set_comment_list (CalComponent *comp, GSList *text_list); +void cal_component_free_icaltimetype (struct icaltimetype *t); + +void cal_component_get_created (CalComponent *comp, struct icaltimetype **t); +void cal_component_set_created (CalComponent *comp, struct icaltimetype *t); + void cal_component_get_description_list (CalComponent *comp, GSList **text_list); void cal_component_set_description_list (CalComponent *comp, GSList *text_list); void cal_component_free_datetime (CalComponentDateTime *dt); -void cal_component_get_dtstart (CalComponent *comp, CalComponentDateTime *dt); -void cal_component_set_dtstart (CalComponent *comp, CalComponentDateTime *dt); - void cal_component_get_dtend (CalComponent *comp, CalComponentDateTime *dt); void cal_component_set_dtend (CalComponent *comp, CalComponentDateTime *dt); +void cal_component_get_dtstamp (CalComponent *comp, struct icaltimetype *t); +void cal_component_set_dtstamp (CalComponent *comp, struct icaltimetype *t); + +void cal_component_get_dtstart (CalComponent *comp, CalComponentDateTime *dt); +void cal_component_set_dtstart (CalComponent *comp, CalComponentDateTime *dt); + void cal_component_get_due (CalComponent *comp, CalComponentDateTime *dt); void cal_component_set_due (CalComponent *comp, CalComponentDateTime *dt); -- cgit v1.2.3