Back to index

lightning-sunbird  0.9+nobinonly
icalderivedparameter.h
Go to the documentation of this file.
00001 /* -*- Mode: C -*- */
00002 /*======================================================================
00003   FILE: icalparam.h
00004   CREATOR: eric 20 March 1999
00005 
00006 
00007   $Id: icalderivedparameter.h,v 1.5 2002/09/01 19:12:31 gray-john Exp $
00008   $Locker:  $
00009 
00010   
00011 
00012  (C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
00013 
00014  This program is free software; you can redistribute it and/or modify
00015  it under the terms of either: 
00016 
00017     The LGPL as published by the Free Software Foundation, version
00018     2.1, available at: http://www.fsf.org/copyleft/lesser.html
00019 
00020   Or:
00021 
00022     The Mozilla Public License Version 1.0. You may obtain a copy of
00023     the License at http://www.mozilla.org/MPL/
00024 
00025   The original code is icalparam.h
00026 
00027   ======================================================================*/
00028 
00029 #ifndef ICALDERIVEDPARAMETER_H
00030 #define ICALDERIVEDPARAMETER_H
00031 
00032 
00033 typedef struct icalparameter_impl icalparameter;
00034 
00035 const char* icalparameter_enum_to_string(int e);
00036 int icalparameter_string_to_enum(const char* str); 
00037 
00038 typedef enum icalparameter_kind {
00039     ICAL_ANY_PARAMETER = 0,
00040     ICAL_ALTREP_PARAMETER, 
00041     ICAL_CN_PARAMETER, 
00042     ICAL_CUTYPE_PARAMETER, 
00043     ICAL_DELEGATEDFROM_PARAMETER, 
00044     ICAL_DELEGATEDTO_PARAMETER, 
00045     ICAL_DIR_PARAMETER, 
00046     ICAL_ENCODING_PARAMETER, 
00047     ICAL_FBTYPE_PARAMETER, 
00048     ICAL_FMTTYPE_PARAMETER, 
00049     ICAL_LANGUAGE_PARAMETER, 
00050     ICAL_MEMBER_PARAMETER, 
00051     ICAL_PARTSTAT_PARAMETER, 
00052     ICAL_RANGE_PARAMETER, 
00053     ICAL_RELATED_PARAMETER, 
00054     ICAL_RELTYPE_PARAMETER, 
00055     ICAL_ROLE_PARAMETER, 
00056     ICAL_RSVP_PARAMETER, 
00057     ICAL_SENTBY_PARAMETER, 
00058     ICAL_TZID_PARAMETER, 
00059     ICAL_VALUE_PARAMETER, 
00060     ICAL_X_PARAMETER, 
00061     ICAL_XLICCOMPARETYPE_PARAMETER, 
00062     ICAL_XLICERRORTYPE_PARAMETER, 
00063     ICAL_NO_PARAMETER
00064 } icalparameter_kind;
00065 
00066 #define ICALPARAMETER_FIRST_ENUM 20000
00067 
00068 typedef enum icalparameter_cutype {
00069     ICAL_CUTYPE_X = 20000,
00070     ICAL_CUTYPE_INDIVIDUAL = 20001,
00071     ICAL_CUTYPE_GROUP = 20002,
00072     ICAL_CUTYPE_RESOURCE = 20003,
00073     ICAL_CUTYPE_ROOM = 20004,
00074     ICAL_CUTYPE_UNKNOWN = 20005,
00075     ICAL_CUTYPE_NONE = 20006
00076 } icalparameter_cutype;
00077 
00078 typedef enum icalparameter_encoding {
00079     ICAL_ENCODING_X = 20007,
00080     ICAL_ENCODING_8BIT = 20008,
00081     ICAL_ENCODING_BASE64 = 20009,
00082     ICAL_ENCODING_NONE = 20010
00083 } icalparameter_encoding;
00084 
00085 typedef enum icalparameter_fbtype {
00086     ICAL_FBTYPE_X = 20011,
00087     ICAL_FBTYPE_FREE = 20012,
00088     ICAL_FBTYPE_BUSY = 20013,
00089     ICAL_FBTYPE_BUSYUNAVAILABLE = 20014,
00090     ICAL_FBTYPE_BUSYTENTATIVE = 20015,
00091     ICAL_FBTYPE_NONE = 20016
00092 } icalparameter_fbtype;
00093 
00094 typedef enum icalparameter_partstat {
00095     ICAL_PARTSTAT_X = 20017,
00096     ICAL_PARTSTAT_NEEDSACTION = 20018,
00097     ICAL_PARTSTAT_ACCEPTED = 20019,
00098     ICAL_PARTSTAT_DECLINED = 20020,
00099     ICAL_PARTSTAT_TENTATIVE = 20021,
00100     ICAL_PARTSTAT_DELEGATED = 20022,
00101     ICAL_PARTSTAT_COMPLETED = 20023,
00102     ICAL_PARTSTAT_INPROCESS = 20024,
00103     ICAL_PARTSTAT_NONE = 20025
00104 } icalparameter_partstat;
00105 
00106 typedef enum icalparameter_range {
00107     ICAL_RANGE_X = 20026,
00108     ICAL_RANGE_THISANDPRIOR = 20027,
00109     ICAL_RANGE_THISANDFUTURE = 20028,
00110     ICAL_RANGE_NONE = 20029
00111 } icalparameter_range;
00112 
00113 typedef enum icalparameter_related {
00114     ICAL_RELATED_X = 20030,
00115     ICAL_RELATED_START = 20031,
00116     ICAL_RELATED_END = 20032,
00117     ICAL_RELATED_NONE = 20033
00118 } icalparameter_related;
00119 
00120 typedef enum icalparameter_reltype {
00121     ICAL_RELTYPE_X = 20034,
00122     ICAL_RELTYPE_PARENT = 20035,
00123     ICAL_RELTYPE_CHILD = 20036,
00124     ICAL_RELTYPE_SIBLING = 20037,
00125     ICAL_RELTYPE_NONE = 20038
00126 } icalparameter_reltype;
00127 
00128 typedef enum icalparameter_role {
00129     ICAL_ROLE_X = 20039,
00130     ICAL_ROLE_CHAIR = 20040,
00131     ICAL_ROLE_REQPARTICIPANT = 20041,
00132     ICAL_ROLE_OPTPARTICIPANT = 20042,
00133     ICAL_ROLE_NONPARTICIPANT = 20043,
00134     ICAL_ROLE_NONE = 20044
00135 } icalparameter_role;
00136 
00137 typedef enum icalparameter_rsvp {
00138     ICAL_RSVP_X = 20045,
00139     ICAL_RSVP_TRUE = 20046,
00140     ICAL_RSVP_FALSE = 20047,
00141     ICAL_RSVP_NONE = 20048
00142 } icalparameter_rsvp;
00143 
00144 typedef enum icalparameter_value {
00145     ICAL_VALUE_X = 20049,
00146     ICAL_VALUE_BINARY = 20050,
00147     ICAL_VALUE_BOOLEAN = 20051,
00148     ICAL_VALUE_DATE = 20052,
00149     ICAL_VALUE_DURATION = 20053,
00150     ICAL_VALUE_FLOAT = 20054,
00151     ICAL_VALUE_INTEGER = 20055,
00152     ICAL_VALUE_PERIOD = 20056,
00153     ICAL_VALUE_RECUR = 20057,
00154     ICAL_VALUE_TEXT = 20058,
00155     ICAL_VALUE_URI = 20059,
00156     ICAL_VALUE_ERROR = 20060,
00157     ICAL_VALUE_DATETIME = 20061,
00158     ICAL_VALUE_UTCOFFSET = 20062,
00159     ICAL_VALUE_CALADDRESS = 20063,
00160     ICAL_VALUE_NONE = 20064
00161 } icalparameter_value;
00162 
00163 typedef enum icalparameter_xliccomparetype {
00164     ICAL_XLICCOMPARETYPE_X = 20065,
00165     ICAL_XLICCOMPARETYPE_EQUAL = 20066,
00166     ICAL_XLICCOMPARETYPE_NOTEQUAL = 20067,
00167     ICAL_XLICCOMPARETYPE_LESS = 20068,
00168     ICAL_XLICCOMPARETYPE_GREATER = 20069,
00169     ICAL_XLICCOMPARETYPE_LESSEQUAL = 20070,
00170     ICAL_XLICCOMPARETYPE_GREATEREQUAL = 20071,
00171     ICAL_XLICCOMPARETYPE_REGEX = 20072,
00172     ICAL_XLICCOMPARETYPE_ISNULL = 20073,
00173     ICAL_XLICCOMPARETYPE_ISNOTNULL = 20074,
00174     ICAL_XLICCOMPARETYPE_NONE = 20075
00175 } icalparameter_xliccomparetype;
00176 
00177 typedef enum icalparameter_xlicerrortype {
00178     ICAL_XLICERRORTYPE_X = 20076,
00179     ICAL_XLICERRORTYPE_COMPONENTPARSEERROR = 20077,
00180     ICAL_XLICERRORTYPE_PROPERTYPARSEERROR = 20078,
00181     ICAL_XLICERRORTYPE_PARAMETERNAMEPARSEERROR = 20079,
00182     ICAL_XLICERRORTYPE_PARAMETERVALUEPARSEERROR = 20080,
00183     ICAL_XLICERRORTYPE_VALUEPARSEERROR = 20081,
00184     ICAL_XLICERRORTYPE_INVALIDITIP = 20082,
00185     ICAL_XLICERRORTYPE_UNKNOWNVCALPROPERROR = 20083,
00186     ICAL_XLICERRORTYPE_MIMEPARSEERROR = 20084,
00187     ICAL_XLICERRORTYPE_VCALPROPPARSEERROR = 20085,
00188     ICAL_XLICERRORTYPE_NONE = 20086
00189 } icalparameter_xlicerrortype;
00190 
00191 #define ICALPARAMETER_LAST_ENUM 20087
00192 
00193 /* DELEGATED-FROM */
00194 icalparameter* icalparameter_new_delegatedfrom(const char* v);
00195 const char* icalparameter_get_delegatedfrom(const icalparameter* value);
00196 void icalparameter_set_delegatedfrom(icalparameter* value, const char* v);
00197 
00198 /* RELATED */
00199 icalparameter* icalparameter_new_related(icalparameter_related v);
00200 icalparameter_related icalparameter_get_related(const icalparameter* value);
00201 void icalparameter_set_related(icalparameter* value, icalparameter_related v);
00202 
00203 /* SENT-BY */
00204 icalparameter* icalparameter_new_sentby(const char* v);
00205 const char* icalparameter_get_sentby(const icalparameter* value);
00206 void icalparameter_set_sentby(icalparameter* value, const char* v);
00207 
00208 /* LANGUAGE */
00209 icalparameter* icalparameter_new_language(const char* v);
00210 const char* icalparameter_get_language(const icalparameter* value);
00211 void icalparameter_set_language(icalparameter* value, const char* v);
00212 
00213 /* RELTYPE */
00214 icalparameter* icalparameter_new_reltype(icalparameter_reltype v);
00215 icalparameter_reltype icalparameter_get_reltype(const icalparameter* value);
00216 void icalparameter_set_reltype(icalparameter* value, icalparameter_reltype v);
00217 
00218 /* ENCODING */
00219 icalparameter* icalparameter_new_encoding(icalparameter_encoding v);
00220 icalparameter_encoding icalparameter_get_encoding(const icalparameter* value);
00221 void icalparameter_set_encoding(icalparameter* value, icalparameter_encoding v);
00222 
00223 /* ALTREP */
00224 icalparameter* icalparameter_new_altrep(const char* v);
00225 const char* icalparameter_get_altrep(const icalparameter* value);
00226 void icalparameter_set_altrep(icalparameter* value, const char* v);
00227 
00228 /* FMTTYPE */
00229 icalparameter* icalparameter_new_fmttype(const char* v);
00230 const char* icalparameter_get_fmttype(const icalparameter* value);
00231 void icalparameter_set_fmttype(icalparameter* value, const char* v);
00232 
00233 /* FBTYPE */
00234 icalparameter* icalparameter_new_fbtype(icalparameter_fbtype v);
00235 icalparameter_fbtype icalparameter_get_fbtype(const icalparameter* value);
00236 void icalparameter_set_fbtype(icalparameter* value, icalparameter_fbtype v);
00237 
00238 /* RSVP */
00239 icalparameter* icalparameter_new_rsvp(icalparameter_rsvp v);
00240 icalparameter_rsvp icalparameter_get_rsvp(const icalparameter* value);
00241 void icalparameter_set_rsvp(icalparameter* value, icalparameter_rsvp v);
00242 
00243 /* RANGE */
00244 icalparameter* icalparameter_new_range(icalparameter_range v);
00245 icalparameter_range icalparameter_get_range(const icalparameter* value);
00246 void icalparameter_set_range(icalparameter* value, icalparameter_range v);
00247 
00248 /* DELEGATED-TO */
00249 icalparameter* icalparameter_new_delegatedto(const char* v);
00250 const char* icalparameter_get_delegatedto(const icalparameter* value);
00251 void icalparameter_set_delegatedto(icalparameter* value, const char* v);
00252 
00253 /* CN */
00254 icalparameter* icalparameter_new_cn(const char* v);
00255 const char* icalparameter_get_cn(const icalparameter* value);
00256 void icalparameter_set_cn(icalparameter* value, const char* v);
00257 
00258 /* ROLE */
00259 icalparameter* icalparameter_new_role(icalparameter_role v);
00260 icalparameter_role icalparameter_get_role(const icalparameter* value);
00261 void icalparameter_set_role(icalparameter* value, icalparameter_role v);
00262 
00263 /* X-LIC-COMPARETYPE */
00264 icalparameter* icalparameter_new_xliccomparetype(icalparameter_xliccomparetype v);
00265 icalparameter_xliccomparetype icalparameter_get_xliccomparetype(const icalparameter* value);
00266 void icalparameter_set_xliccomparetype(icalparameter* value, icalparameter_xliccomparetype v);
00267 
00268 /* PARTSTAT */
00269 icalparameter* icalparameter_new_partstat(icalparameter_partstat v);
00270 icalparameter_partstat icalparameter_get_partstat(const icalparameter* value);
00271 void icalparameter_set_partstat(icalparameter* value, icalparameter_partstat v);
00272 
00273 /* X-LIC-ERRORTYPE */
00274 icalparameter* icalparameter_new_xlicerrortype(icalparameter_xlicerrortype v);
00275 icalparameter_xlicerrortype icalparameter_get_xlicerrortype(const icalparameter* value);
00276 void icalparameter_set_xlicerrortype(icalparameter* value, icalparameter_xlicerrortype v);
00277 
00278 /* MEMBER */
00279 icalparameter* icalparameter_new_member(const char* v);
00280 const char* icalparameter_get_member(const icalparameter* value);
00281 void icalparameter_set_member(icalparameter* value, const char* v);
00282 
00283 /* X */
00284 icalparameter* icalparameter_new_x(const char* v);
00285 const char* icalparameter_get_x(const icalparameter* value);
00286 void icalparameter_set_x(icalparameter* value, const char* v);
00287 
00288 /* CUTYPE */
00289 icalparameter* icalparameter_new_cutype(icalparameter_cutype v);
00290 icalparameter_cutype icalparameter_get_cutype(const icalparameter* value);
00291 void icalparameter_set_cutype(icalparameter* value, icalparameter_cutype v);
00292 
00293 /* TZID */
00294 icalparameter* icalparameter_new_tzid(const char* v);
00295 const char* icalparameter_get_tzid(const icalparameter* value);
00296 void icalparameter_set_tzid(icalparameter* value, const char* v);
00297 
00298 /* VALUE */
00299 icalparameter* icalparameter_new_value(icalparameter_value v);
00300 icalparameter_value icalparameter_get_value(const icalparameter* value);
00301 void icalparameter_set_value(icalparameter* value, icalparameter_value v);
00302 
00303 /* DIR */
00304 icalparameter* icalparameter_new_dir(const char* v);
00305 const char* icalparameter_get_dir(const icalparameter* value);
00306 void icalparameter_set_dir(icalparameter* value, const char* v);
00307 
00308 #endif /*ICALPARAMETER_H*/
00309 
00310 /* Everything below this line is machine generated. Do not edit. */