diff options
author | Federico Mena Quintero <federico@helixcode.com> | 2000-07-19 08:26:37 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2000-07-19 08:26:37 +0800 |
commit | 0557f1946751d9fc7f4c894fa46b7fd791db0c73 (patch) | |
tree | 85c3a2fb12bc7643421d4aba971d86c55807aebd /calendar/cal-util/cal-component.h | |
parent | 647d16e85b27fda1143b79b34252519c8b249a84 (diff) | |
download | gsoc2013-evolution-0557f1946751d9fc7f4c894fa46b7fd791db0c73.tar.gz gsoc2013-evolution-0557f1946751d9fc7f4c894fa46b7fd791db0c73.tar.zst gsoc2013-evolution-0557f1946751d9fc7f4c894fa46b7fd791db0c73.zip |
Free the icalcomponent if this is an unattached alarm.
2000-07-18 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (cal_component_alarm_free): Free the
icalcomponent if this is an unattached alarm.
(scan_alarm_property): Handle the TRIGGER property.
(cal_component_alarm_get_trigger): Ditto. Royal pain.
(cal_component_alarm_set_trigger): Ditto. Less pain.
svn path=/trunk/; revision=4216
Diffstat (limited to 'calendar/cal-util/cal-component.h')
-rw-r--r-- | calendar/cal-util/cal-component.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/calendar/cal-util/cal-component.h b/calendar/cal-util/cal-component.h index d226940586..664599f9f6 100644 --- a/calendar/cal-util/cal-component.h +++ b/calendar/cal-util/cal-component.h @@ -182,6 +182,29 @@ typedef enum { CAL_COMPONENT_ALARM_UNKNOWN } CalComponentAlarmAction; +typedef enum { + CAL_COMPONENT_ALARM_TRIGGER_RELATIVE, + CAL_COMPONENT_ALARM_TRIGGER_ABSOLUTE +} CalComponentAlarmTriggerType; + +typedef enum { + CAL_COMPONENT_ALARM_TRIGGER_RELATED_START, + CAL_COMPONENT_ALARM_TRIGGER_RELATED_END +} CalComponentAlarmTriggerRelated; + +typedef struct { + CalComponentAlarmTriggerType type; + + union { + struct { + struct icaldurationtype duration; + CalComponentAlarmTriggerRelated related; + } relative; + + struct icaltimetype absolute; + } u; +} CalComponentAlarmTrigger; + CalComponentAlarm *cal_component_get_first_alarm (CalComponent *comp); CalComponentAlarm *cal_component_get_next_alarm (CalComponent *comp); @@ -190,6 +213,10 @@ void cal_component_alarm_free (CalComponentAlarm *alarm); void cal_component_alarm_get_action (CalComponentAlarm *alarm, CalComponentAlarmAction *action); void cal_component_alarm_set_action (CalComponentAlarm *alarm, CalComponentAlarmAction action); +void cal_component_alarm_get_trigger (CalComponentAlarm *alarm, CalComponentAlarmTrigger **trigger); +void cal_component_alarm_set_trigger (CalComponentAlarm *alarm, CalComponentAlarmTrigger *trigger); +void cal_component_alarm_free_trigger (CalComponentAlarmTrigger *trigger); + END_GNOME_DECLS |