bump to 1.0.0 and clean up spec file
[platform/upstream/libical.git] / src / libicalvcal / icalvcal.h
1 /* -*- Mode: C -*-*/
2 /*======================================================================
3  FILE: icalvcal.h
4  CREATOR: eric 25 May 00
5
6  
7
8  (C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
9
10  This program is free software; you can redistribute it and/or modify
11  it under the terms of either: 
12
13     The LGPL as published by the Free Software Foundation, version
14     2.1, available at: http://www.fsf.org/copyleft/lesser.html
15
16   Or:
17
18     The Mozilla Public License Version 1.0. You may obtain a copy of
19     the License at http://www.mozilla.org/MPL/
20
21   The original code is icalvcal.h
22
23
24 ======================================================================*/
25
26 #ifndef ICALVCAL_H
27 #define ICALVCAL_H
28
29 #include <libical/ical.h>
30 #include "vcc.h"
31
32 /* These are used as default values if the values are missing in the vCalendar
33    file. Gnome Calendar, for example, does not save the URL of the audio alarm,
34    so we have to add a value here to make a valid iCalendar object. */
35 typedef struct _icalvcal_defaults icalvcal_defaults;
36 struct _icalvcal_defaults {
37     char *alarm_audio_url;
38     char *alarm_audio_fmttype;
39     char *alarm_description;
40 };
41
42
43 /* Convert a vObject into an icalcomponent */
44
45 icalcomponent* icalvcal_convert(VObject *object);
46
47
48 icalcomponent* icalvcal_convert_with_defaults (VObject *object,
49                                                icalvcal_defaults *defaults);
50
51 #endif /* !ICALVCAL_H */
52
53
54