icalvcal.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*======================================================================
  2. FILE: icalvcal.h
  3. CREATOR: eric 25 May 00
  4. (C) COPYRIGHT 2000, Eric Busboom <eric@softwarestudio.org>
  5. http://www.softwarestudio.org
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of either:
  8. The LGPL as published by the Free Software Foundation, version
  9. 2.1, available at: http://www.gnu.org/licenses/lgpl-2.1.html
  10. Or:
  11. The Mozilla Public License Version 1.0. You may obtain a copy of
  12. the License at http://www.mozilla.org/MPL/
  13. ======================================================================*/
  14. #ifndef ICALVCAL_H
  15. #define ICALVCAL_H
  16. #include "libical_vcal_export.h"
  17. #include "vobject.h"
  18. #include "icalcomponent.h"
  19. /* These are used as default values if the values are missing in the vCalendar
  20. file. Gnome Calendar, for example, does not save the URL of the audio alarm,
  21. so we have to add a value here to make a valid iCalendar object. */
  22. typedef struct _icalvcal_defaults icalvcal_defaults;
  23. struct _icalvcal_defaults
  24. {
  25. char *alarm_audio_url;
  26. char *alarm_audio_fmttype;
  27. char *alarm_description;
  28. };
  29. /* Convert a vObject into an icalcomponent */
  30. LIBICAL_VCAL_EXPORT icalcomponent *icalvcal_convert(VObject *object);
  31. LIBICAL_VCAL_EXPORT icalcomponent *icalvcal_convert_with_defaults(VObject *object,
  32. icalvcal_defaults * defaults);
  33. #endif /* !ICALVCAL_H */