diff options
author | Federico Mena Quintero <federico@helixcode.com> | 2000-07-15 08:56:01 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2000-07-15 08:56:01 +0800 |
commit | fa82ca2af9a36c7ff4f9589b938291b38b117c8e (patch) | |
tree | 61219e0c277e22d817c2c8624cf39f3f8e6873d8 /calendar/cal-util/cal-component.h | |
parent | b443bfde5cb76c9d4a49abdc694729c217670169 (diff) | |
download | gsoc2013-evolution-fa82ca2af9a36c7ff4f9589b938291b38b117c8e.tar.gz gsoc2013-evolution-fa82ca2af9a36c7ff4f9589b938291b38b117c8e.tar.zst gsoc2013-evolution-fa82ca2af9a36c7ff4f9589b938291b38b117c8e.zip |
New internal represntation for alarm components. We really don't map them
2000-07-14 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (CalComponentAlarm): New internal
represntation for alarm components. We really don't map them to a
CalComponent because it is more convenient to handle them as
"child" structures.
(make_alarm): New function to create a CalComponentAlarm from an
icalcomponent representing a VALARM.
(scan_alarm_property): New function to scan a property from an
alarm component. We support ACTION.
(cal_component_get_first_alarm): New function to start an iterator
over the alarms in a calendar component.
(cal_component_alarm_get_action): New function.
(cal_component_alarm_set_action): New function.
svn path=/trunk/; revision=4173
Diffstat (limited to 'calendar/cal-util/cal-component.h')
-rw-r--r-- | calendar/cal-util/cal-component.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/calendar/cal-util/cal-component.h b/calendar/cal-util/cal-component.h index d29fcc48c5..d226940586 100644 --- a/calendar/cal-util/cal-component.h +++ b/calendar/cal-util/cal-component.h @@ -84,6 +84,7 @@ typedef enum { CAL_COMPONENT_TRANSP_UNKNOWN } CalComponentTransparency; +typedef struct _CalComponentAlarm CalComponentAlarm; typedef struct _CalComponent CalComponent; typedef struct _CalComponentClass CalComponentClass; @@ -99,6 +100,8 @@ struct _CalComponentClass { GtkObjectClass parent_class; }; +/* Calendar component */ + GtkType cal_component_get_type (void); char *cal_component_gen_uid (void); @@ -168,6 +171,25 @@ void cal_component_set_transparency (CalComponent *comp, CalComponentTransparenc void cal_component_get_url (CalComponent *comp, const char **url); void cal_component_set_url (CalComponent *comp, const char *url); +/* Alarms */ + +typedef enum { + CAL_COMPONENT_ALARM_NONE, + CAL_COMPONENT_ALARM_AUDIO, + CAL_COMPONENT_ALARM_DISPLAY, + CAL_COMPONENT_ALARM_EMAIL, + CAL_COMPONENT_ALARM_PROCEDURE, + CAL_COMPONENT_ALARM_UNKNOWN +} CalComponentAlarmAction; + +CalComponentAlarm *cal_component_get_first_alarm (CalComponent *comp); +CalComponentAlarm *cal_component_get_next_alarm (CalComponent *comp); + +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); + END_GNOME_DECLS |