From 71cd8403b210d4eda9ba80f4a47a43b5def7f769 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 12 Jul 2000 01:02:36 +0000 Subject: Handle the COMPLETED property. (free_icalcomponent): Ditto. 2000-07-11 Federico Mena Quintero * cal-util/cal-component.c (scan_property): Handle the COMPLETED property. (free_icalcomponent): Ditto. (cal_component_get_completed): Ditto. (cal_component_set_completed): Ditto. (scan_property): Handle the TRANSPARENCY property. (free_icalcomponent): Ditto. (cal_component_get_transparency): Ditto. (cal_component_set_transparency): Ditto. (scan_property): Handle the URL property. (free_icalcomponent): Ditto. (cal_component_get_url): Ditto. (cal_component_set_url): Ditto. svn path=/trunk/; revision=4101 --- calendar/cal-util/cal-component.h | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) (limited to 'calendar/cal-util/cal-component.h') diff --git a/calendar/cal-util/cal-component.h b/calendar/cal-util/cal-component.h index d02b3efae7..d29fcc48c5 100644 --- a/calendar/cal-util/cal-component.h +++ b/calendar/cal-util/cal-component.h @@ -61,6 +61,14 @@ typedef enum { CAL_COMPONENT_CLASS_UNKNOWN } CalComponentClassification; +typedef struct { + /* Actual date/time value */ + struct icaltimetype *value; + + /* Timezone ID */ + const char *tzid; +} CalComponentDateTime; + typedef struct { /* Description string */ const char *value; @@ -69,13 +77,13 @@ typedef struct { const char *altrep; } CalComponentText; -typedef struct { - /* Actual date/time value */ - struct icaltimetype *value; +typedef enum { + CAL_COMPONENT_TRANSP_NONE, + CAL_COMPONENT_TRANSP_TRANSPARENT, + CAL_COMPONENT_TRANSP_OPAQUE, + CAL_COMPONENT_TRANSP_UNKNOWN +} CalComponentTransparency; - /* Timezone ID */ - const char *tzid; -} CalComponentDateTime; typedef struct _CalComponent CalComponent; typedef struct _CalComponentClass CalComponentClass; @@ -121,6 +129,9 @@ void cal_component_set_comment_list (CalComponent *comp, GSList *text_list); void cal_component_free_icaltimetype (struct icaltimetype *t); +void cal_component_get_completed (CalComponent *comp, struct icaltimetype **t); +void cal_component_set_completed (CalComponent *comp, struct icaltimetype *t); + void cal_component_get_created (CalComponent *comp, struct icaltimetype **t); void cal_component_set_created (CalComponent *comp, struct icaltimetype *t); @@ -151,6 +162,12 @@ void cal_component_free_sequence (int *sequence); void cal_component_get_summary (CalComponent *comp, CalComponentText *summary); void cal_component_set_summary (CalComponent *comp, CalComponentText *summary); +void cal_component_get_transparency (CalComponent *comp, CalComponentTransparency *transp); +void cal_component_set_transparency (CalComponent *comp, CalComponentTransparency transp); + +void cal_component_get_url (CalComponent *comp, const char **url); +void cal_component_set_url (CalComponent *comp, const char *url); + END_GNOME_DECLS -- cgit