diff options
author | Federico Mena Quintero <federico@ximian.com> | 2001-07-03 05:46:36 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2001-07-03 05:46:36 +0800 |
commit | 07dacea3edab82eecc1cd487c493edc0ca65da6a (patch) | |
tree | fb5c6766a56b9c217a7592c016ffa9f0b6b321eb /calendar/cal-util/cal-component.h | |
parent | 9550352fc56974d889b7e3a5934fcf93985349fc (diff) | |
download | gsoc2013-evolution-07dacea3edab82eecc1cd487c493edc0ca65da6a.tar.gz gsoc2013-evolution-07dacea3edab82eecc1cd487c493edc0ca65da6a.tar.zst gsoc2013-evolution-07dacea3edab82eecc1cd487c493edc0ca65da6a.zip |
Support for repeat/duration properties in alarm components.
2001-07-02 Federico Mena Quintero <federico@ximian.com>
Support for repeat/duration properties in alarm components.
* cal-util/cal-component.h (CalAlarmRepeat): New structure that
pairs the repeat/duration values of an alarm component, which must
be set both together or not set at all.
* cal-util/cal-component.c (CalComponentAlarm): Added fields for
the repeat and duration properties.
(scan_alarm_property): Scan the DURATION and REPEAT properties.
(make_alarm): Nullify/initialize all the fields in the alarm.
(cal_component_alarm_get_repeat): New function.
(cal_component_alarm_set_repeat): New function.
* gui/dialogs/alarm-page.glade: Changed the label of display
alarms from "Show a dialog" to "Display a message".
svn path=/trunk/; revision=10706
Diffstat (limited to 'calendar/cal-util/cal-component.h')
-rw-r--r-- | calendar/cal-util/cal-component.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/calendar/cal-util/cal-component.h b/calendar/cal-util/cal-component.h index c8f21963b4..54f9c03a33 100644 --- a/calendar/cal-util/cal-component.h +++ b/calendar/cal-util/cal-component.h @@ -406,6 +406,14 @@ typedef struct { } u; } CalAlarmTrigger; +typedef struct { + /* Number of extra repetitions, zero for none */ + int repetitions; + + /* Interval between repetitions */ + struct icaldurationtype duration; +} CalAlarmRepeat; + gboolean cal_component_has_alarms (CalComponent *comp); void cal_component_add_alarm (CalComponent *comp, CalComponentAlarm *alarm); void cal_component_remove_alarm (CalComponent *comp, const char *auid); @@ -427,6 +435,9 @@ void cal_component_alarm_set_action (CalComponentAlarm *alarm, CalAlarmAction ac void cal_component_alarm_get_trigger (CalComponentAlarm *alarm, CalAlarmTrigger *trigger); void cal_component_alarm_set_trigger (CalComponentAlarm *alarm, CalAlarmTrigger trigger); +void cal_component_alarm_get_repeat (CalComponentAlarm *alarm, CalAlarmRepeat *repeat); +void cal_component_alarm_set_repeat (CalComponentAlarm *alarm, CalAlarmRepeat repeat); + void cal_component_alarm_free (CalComponentAlarm *alarm); |