From 101b0ed2c8eeae2a97a3a907d97c479adfd19df3 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 29 Nov 2000 16:09:20 +0000 Subject: Upgrade of the alarm framework. We now access alarms by a unique 2000-11-28 Federico Mena Quintero Upgrade of the alarm framework. We now access alarms by a unique identifier. This UID is added as an extension property to alarm subcomponents when their parent components are scanned by CalComponent. * cal-util/cal-component.c (CalComponentPrivate): Added a hash table of alarm UIDs -> alarm properties. (cal_component_init): Initialize priv->alarm_uid_hash. (free_icalcomponent): Free the elements in the priv->alarm_uid_hash. (scan_alarm): New function to add scan an alarm subcomponent and ensure that it has an alarm UID extension property so that we can add it to our mapping table. (cal_component_get_first_alarm): Removed function. (cal_component_get_next_alarm): Removed function. (cal_component_get_alarm_uids): New function. (cal_component_get_alarm): New function. svn path=/trunk/; revision=6713 --- calendar/cal-util/cal-component.h | 4 ++-- 1 file changed, 2 insertions(+), 2 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 32c3449b55..eb4b129f17 100644 --- a/calendar/cal-util/cal-component.h +++ b/calendar/cal-util/cal-component.h @@ -295,8 +295,8 @@ typedef struct { } CalComponentAlarmTrigger; gboolean cal_component_has_alarms (CalComponent *comp); -CalComponentAlarm *cal_component_get_first_alarm (CalComponent *comp); -CalComponentAlarm *cal_component_get_next_alarm (CalComponent *comp); +GList *cal_component_get_alarm_uids (CalComponent *comp); +CalComponentAlarm *cal_component_get_alarm (CalComponent *comp, const char *auid); void cal_component_alarm_free (CalComponentAlarm *alarm); -- cgit v1.2.3