diff options
author | Federico Mena Quintero <federico@helixcode.com> | 2000-07-02 21:25:35 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2000-07-02 21:25:35 +0800 |
commit | 514ae3ebe3bc4a35902a6c72b047896c2ef2d6c8 (patch) | |
tree | d5a84cf4822566ecf6771b3ca03701f8fbe398b8 /calendar/cal-util/cal-component.h | |
parent | 4c0c741c6d8ca6fa3b49a541f663f0d2af6a4bff (diff) | |
download | gsoc2013-evolution-514ae3ebe3bc4a35902a6c72b047896c2ef2d6c8.tar.gz gsoc2013-evolution-514ae3ebe3bc4a35902a6c72b047896c2ef2d6c8.tar.zst gsoc2013-evolution-514ae3ebe3bc4a35902a6c72b047896c2ef2d6c8.zip |
Handle date/time and timezone pairs. (scan_property): Handle DTSTART and
2000-07-02 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (scan_datetime): Handle date/time and
timezone pairs.
(scan_property): Handle DTSTART and DTEND.
(cal_component_free_datetime): Ditto.
(get_datetime): Ditto.
(cal_component_get_dtstart): Ditto.
(set_datetime): Ditto.
(cal_component_set_dtstart): Ditto.
(cal_component_get_dtend): Ditto.
(cal_component_set_dtend): Ditto.
(scan_property): Handle DUE date.
(cal_component_get_due): Ditto.
(cal_component_set_due): Ditto.
svn path=/trunk/; revision=3857
Diffstat (limited to 'calendar/cal-util/cal-component.h')
-rw-r--r-- | calendar/cal-util/cal-component.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/calendar/cal-util/cal-component.h b/calendar/cal-util/cal-component.h index e0adcd02a0..d6c84d9db0 100644 --- a/calendar/cal-util/cal-component.h +++ b/calendar/cal-util/cal-component.h @@ -58,7 +58,7 @@ typedef struct { const char *value; /* Alternate representation URI */ - const char *altrep_param; + const char *altrep; } CalComponentPropSummary; typedef struct { @@ -66,9 +66,17 @@ typedef struct { const char *value; /* Alternate representation URI */ - const char *altrep_param; + const char *altrep; } CalComponentDescription; +typedef struct { + /* Actual date/time value */ + struct icaltimetype *value; + + /* Timezone ID */ + const char *tzid; +} CalComponentDateTime; + typedef struct _CalComponent CalComponent; typedef struct _CalComponentClass CalComponentClass; @@ -106,6 +114,17 @@ void cal_component_get_description_list (CalComponent *comp, GSList **desc_list) void cal_component_set_description_list (CalComponent *comp, GSList *desc_list); void cal_component_free_description_list (GSList *desc_list); +void cal_component_free_datetime (CalComponentDateTime *dt); + +void cal_component_get_dtstart (CalComponent *comp, CalComponentDateTime *dt); +void cal_component_set_dtstart (CalComponent *comp, CalComponentDateTime *dt); + +void cal_component_get_dtend (CalComponent *comp, CalComponentDateTime *dt); +void cal_component_set_dtend (CalComponent *comp, CalComponentDateTime *dt); + +void cal_component_get_due (CalComponent *comp, CalComponentDateTime *dt); +void cal_component_set_due (CalComponent *comp, CalComponentDateTime *dt); + END_GNOME_DECLS |