Diffstat (limited to 'libical/src/libical/icalproperty.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libical/src/libical/icalproperty.h | 122 |
1 files changed, 122 insertions, 0 deletions
diff --git a/libical/src/libical/icalproperty.h b/libical/src/libical/icalproperty.h new file mode 100644 index 0000000..e39c6b5 --- a/dev/null +++ b/libical/src/libical/icalproperty.h | |||
@@ -0,0 +1,122 @@ | |||
1 | /* -*- Mode: C -*- */ | ||
2 | /*====================================================================== | ||
3 | FILE: icalproperty.h | ||
4 | CREATOR: eric 20 March 1999 | ||
5 | |||
6 | |||
7 | $Id$ | ||
8 | $Locker$ | ||
9 | |||
10 | |||
11 | |||
12 | (C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org | ||
13 | |||
14 | This program is free software; you can redistribute it and/or modify | ||
15 | it under the terms of either: | ||
16 | |||
17 | The LGPL as published by the Free Software Foundation, version | ||
18 | 2.1, available at: http://www.fsf.org/copyleft/lesser.html | ||
19 | |||
20 | Or: | ||
21 | |||
22 | The Mozilla Public License Version 1.0. You may obtain a copy of | ||
23 | the License at http://www.mozilla.org/MPL/ | ||
24 | |||
25 | The original code is icalparam.h | ||
26 | |||
27 | ======================================================================*/ | ||
28 | |||
29 | |||
30 | #ifndef ICALPROPERTY_H | ||
31 | #define ICALPROPERTY_H | ||
32 | |||
33 | #include <time.h> | ||
34 | |||
35 | #ifdef _WIN32 | ||
36 | #include <stdio.h> /* for printf */ | ||
37 | #include <stdarg.h> /* for va_list, va_start, etc. */ | ||
38 | #endif | ||
39 | |||
40 | #include "icalderivedparameter.h" | ||
41 | |||
42 | #include "icalvalue.h" | ||
43 | #include "icalrecur.h" | ||
44 | |||
45 | /* Actually in icalderivedproperty.h: | ||
46 | typedef void icalproperty; */ | ||
47 | |||
48 | #include "icalderivedproperty.h" /* To get icalproperty_kind enumerations */ | ||
49 | |||
50 | // void icalproperty_add_parameters(struct icalproperty_impl *prop,va_list args); | ||
51 | |||
52 | icalproperty* icalproperty_new(icalproperty_kind kind); | ||
53 | |||
54 | icalproperty* icalproperty_new_clone(icalproperty * prop); | ||
55 | |||
56 | icalproperty* icalproperty_new_from_string(const char* str); | ||
57 | |||
58 | const char* icalproperty_as_ical_string(icalproperty* prop); | ||
59 | |||
60 | void icalproperty_free(icalproperty* prop); | ||
61 | |||
62 | icalproperty_kind icalproperty_isa(icalproperty* property); | ||
63 | int icalproperty_isa_property(void* property); | ||
64 | |||
65 | void icalproperty_add_parameter(icalproperty* prop,icalparameter* parameter); | ||
66 | void icalproperty_set_parameter(icalproperty* prop,icalparameter* parameter); | ||
67 | void icalproperty_set_parameter_from_string(icalproperty* prop, | ||
68 | const char* name, const char* value); | ||
69 | const char* icalproperty_get_parameter_as_string(icalproperty* prop, | ||
70 | const char* name); | ||
71 | |||
72 | void icalproperty_remove_parameter(icalproperty* prop, | ||
73 | icalparameter_kind kind); | ||
74 | |||
75 | int icalproperty_count_parameters(icalproperty* prop); | ||
76 | |||
77 | /* Iterate through the parameters */ | ||
78 | icalparameter* icalproperty_get_first_parameter(icalproperty* prop, | ||
79 | icalparameter_kind kind); | ||
80 | icalparameter* icalproperty_get_next_parameter(icalproperty* prop, | ||
81 | icalparameter_kind kind); | ||
82 | /* Access the value of the property */ | ||
83 | void icalproperty_set_value(icalproperty* prop, icalvalue* value); | ||
84 | void icalproperty_set_value_from_string(icalproperty* prop,const char* value, const char* kind); | ||
85 | |||
86 | icalvalue* icalproperty_get_value(icalproperty* prop); | ||
87 | const char* icalproperty_get_value_as_string(icalproperty* prop); | ||
88 | |||
89 | /* Deal with X properties */ | ||
90 | |||
91 | void icalproperty_set_x_name(icalproperty* prop, const char* name); | ||
92 | const char* icalproperty_get_x_name(icalproperty* prop); | ||
93 | |||
94 | /* Return the name of the property -- the type name converted to a | ||
95 | string, or the value of _get_x_name if the type is and X property */ | ||
96 | const char* icalproperty_get_name (icalproperty* prop); | ||
97 | |||
98 | icalvalue_kind icalparameter_value_to_value_kind(icalparameter_value value); | ||
99 | |||
100 | /* Convert kinds to string and get default value type */ | ||
101 | |||
102 | icalvalue_kind icalproperty_kind_to_value_kind(icalproperty_kind kind); | ||
103 | icalvalue_kind icalproperty_value_kind_to_kind(icalvalue_kind kind); | ||
104 | const char* icalproperty_kind_to_string(icalproperty_kind kind); | ||
105 | icalproperty_kind icalproperty_string_to_kind(const char* string); | ||
106 | |||
107 | icalproperty_method icalproperty_string_to_method(const char* str); | ||
108 | const char* icalproperty_method_to_string(icalproperty_method method); | ||
109 | |||
110 | |||
111 | const char* icalproperty_enum_to_string(int e); | ||
112 | int icalproperty_string_to_enum(const char* str); | ||
113 | |||
114 | const char* icalproperty_status_to_string(icalproperty_status); | ||
115 | icalproperty_status icalproperty_string_to_status(const char* string); | ||
116 | |||
117 | int icalproperty_enum_belongs_to_property(icalproperty_kind kind, int e); | ||
118 | |||
119 | |||
120 | |||
121 | |||
122 | #endif /*ICALPROPERTY_H*/ | ||