aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/cal-component.h
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-01-19 22:57:09 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-01-19 22:57:09 +0800
commit3532a74349645ca733bafe1417822ba2bfb9bd26 (patch)
treee53d13bb4fe4f66d8d514f3ab8b3da2ae151889d /calendar/cal-util/cal-component.h
parent0b808ca4dce7445007567a9b8dedc2246ca134f5 (diff)
downloadgsoc2013-evolution-3532a74349645ca733bafe1417822ba2bfb9bd26.tar.gz
gsoc2013-evolution-3532a74349645ca733bafe1417822ba2bfb9bd26.tar.zst
gsoc2013-evolution-3532a74349645ca733bafe1417822ba2bfb9bd26.zip
create a new cal component alarm (cal_component_add_alarm): add alarm to
2001-01-19 JP Rosevear <jpr@ximian.com> * cal-util/cal-component.c (cal_component_alarm_new): create a new cal component alarm (cal_component_add_alarm): add alarm to the cal component (cal_component_remove_alarm): remove alarm from the cal component (remove_alarm): remove alarm from hash * cal-util/cal-component.h: new protos * conduits/calendar/calendar-conduit.c (comp_from_remote_record): add alarm information, still needs to be hacked to replace an already existing alarm. questions abound about the heuristic for doing this. 2001-01-17 JP Rosevear <jpr@ximian.com> * README: Update package requirements svn path=/trunk/; revision=7647
Diffstat (limited to 'calendar/cal-util/cal-component.h')
-rw-r--r--calendar/cal-util/cal-component.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/calendar/cal-util/cal-component.h b/calendar/cal-util/cal-component.h
index b7d8b602e9..97b518dfe2 100644
--- a/calendar/cal-util/cal-component.h
+++ b/calendar/cal-util/cal-component.h
@@ -327,13 +327,17 @@ typedef struct {
} CalAlarmTrigger;
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);
+
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);
-
void cal_component_alarms_free (CalComponentAlarms *alarms);
+/* CalComponentAlarms */
+CalComponentAlarm *cal_component_alarm_new (void);
+
const char *cal_component_alarm_get_uid (CalComponentAlarm *alarm);
void cal_component_alarm_get_action (CalComponentAlarm *alarm, CalAlarmAction *action);
@@ -342,6 +346,8 @@ 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_free (CalComponentAlarm *alarm);
+