From 665da2c706a462d92c70fad3e41974fe5f4d8c30 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Fri, 7 Jul 2000 18:42:38 +0000 Subject: Handle the SEQUENCE property. (free_icalcomponent): Ditto. 2000-07-07 Federico Mena Quintero * cal-util/cal-component.c (scan_property): Handle the SEQUENCE property. (free_icalcomponent): Ditto. (cal_component_get_sequence): Ditto. (cal_component_set_sequence): Ditto. (cal_component_free_sequence): Ditto. (cal_component_set_last_modified): Removed incorrect assertion. (CalComponentPrivate): New need_sequence_inc flag. The sequence number must be incremented when certain properties change, so we store a flag that says if we need to bump it when piping the object over the wire. (free_icalcomponent): Reset need_sequence_inc. (cal_component_set_dtstart): Set need_sequence_inc. (cal_component_set_dtend): Ditto. (cal_component_set_due): Ditto. svn path=/trunk/; revision=3957 --- calendar/cal-util/cal-component.h | 4 ++++ 1 file changed, 4 insertions(+) (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 b9cc9da942..d02b3efae7 100644 --- a/calendar/cal-util/cal-component.h +++ b/calendar/cal-util/cal-component.h @@ -144,6 +144,10 @@ void cal_component_set_due (CalComponent *comp, CalComponentDateTime *dt); void cal_component_get_last_modified (CalComponent *comp, struct icaltimetype **t); void cal_component_set_last_modified (CalComponent *comp, struct icaltimetype *t); +void cal_component_get_sequence (CalComponent *comp, int **sequence); +void cal_component_set_sequence (CalComponent *comp, int *sequence); +void cal_component_free_sequence (int *sequence); + void cal_component_get_summary (CalComponent *comp, CalComponentText *summary); void cal_component_set_summary (CalComponent *comp, CalComponentText *summary); -- cgit