From d64e7cf12f73a73a0c5b99806fd695d428bea72f Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Wed, 6 Feb 2002 23:16:12 +0000 Subject: major changes to support RRULE/EXRULE, VALARMS and several other 2002-02-06 Damon Chaplin * src/libicalvcal/icalvcal.c: major changes to support RRULE/EXRULE, VALARMS and several other properties. * src/libicalvcal/icalvcal.h (icalvcal_convert_with_defaults): new function to pass defaults for a few values into the importer. These are used when the vCalendar file doesn't provide the property but it is required in iCalendar. * src/libicalvcal/vcc.y: support multi-valued properties, by appending new ones and separating by ';'. This was pinched from our changes to evolution/libversit/vcc.y. * src/libicalvcal/Makefile.am: renamed library to libicalvcal-evolution Don't install the headers. * design-data/parameters.csv: added new error for error's parsing vCalendar properties. svn path=/trunk/; revision=15582 --- libical/src/libicalvcal/icalvcal.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'libical/src/libicalvcal/icalvcal.h') diff --git a/libical/src/libicalvcal/icalvcal.h b/libical/src/libicalvcal/icalvcal.h index f2316c2d0f..96e94b9f2e 100644 --- a/libical/src/libicalvcal/icalvcal.h +++ b/libical/src/libicalvcal/icalvcal.h @@ -29,10 +29,25 @@ #include "ical.h" #include "vcc.h" +/* These are used as default values if the values are missing in the vCalendar + file. Gnome Calendar, for example, does not save the URL of the audio alarm, + so we have to add a value here to make a valid iCalendar object. */ +typedef struct _icalvcal_defaults icalvcal_defaults; +struct _icalvcal_defaults { + char *alarm_audio_url; + char *alarm_audio_fmttype; + char *alarm_description; +}; + + /* Convert a vObject into an icalcomponent */ icalcomponent* icalvcal_convert(VObject *object); +icalcomponent* icalvcal_convert_with_defaults (VObject *object, + icalvcal_defaults *defaults); + + #endif /* !ICALVCAL_H */ -- cgit v1.2.3