aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/cal-component.h
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-11-30 00:09:20 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-11-30 00:09:20 +0800
commit101b0ed2c8eeae2a97a3a907d97c479adfd19df3 (patch)
treeb2d99cdd05a46c5befc4594ec238f2adaf52e8a5 /calendar/cal-util/cal-component.h
parent571a286c62f3cfac1b5c14fefb23d9fed2ed5c01 (diff)
downloadgsoc2013-evolution-101b0ed2c8eeae2a97a3a907d97c479adfd19df3.tar.gz
gsoc2013-evolution-101b0ed2c8eeae2a97a3a907d97c479adfd19df3.tar.zst
gsoc2013-evolution-101b0ed2c8eeae2a97a3a907d97c479adfd19df3.zip
Upgrade of the alarm framework. We now access alarms by a unique
2000-11-28 Federico Mena Quintero <federico@helixcode.com> 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
Diffstat (limited to 'calendar/cal-util/cal-component.h')
-rw-r--r--calendar/cal-util/cal-component.h4
1 files changed, 2 insertions, 2 deletions
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);