Back to index

lightning-sunbird  0.9+nobinonly
icalderivedproperty.c
Go to the documentation of this file.
00001 /* -*- Mode: C -*- */
00002 
00003 /*======================================================================
00004   FILE: icalderivedproperty.c
00005   CREATOR: eric 15 Feb 2001
00006   
00007   $Id: icalderivedproperty.c,v 1.6 2002/09/01 19:12:31 gray-john Exp $
00008 
00009 
00010  (C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
00011 
00012  This program is free software; you can redistribute it and/or modify
00013  it under the terms of either: 
00014 
00015     The LGPL as published by the Free Software Foundation, version
00016     2.1, available at: http://www.fsf.org/copyleft/lesser.html
00017 
00018   Or:
00019 
00020     The Mozilla Public License Version 1.0. You may obtain a copy of
00021     the License at http://www.mozilla.org/MPL/
00022 
00023   The original code is icalproperty.c
00024 
00025 ======================================================================*/
00026 
00027 #ifdef HAVE_CONFIG_H
00028 #include <config.h>
00029 #endif
00030 
00031 #include "icalproperty.h"
00032 #include "icalcomponent.h"
00033 #include "pvl.h"
00034 #include "icalenums.h"
00035 #include "icalerror.h"
00036 #include "icalmemory.h"
00037 #include "icalparser.h"
00038 
00039 #include <string.h> /* For icalmemory_strdup, rindex */
00040 #include <assert.h>
00041 #include <stdlib.h>
00042 #include <errno.h>
00043 #include <stdio.h> /* for printf */
00044 #include <stdarg.h> /* for va_list, va_start, etc. */
00045                                                
00046 struct icalproperty_impl*
00047 icalproperty_new_impl (icalproperty_kind kind);
00048 void icalproperty_add_parameters(struct icalproperty_impl *prop,va_list args);
00049 
00050 /* This map associates the property kinds with the string
00051    representation of the property name and the kind of VALUE that the
00052    property uses as a default */
00053 
00054 struct  icalproperty_map {
00055        icalproperty_kind kind;
00056        const char *name;
00057        icalvalue_kind value;
00058 
00059 };
00060 
00061 /* This map associates the property enumerations with the king of
00062    property that they are used in and the string representation of the
00063    enumeration */
00064 
00065 struct icalproperty_enum_map {
00066     icalproperty_kind prop;
00067     int prop_enum;
00068     const char* str;
00069 }; 
00070 
00071 
00072 static struct icalproperty_map property_map[77] = {
00073 {ICAL_ACTION_PROPERTY,"ACTION",ICAL_ACTION_VALUE},
00074 {ICAL_ALLOWCONFLICT_PROPERTY,"ALLOW-CONFLICT",ICAL_TEXT_VALUE},
00075 {ICAL_ANY_PROPERTY,"ANY",ICAL_NO_VALUE},
00076 {ICAL_ATTACH_PROPERTY,"ATTACH",ICAL_ATTACH_VALUE},
00077 {ICAL_ATTENDEE_PROPERTY,"ATTENDEE",ICAL_CALADDRESS_VALUE},
00078 {ICAL_CALID_PROPERTY,"CALID",ICAL_TEXT_VALUE},
00079 {ICAL_CALMASTER_PROPERTY,"CALMASTER",ICAL_TEXT_VALUE},
00080 {ICAL_CALSCALE_PROPERTY,"CALSCALE",ICAL_TEXT_VALUE},
00081 {ICAL_CARID_PROPERTY,"CARID",ICAL_TEXT_VALUE},
00082 {ICAL_CATEGORIES_PROPERTY,"CATEGORIES",ICAL_TEXT_VALUE},
00083 {ICAL_CLASS_PROPERTY,"CLASS",ICAL_CLASS_VALUE},
00084 {ICAL_COMMENT_PROPERTY,"COMMENT",ICAL_TEXT_VALUE},
00085 {ICAL_COMPLETED_PROPERTY,"COMPLETED",ICAL_DATETIME_VALUE},
00086 {ICAL_CONTACT_PROPERTY,"CONTACT",ICAL_TEXT_VALUE},
00087 {ICAL_CREATED_PROPERTY,"CREATED",ICAL_DATETIME_VALUE},
00088 {ICAL_DECREED_PROPERTY,"DECREED",ICAL_TEXT_VALUE},
00089 {ICAL_DEFAULTCHARSET_PROPERTY,"DEFAULT-CHARSET",ICAL_TEXT_VALUE},
00090 {ICAL_DEFAULTLOCALE_PROPERTY,"DEFAULT-LOCALE",ICAL_TEXT_VALUE},
00091 {ICAL_DEFAULTTZID_PROPERTY,"DEFAULT-TZID",ICAL_TEXT_VALUE},
00092 {ICAL_DESCRIPTION_PROPERTY,"DESCRIPTION",ICAL_TEXT_VALUE},
00093 {ICAL_DTEND_PROPERTY,"DTEND",ICAL_DATETIME_VALUE},
00094 {ICAL_DTSTAMP_PROPERTY,"DTSTAMP",ICAL_DATETIME_VALUE},
00095 {ICAL_DTSTART_PROPERTY,"DTSTART",ICAL_DATETIME_VALUE},
00096 {ICAL_DUE_PROPERTY,"DUE",ICAL_DATETIME_VALUE},
00097 {ICAL_DURATION_PROPERTY,"DURATION",ICAL_DURATION_VALUE},
00098 {ICAL_EXDATE_PROPERTY,"EXDATE",ICAL_DATETIME_VALUE},
00099 {ICAL_EXPAND_PROPERTY,"EXPAND",ICAL_INTEGER_VALUE},
00100 {ICAL_EXRULE_PROPERTY,"EXRULE",ICAL_RECUR_VALUE},
00101 {ICAL_FREEBUSY_PROPERTY,"FREEBUSY",ICAL_PERIOD_VALUE},
00102 {ICAL_GEO_PROPERTY,"GEO",ICAL_GEO_VALUE},
00103 {ICAL_LASTMODIFIED_PROPERTY,"LAST-MODIFIED",ICAL_DATETIME_VALUE},
00104 {ICAL_LOCATION_PROPERTY,"LOCATION",ICAL_TEXT_VALUE},
00105 {ICAL_MAXRESULTS_PROPERTY,"MAXRESULTS",ICAL_INTEGER_VALUE},
00106 {ICAL_MAXRESULTSSIZE_PROPERTY,"MAXRESULTSSIZE",ICAL_INTEGER_VALUE},
00107 {ICAL_METHOD_PROPERTY,"METHOD",ICAL_METHOD_VALUE},
00108 {ICAL_ORGANIZER_PROPERTY,"ORGANIZER",ICAL_CALADDRESS_VALUE},
00109 {ICAL_OWNER_PROPERTY,"OWNER",ICAL_TEXT_VALUE},
00110 {ICAL_PERCENTCOMPLETE_PROPERTY,"PERCENT-COMPLETE",ICAL_INTEGER_VALUE},
00111 {ICAL_PRIORITY_PROPERTY,"PRIORITY",ICAL_INTEGER_VALUE},
00112 {ICAL_PRODID_PROPERTY,"PRODID",ICAL_TEXT_VALUE},
00113 {ICAL_QUERY_PROPERTY,"QUERY",ICAL_QUERY_VALUE},
00114 {ICAL_QUERYNAME_PROPERTY,"QUERYNAME",ICAL_TEXT_VALUE},
00115 {ICAL_RDATE_PROPERTY,"RDATE",ICAL_DATETIMEPERIOD_VALUE},
00116 {ICAL_RECURRENCEID_PROPERTY,"RECURRENCE-ID",ICAL_DATETIME_VALUE},
00117 {ICAL_RELATEDTO_PROPERTY,"RELATED-TO",ICAL_TEXT_VALUE},
00118 {ICAL_RELCALID_PROPERTY,"RELCALID",ICAL_TEXT_VALUE},
00119 {ICAL_REPEAT_PROPERTY,"REPEAT",ICAL_INTEGER_VALUE},
00120 {ICAL_REQUESTSTATUS_PROPERTY,"REQUEST-STATUS",ICAL_REQUESTSTATUS_VALUE},
00121 {ICAL_RESOURCES_PROPERTY,"RESOURCES",ICAL_TEXT_VALUE},
00122 {ICAL_RRULE_PROPERTY,"RRULE",ICAL_RECUR_VALUE},
00123 {ICAL_SCOPE_PROPERTY,"SCOPE",ICAL_TEXT_VALUE},
00124 {ICAL_SEQUENCE_PROPERTY,"SEQUENCE",ICAL_INTEGER_VALUE},
00125 {ICAL_STATUS_PROPERTY,"STATUS",ICAL_STATUS_VALUE},
00126 {ICAL_SUMMARY_PROPERTY,"SUMMARY",ICAL_TEXT_VALUE},
00127 {ICAL_TARGET_PROPERTY,"TARGET",ICAL_CALADDRESS_VALUE},
00128 {ICAL_TRANSP_PROPERTY,"TRANSP",ICAL_TRANSP_VALUE},
00129 {ICAL_TRIGGER_PROPERTY,"TRIGGER",ICAL_TRIGGER_VALUE},
00130 {ICAL_TZID_PROPERTY,"TZID",ICAL_TEXT_VALUE},
00131 {ICAL_TZNAME_PROPERTY,"TZNAME",ICAL_TEXT_VALUE},
00132 {ICAL_TZOFFSETFROM_PROPERTY,"TZOFFSETFROM",ICAL_UTCOFFSET_VALUE},
00133 {ICAL_TZOFFSETTO_PROPERTY,"TZOFFSETTO",ICAL_UTCOFFSET_VALUE},
00134 {ICAL_TZURL_PROPERTY,"TZURL",ICAL_URI_VALUE},
00135 {ICAL_UID_PROPERTY,"UID",ICAL_TEXT_VALUE},
00136 {ICAL_URL_PROPERTY,"URL",ICAL_URI_VALUE},
00137 {ICAL_VERSION_PROPERTY,"VERSION",ICAL_TEXT_VALUE},
00138 {ICAL_X_PROPERTY,"X",ICAL_X_VALUE},
00139 {ICAL_XLICCLASS_PROPERTY,"X-LIC-CLASS",ICAL_XLICCLASS_VALUE},
00140 {ICAL_XLICCLUSTERCOUNT_PROPERTY,"X-LIC-CLUSTERCOUNT",ICAL_STRING_VALUE},
00141 {ICAL_XLICERROR_PROPERTY,"X-LIC-ERROR",ICAL_TEXT_VALUE},
00142 {ICAL_XLICMIMECHARSET_PROPERTY,"X-LIC-MIMECHARSET",ICAL_STRING_VALUE},
00143 {ICAL_XLICMIMECID_PROPERTY,"X-LIC-MIMECID",ICAL_STRING_VALUE},
00144 {ICAL_XLICMIMECONTENTTYPE_PROPERTY,"X-LIC-MIMECONTENTTYPE",ICAL_STRING_VALUE},
00145 {ICAL_XLICMIMEENCODING_PROPERTY,"X-LIC-MIMEENCODING",ICAL_STRING_VALUE},
00146 {ICAL_XLICMIMEFILENAME_PROPERTY,"X-LIC-MIMEFILENAME",ICAL_STRING_VALUE},
00147 {ICAL_XLICMIMEOPTINFO_PROPERTY,"X-LIC-MIMEOPTINFO",ICAL_STRING_VALUE},
00148 {ICAL_NO_PROPERTY,"",ICAL_NO_VALUE}};
00149 
00150 static struct icalproperty_enum_map enum_map[75] = {
00151     {ICAL_ACTION_PROPERTY,ICAL_ACTION_X,"" }, /*10000*/
00152     {ICAL_ACTION_PROPERTY,ICAL_ACTION_AUDIO,"AUDIO" }, /*10001*/
00153     {ICAL_ACTION_PROPERTY,ICAL_ACTION_DISPLAY,"DISPLAY" }, /*10002*/
00154     {ICAL_ACTION_PROPERTY,ICAL_ACTION_EMAIL,"EMAIL" }, /*10003*/
00155     {ICAL_ACTION_PROPERTY,ICAL_ACTION_PROCEDURE,"PROCEDURE" }, /*10004*/
00156     {ICAL_ACTION_PROPERTY,ICAL_ACTION_NONE,"" }, /*10005*/
00157     {ICAL_CLASS_PROPERTY,ICAL_CLASS_X,"" }, /*10006*/
00158     {ICAL_CLASS_PROPERTY,ICAL_CLASS_PUBLIC,"PUBLIC" }, /*10007*/
00159     {ICAL_CLASS_PROPERTY,ICAL_CLASS_PRIVATE,"PRIVATE" }, /*10008*/
00160     {ICAL_CLASS_PROPERTY,ICAL_CLASS_CONFIDENTIAL,"CONFIDENTIAL" }, /*10009*/
00161     {ICAL_CLASS_PROPERTY,ICAL_CLASS_NONE,"" }, /*10010*/
00162     {ICAL_METHOD_PROPERTY,ICAL_METHOD_X,"" }, /*10011*/
00163     {ICAL_METHOD_PROPERTY,ICAL_METHOD_PUBLISH,"PUBLISH" }, /*10012*/
00164     {ICAL_METHOD_PROPERTY,ICAL_METHOD_REQUEST,"REQUEST" }, /*10013*/
00165     {ICAL_METHOD_PROPERTY,ICAL_METHOD_REPLY,"REPLY" }, /*10014*/
00166     {ICAL_METHOD_PROPERTY,ICAL_METHOD_ADD,"ADD" }, /*10015*/
00167     {ICAL_METHOD_PROPERTY,ICAL_METHOD_CANCEL,"CANCEL" }, /*10016*/
00168     {ICAL_METHOD_PROPERTY,ICAL_METHOD_REFRESH,"REFRESH" }, /*10017*/
00169     {ICAL_METHOD_PROPERTY,ICAL_METHOD_COUNTER,"COUNTER" }, /*10018*/
00170     {ICAL_METHOD_PROPERTY,ICAL_METHOD_DECLINECOUNTER,"DECLINECOUNTER" }, /*10019*/
00171     {ICAL_METHOD_PROPERTY,ICAL_METHOD_CREATE,"CREATE" }, /*10020*/
00172     {ICAL_METHOD_PROPERTY,ICAL_METHOD_READ,"READ" }, /*10021*/
00173     {ICAL_METHOD_PROPERTY,ICAL_METHOD_RESPONSE,"RESPONSE" }, /*10022*/
00174     {ICAL_METHOD_PROPERTY,ICAL_METHOD_MOVE,"MOVE" }, /*10023*/
00175     {ICAL_METHOD_PROPERTY,ICAL_METHOD_MODIFY,"MODIFY" }, /*10024*/
00176     {ICAL_METHOD_PROPERTY,ICAL_METHOD_GENERATEUID,"GENERATEUID" }, /*10025*/
00177     {ICAL_METHOD_PROPERTY,ICAL_METHOD_DELETE,"DELETE" }, /*10026*/
00178     {ICAL_METHOD_PROPERTY,ICAL_METHOD_NONE,"" }, /*10027*/
00179     {ICAL_STATUS_PROPERTY,ICAL_STATUS_X,"" }, /*10028*/
00180     {ICAL_STATUS_PROPERTY,ICAL_STATUS_TENTATIVE,"TENTATIVE" }, /*10029*/
00181     {ICAL_STATUS_PROPERTY,ICAL_STATUS_CONFIRMED,"CONFIRMED" }, /*10030*/
00182     {ICAL_STATUS_PROPERTY,ICAL_STATUS_COMPLETED,"COMPLETED" }, /*10031*/
00183     {ICAL_STATUS_PROPERTY,ICAL_STATUS_NEEDSACTION,"NEEDS-ACTION" }, /*10032*/
00184     {ICAL_STATUS_PROPERTY,ICAL_STATUS_CANCELLED,"CANCELLED" }, /*10033*/
00185     {ICAL_STATUS_PROPERTY,ICAL_STATUS_INPROCESS,"IN-PROCESS" }, /*10034*/
00186     {ICAL_STATUS_PROPERTY,ICAL_STATUS_DRAFT,"DRAFT" }, /*10035*/
00187     {ICAL_STATUS_PROPERTY,ICAL_STATUS_FINAL,"FINAL" }, /*10036*/
00188     {ICAL_STATUS_PROPERTY,ICAL_STATUS_NONE,"" }, /*10037*/
00189     {ICAL_TRANSP_PROPERTY,ICAL_TRANSP_X,"" }, /*10038*/
00190     {ICAL_TRANSP_PROPERTY,ICAL_TRANSP_OPAQUE,"OPAQUE" }, /*10039*/
00191     {ICAL_TRANSP_PROPERTY,ICAL_TRANSP_OPAQUENOCONFLICT,"OPAQUE-NOCONFLICT" }, /*10040*/
00192     {ICAL_TRANSP_PROPERTY,ICAL_TRANSP_TRANSPARENT,"TRANSPARENT" }, /*10041*/
00193     {ICAL_TRANSP_PROPERTY,ICAL_TRANSP_TRANSPARENTNOCONFLICT,"TRANSPARENT-NOCONFLICT" }, /*10042*/
00194     {ICAL_TRANSP_PROPERTY,ICAL_TRANSP_NONE,"" }, /*10043*/
00195     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_X,"" }, /*10044*/
00196     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_PUBLISHNEW,"PUBLISH-NEW" }, /*10045*/
00197     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_PUBLISHUPDATE,"PUBLISH-UPDATE" }, /*10046*/
00198     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_PUBLISHFREEBUSY,"PUBLISH-FREEBUSY" }, /*10047*/
00199     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_REQUESTNEW,"REQUEST-NEW" }, /*10048*/
00200     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_REQUESTUPDATE,"REQUEST-UPDATE" }, /*10049*/
00201     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_REQUESTRESCHEDULE,"REQUEST-RESCHEDULE" }, /*10050*/
00202     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_REQUESTDELEGATE,"REQUEST-DELEGATE" }, /*10051*/
00203     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_REQUESTNEWORGANIZER,"REQUEST-NEW-ORGANIZER" }, /*10052*/
00204     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_REQUESTFORWARD,"REQUEST-FORWARD" }, /*10053*/
00205     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_REQUESTSTATUS,"REQUEST-STATUS" }, /*10054*/
00206     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_REQUESTFREEBUSY,"REQUEST-FREEBUSY" }, /*10055*/
00207     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_REPLYACCEPT,"REPLY-ACCEPT" }, /*10056*/
00208     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_REPLYDECLINE,"REPLY-DECLINE" }, /*10057*/
00209     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_REPLYDELEGATE,"REPLY-DELEGATE" }, /*10058*/
00210     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_REPLYCRASHERACCEPT,"REPLY-CRASHER-ACCEPT" }, /*10059*/
00211     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_REPLYCRASHERDECLINE,"REPLY-CRASHER-DECLINE" }, /*10060*/
00212     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_ADDINSTANCE,"ADD-INSTANCE" }, /*10061*/
00213     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_CANCELEVENT,"CANCEL-EVENT" }, /*10062*/
00214     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_CANCELINSTANCE,"CANCEL-INSTANCE" }, /*10063*/
00215     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_CANCELALL,"CANCEL-ALL" }, /*10064*/
00216     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_REFRESH,"REFRESH" }, /*10065*/
00217     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_COUNTER,"COUNTER" }, /*10066*/
00218     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_DECLINECOUNTER,"DECLINECOUNTER" }, /*10067*/
00219     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_MALFORMED,"MALFORMED" }, /*10068*/
00220     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_OBSOLETE,"OBSOLETE" }, /*10069*/
00221     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_MISSEQUENCED,"MISSEQUENCED" }, /*10070*/
00222     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_UNKNOWN,"UNKNOWN" }, /*10071*/
00223     {ICAL_XLICCLASS_PROPERTY,ICAL_XLICCLASS_NONE,"" }, /*10072*/
00224     {ICAL_NO_PROPERTY,0,""}
00225 };
00226 
00227 icalproperty* icalproperty_vanew_action(enum icalproperty_action v, ...){
00228    va_list args;
00229    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_ACTION_PROPERTY);   
00230    icalproperty_set_action((icalproperty*)impl,v);
00231    va_start(args,v);
00232    icalproperty_add_parameters(impl, args);
00233    va_end(args);
00234    return (icalproperty*)impl;
00235 }
00236 
00237 /* ACTION */
00238 icalproperty* icalproperty_new_action(enum icalproperty_action v) {
00239    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_ACTION_PROPERTY);   
00240    icalproperty_set_action((icalproperty*)impl,v);
00241    return (icalproperty*)impl;
00242 }
00243 
00244 void icalproperty_set_action(icalproperty* prop, enum icalproperty_action v){
00245     
00246     icalerror_check_arg_rv( (prop!=0),"prop");
00247     icalproperty_set_value(prop,icalvalue_new_action(v));
00248 }
00249 enum icalproperty_action icalproperty_get_action(const icalproperty* prop){
00250     icalerror_check_arg( (prop!=0),"prop");
00251     return icalvalue_get_action(icalproperty_get_value(prop));
00252 }
00253 icalproperty* icalproperty_vanew_allowconflict(const char* v, ...){
00254    va_list args;
00255    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_ALLOWCONFLICT_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00256 
00257    icalproperty_set_allowconflict((icalproperty*)impl,v);
00258    va_start(args,v);
00259    icalproperty_add_parameters(impl, args);
00260    va_end(args);
00261    return (icalproperty*)impl;
00262 }
00263 
00264 /* ALLOW-CONFLICT */
00265 icalproperty* icalproperty_new_allowconflict(const char* v) {
00266    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_ALLOWCONFLICT_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00267 
00268    icalproperty_set_allowconflict((icalproperty*)impl,v);
00269    return (icalproperty*)impl;
00270 }
00271 
00272 void icalproperty_set_allowconflict(icalproperty* prop, const char* v){
00273     icalerror_check_arg_rv( (v!=0),"v");
00274 
00275     icalerror_check_arg_rv( (prop!=0),"prop");
00276     icalproperty_set_value(prop,icalvalue_new_text(v));
00277 }
00278 const char* icalproperty_get_allowconflict(const icalproperty* prop){
00279     icalerror_check_arg( (prop!=0),"prop");
00280     return icalvalue_get_text(icalproperty_get_value(prop));
00281 }
00282 icalproperty* icalproperty_vanew_attach(icalattach * v, ...){
00283    va_list args;
00284    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_ATTACH_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00285 
00286    icalproperty_set_attach((icalproperty*)impl,v);
00287    va_start(args,v);
00288    icalproperty_add_parameters(impl, args);
00289    va_end(args);
00290    return (icalproperty*)impl;
00291 }
00292 
00293 /* ATTACH */
00294 icalproperty* icalproperty_new_attach(icalattach * v) {
00295    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_ATTACH_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00296 
00297    icalproperty_set_attach((icalproperty*)impl,v);
00298    return (icalproperty*)impl;
00299 }
00300 
00301 void icalproperty_set_attach(icalproperty* prop, icalattach * v){
00302     icalerror_check_arg_rv( (v!=0),"v");
00303 
00304     icalerror_check_arg_rv( (prop!=0),"prop");
00305     icalproperty_set_value(prop,icalvalue_new_attach(v));
00306 }
00307 icalattach * icalproperty_get_attach(const icalproperty* prop){
00308     icalerror_check_arg( (prop!=0),"prop");
00309     return icalvalue_get_attach(icalproperty_get_value(prop));
00310 }
00311 icalproperty* icalproperty_vanew_attendee(const char* v, ...){
00312    va_list args;
00313    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_ATTENDEE_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00314 
00315    icalproperty_set_attendee((icalproperty*)impl,v);
00316    va_start(args,v);
00317    icalproperty_add_parameters(impl, args);
00318    va_end(args);
00319    return (icalproperty*)impl;
00320 }
00321 
00322 /* ATTENDEE */
00323 icalproperty* icalproperty_new_attendee(const char* v) {
00324    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_ATTENDEE_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00325 
00326    icalproperty_set_attendee((icalproperty*)impl,v);
00327    return (icalproperty*)impl;
00328 }
00329 
00330 void icalproperty_set_attendee(icalproperty* prop, const char* v){
00331     icalerror_check_arg_rv( (v!=0),"v");
00332 
00333     icalerror_check_arg_rv( (prop!=0),"prop");
00334     icalproperty_set_value(prop,icalvalue_new_caladdress(v));
00335 }
00336 const char* icalproperty_get_attendee(const icalproperty* prop){
00337     icalerror_check_arg( (prop!=0),"prop");
00338     return icalvalue_get_caladdress(icalproperty_get_value(prop));
00339 }
00340 icalproperty* icalproperty_vanew_calid(const char* v, ...){
00341    va_list args;
00342    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CALID_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00343 
00344    icalproperty_set_calid((icalproperty*)impl,v);
00345    va_start(args,v);
00346    icalproperty_add_parameters(impl, args);
00347    va_end(args);
00348    return (icalproperty*)impl;
00349 }
00350 
00351 /* CALID */
00352 icalproperty* icalproperty_new_calid(const char* v) {
00353    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CALID_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00354 
00355    icalproperty_set_calid((icalproperty*)impl,v);
00356    return (icalproperty*)impl;
00357 }
00358 
00359 void icalproperty_set_calid(icalproperty* prop, const char* v){
00360     icalerror_check_arg_rv( (v!=0),"v");
00361 
00362     icalerror_check_arg_rv( (prop!=0),"prop");
00363     icalproperty_set_value(prop,icalvalue_new_text(v));
00364 }
00365 const char* icalproperty_get_calid(const icalproperty* prop){
00366     icalerror_check_arg( (prop!=0),"prop");
00367     return icalvalue_get_text(icalproperty_get_value(prop));
00368 }
00369 icalproperty* icalproperty_vanew_calmaster(const char* v, ...){
00370    va_list args;
00371    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CALMASTER_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00372 
00373    icalproperty_set_calmaster((icalproperty*)impl,v);
00374    va_start(args,v);
00375    icalproperty_add_parameters(impl, args);
00376    va_end(args);
00377    return (icalproperty*)impl;
00378 }
00379 
00380 /* CALMASTER */
00381 icalproperty* icalproperty_new_calmaster(const char* v) {
00382    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CALMASTER_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00383 
00384    icalproperty_set_calmaster((icalproperty*)impl,v);
00385    return (icalproperty*)impl;
00386 }
00387 
00388 void icalproperty_set_calmaster(icalproperty* prop, const char* v){
00389     icalerror_check_arg_rv( (v!=0),"v");
00390 
00391     icalerror_check_arg_rv( (prop!=0),"prop");
00392     icalproperty_set_value(prop,icalvalue_new_text(v));
00393 }
00394 const char* icalproperty_get_calmaster(const icalproperty* prop){
00395     icalerror_check_arg( (prop!=0),"prop");
00396     return icalvalue_get_text(icalproperty_get_value(prop));
00397 }
00398 icalproperty* icalproperty_vanew_calscale(const char* v, ...){
00399    va_list args;
00400    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CALSCALE_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00401 
00402    icalproperty_set_calscale((icalproperty*)impl,v);
00403    va_start(args,v);
00404    icalproperty_add_parameters(impl, args);
00405    va_end(args);
00406    return (icalproperty*)impl;
00407 }
00408 
00409 /* CALSCALE */
00410 icalproperty* icalproperty_new_calscale(const char* v) {
00411    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CALSCALE_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00412 
00413    icalproperty_set_calscale((icalproperty*)impl,v);
00414    return (icalproperty*)impl;
00415 }
00416 
00417 void icalproperty_set_calscale(icalproperty* prop, const char* v){
00418     icalerror_check_arg_rv( (v!=0),"v");
00419 
00420     icalerror_check_arg_rv( (prop!=0),"prop");
00421     icalproperty_set_value(prop,icalvalue_new_text(v));
00422 }
00423 const char* icalproperty_get_calscale(const icalproperty* prop){
00424     icalerror_check_arg( (prop!=0),"prop");
00425     return icalvalue_get_text(icalproperty_get_value(prop));
00426 }
00427 icalproperty* icalproperty_vanew_carid(const char* v, ...){
00428    va_list args;
00429    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CARID_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00430 
00431    icalproperty_set_carid((icalproperty*)impl,v);
00432    va_start(args,v);
00433    icalproperty_add_parameters(impl, args);
00434    va_end(args);
00435    return (icalproperty*)impl;
00436 }
00437 
00438 /* CARID */
00439 icalproperty* icalproperty_new_carid(const char* v) {
00440    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CARID_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00441 
00442    icalproperty_set_carid((icalproperty*)impl,v);
00443    return (icalproperty*)impl;
00444 }
00445 
00446 void icalproperty_set_carid(icalproperty* prop, const char* v){
00447     icalerror_check_arg_rv( (v!=0),"v");
00448 
00449     icalerror_check_arg_rv( (prop!=0),"prop");
00450     icalproperty_set_value(prop,icalvalue_new_text(v));
00451 }
00452 const char* icalproperty_get_carid(const icalproperty* prop){
00453     icalerror_check_arg( (prop!=0),"prop");
00454     return icalvalue_get_text(icalproperty_get_value(prop));
00455 }
00456 icalproperty* icalproperty_vanew_categories(const char* v, ...){
00457    va_list args;
00458    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CATEGORIES_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00459 
00460    icalproperty_set_categories((icalproperty*)impl,v);
00461    va_start(args,v);
00462    icalproperty_add_parameters(impl, args);
00463    va_end(args);
00464    return (icalproperty*)impl;
00465 }
00466 
00467 /* CATEGORIES */
00468 icalproperty* icalproperty_new_categories(const char* v) {
00469    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CATEGORIES_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00470 
00471    icalproperty_set_categories((icalproperty*)impl,v);
00472    return (icalproperty*)impl;
00473 }
00474 
00475 void icalproperty_set_categories(icalproperty* prop, const char* v){
00476     icalerror_check_arg_rv( (v!=0),"v");
00477 
00478     icalerror_check_arg_rv( (prop!=0),"prop");
00479     icalproperty_set_value(prop,icalvalue_new_text(v));
00480 }
00481 const char* icalproperty_get_categories(const icalproperty* prop){
00482     icalerror_check_arg( (prop!=0),"prop");
00483     return icalvalue_get_text(icalproperty_get_value(prop));
00484 }
00485 icalproperty* icalproperty_vanew_class(enum icalproperty_class v, ...){
00486    va_list args;
00487    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CLASS_PROPERTY);   
00488    icalproperty_set_class((icalproperty*)impl,v);
00489    va_start(args,v);
00490    icalproperty_add_parameters(impl, args);
00491    va_end(args);
00492    return (icalproperty*)impl;
00493 }
00494 
00495 /* CLASS */
00496 icalproperty* icalproperty_new_class(enum icalproperty_class v) {
00497    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CLASS_PROPERTY);   
00498    icalproperty_set_class((icalproperty*)impl,v);
00499    return (icalproperty*)impl;
00500 }
00501 
00502 void icalproperty_set_class(icalproperty* prop, enum icalproperty_class v){
00503     
00504     icalerror_check_arg_rv( (prop!=0),"prop");
00505     icalproperty_set_value(prop,icalvalue_new_class(v));
00506 }
00507 enum icalproperty_class icalproperty_get_class(const icalproperty* prop){
00508     icalerror_check_arg( (prop!=0),"prop");
00509     return icalvalue_get_class(icalproperty_get_value(prop));
00510 }
00511 icalproperty* icalproperty_vanew_comment(const char* v, ...){
00512    va_list args;
00513    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_COMMENT_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00514 
00515    icalproperty_set_comment((icalproperty*)impl,v);
00516    va_start(args,v);
00517    icalproperty_add_parameters(impl, args);
00518    va_end(args);
00519    return (icalproperty*)impl;
00520 }
00521 
00522 /* COMMENT */
00523 icalproperty* icalproperty_new_comment(const char* v) {
00524    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_COMMENT_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00525 
00526    icalproperty_set_comment((icalproperty*)impl,v);
00527    return (icalproperty*)impl;
00528 }
00529 
00530 void icalproperty_set_comment(icalproperty* prop, const char* v){
00531     icalerror_check_arg_rv( (v!=0),"v");
00532 
00533     icalerror_check_arg_rv( (prop!=0),"prop");
00534     icalproperty_set_value(prop,icalvalue_new_text(v));
00535 }
00536 const char* icalproperty_get_comment(const icalproperty* prop){
00537     icalerror_check_arg( (prop!=0),"prop");
00538     return icalvalue_get_text(icalproperty_get_value(prop));
00539 }
00540 icalproperty* icalproperty_vanew_completed(struct icaltimetype v, ...){
00541    va_list args;
00542    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_COMPLETED_PROPERTY);   
00543    icalproperty_set_completed((icalproperty*)impl,v);
00544    va_start(args,v);
00545    icalproperty_add_parameters(impl, args);
00546    va_end(args);
00547    return (icalproperty*)impl;
00548 }
00549 
00550 /* COMPLETED */
00551 icalproperty* icalproperty_new_completed(struct icaltimetype v) {
00552    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_COMPLETED_PROPERTY);   
00553    icalproperty_set_completed((icalproperty*)impl,v);
00554    return (icalproperty*)impl;
00555 }
00556 
00557 void icalproperty_set_completed(icalproperty* prop, struct icaltimetype v){
00558     
00559     icalerror_check_arg_rv( (prop!=0),"prop");
00560     icalproperty_set_value(prop,icalvalue_new_datetime(v));
00561 }
00562 struct icaltimetype icalproperty_get_completed(const icalproperty* prop){
00563     icalerror_check_arg( (prop!=0),"prop");
00564     return icalvalue_get_datetime(icalproperty_get_value(prop));
00565 }
00566 icalproperty* icalproperty_vanew_contact(const char* v, ...){
00567    va_list args;
00568    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CONTACT_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00569 
00570    icalproperty_set_contact((icalproperty*)impl,v);
00571    va_start(args,v);
00572    icalproperty_add_parameters(impl, args);
00573    va_end(args);
00574    return (icalproperty*)impl;
00575 }
00576 
00577 /* CONTACT */
00578 icalproperty* icalproperty_new_contact(const char* v) {
00579    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CONTACT_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00580 
00581    icalproperty_set_contact((icalproperty*)impl,v);
00582    return (icalproperty*)impl;
00583 }
00584 
00585 void icalproperty_set_contact(icalproperty* prop, const char* v){
00586     icalerror_check_arg_rv( (v!=0),"v");
00587 
00588     icalerror_check_arg_rv( (prop!=0),"prop");
00589     icalproperty_set_value(prop,icalvalue_new_text(v));
00590 }
00591 const char* icalproperty_get_contact(const icalproperty* prop){
00592     icalerror_check_arg( (prop!=0),"prop");
00593     return icalvalue_get_text(icalproperty_get_value(prop));
00594 }
00595 icalproperty* icalproperty_vanew_created(struct icaltimetype v, ...){
00596    va_list args;
00597    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CREATED_PROPERTY);   
00598    icalproperty_set_created((icalproperty*)impl,v);
00599    va_start(args,v);
00600    icalproperty_add_parameters(impl, args);
00601    va_end(args);
00602    return (icalproperty*)impl;
00603 }
00604 
00605 /* CREATED */
00606 icalproperty* icalproperty_new_created(struct icaltimetype v) {
00607    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CREATED_PROPERTY);   
00608    icalproperty_set_created((icalproperty*)impl,v);
00609    return (icalproperty*)impl;
00610 }
00611 
00612 void icalproperty_set_created(icalproperty* prop, struct icaltimetype v){
00613     
00614     icalerror_check_arg_rv( (prop!=0),"prop");
00615     icalproperty_set_value(prop,icalvalue_new_datetime(v));
00616 }
00617 struct icaltimetype icalproperty_get_created(const icalproperty* prop){
00618     icalerror_check_arg( (prop!=0),"prop");
00619     return icalvalue_get_datetime(icalproperty_get_value(prop));
00620 }
00621 icalproperty* icalproperty_vanew_decreed(const char* v, ...){
00622    va_list args;
00623    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DECREED_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00624 
00625    icalproperty_set_decreed((icalproperty*)impl,v);
00626    va_start(args,v);
00627    icalproperty_add_parameters(impl, args);
00628    va_end(args);
00629    return (icalproperty*)impl;
00630 }
00631 
00632 /* DECREED */
00633 icalproperty* icalproperty_new_decreed(const char* v) {
00634    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DECREED_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00635 
00636    icalproperty_set_decreed((icalproperty*)impl,v);
00637    return (icalproperty*)impl;
00638 }
00639 
00640 void icalproperty_set_decreed(icalproperty* prop, const char* v){
00641     icalerror_check_arg_rv( (v!=0),"v");
00642 
00643     icalerror_check_arg_rv( (prop!=0),"prop");
00644     icalproperty_set_value(prop,icalvalue_new_text(v));
00645 }
00646 const char* icalproperty_get_decreed(const icalproperty* prop){
00647     icalerror_check_arg( (prop!=0),"prop");
00648     return icalvalue_get_text(icalproperty_get_value(prop));
00649 }
00650 icalproperty* icalproperty_vanew_defaultcharset(const char* v, ...){
00651    va_list args;
00652    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DEFAULTCHARSET_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00653 
00654    icalproperty_set_defaultcharset((icalproperty*)impl,v);
00655    va_start(args,v);
00656    icalproperty_add_parameters(impl, args);
00657    va_end(args);
00658    return (icalproperty*)impl;
00659 }
00660 
00661 /* DEFAULT-CHARSET */
00662 icalproperty* icalproperty_new_defaultcharset(const char* v) {
00663    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DEFAULTCHARSET_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00664 
00665    icalproperty_set_defaultcharset((icalproperty*)impl,v);
00666    return (icalproperty*)impl;
00667 }
00668 
00669 void icalproperty_set_defaultcharset(icalproperty* prop, const char* v){
00670     icalerror_check_arg_rv( (v!=0),"v");
00671 
00672     icalerror_check_arg_rv( (prop!=0),"prop");
00673     icalproperty_set_value(prop,icalvalue_new_text(v));
00674 }
00675 const char* icalproperty_get_defaultcharset(const icalproperty* prop){
00676     icalerror_check_arg( (prop!=0),"prop");
00677     return icalvalue_get_text(icalproperty_get_value(prop));
00678 }
00679 icalproperty* icalproperty_vanew_defaultlocale(const char* v, ...){
00680    va_list args;
00681    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DEFAULTLOCALE_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00682 
00683    icalproperty_set_defaultlocale((icalproperty*)impl,v);
00684    va_start(args,v);
00685    icalproperty_add_parameters(impl, args);
00686    va_end(args);
00687    return (icalproperty*)impl;
00688 }
00689 
00690 /* DEFAULT-LOCALE */
00691 icalproperty* icalproperty_new_defaultlocale(const char* v) {
00692    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DEFAULTLOCALE_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00693 
00694    icalproperty_set_defaultlocale((icalproperty*)impl,v);
00695    return (icalproperty*)impl;
00696 }
00697 
00698 void icalproperty_set_defaultlocale(icalproperty* prop, const char* v){
00699     icalerror_check_arg_rv( (v!=0),"v");
00700 
00701     icalerror_check_arg_rv( (prop!=0),"prop");
00702     icalproperty_set_value(prop,icalvalue_new_text(v));
00703 }
00704 const char* icalproperty_get_defaultlocale(const icalproperty* prop){
00705     icalerror_check_arg( (prop!=0),"prop");
00706     return icalvalue_get_text(icalproperty_get_value(prop));
00707 }
00708 icalproperty* icalproperty_vanew_defaulttzid(const char* v, ...){
00709    va_list args;
00710    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DEFAULTTZID_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00711 
00712    icalproperty_set_defaulttzid((icalproperty*)impl,v);
00713    va_start(args,v);
00714    icalproperty_add_parameters(impl, args);
00715    va_end(args);
00716    return (icalproperty*)impl;
00717 }
00718 
00719 /* DEFAULT-TZID */
00720 icalproperty* icalproperty_new_defaulttzid(const char* v) {
00721    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DEFAULTTZID_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00722 
00723    icalproperty_set_defaulttzid((icalproperty*)impl,v);
00724    return (icalproperty*)impl;
00725 }
00726 
00727 void icalproperty_set_defaulttzid(icalproperty* prop, const char* v){
00728     icalerror_check_arg_rv( (v!=0),"v");
00729 
00730     icalerror_check_arg_rv( (prop!=0),"prop");
00731     icalproperty_set_value(prop,icalvalue_new_text(v));
00732 }
00733 const char* icalproperty_get_defaulttzid(const icalproperty* prop){
00734     icalerror_check_arg( (prop!=0),"prop");
00735     return icalvalue_get_text(icalproperty_get_value(prop));
00736 }
00737 icalproperty* icalproperty_vanew_description(const char* v, ...){
00738    va_list args;
00739    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DESCRIPTION_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00740 
00741    icalproperty_set_description((icalproperty*)impl,v);
00742    va_start(args,v);
00743    icalproperty_add_parameters(impl, args);
00744    va_end(args);
00745    return (icalproperty*)impl;
00746 }
00747 
00748 /* DESCRIPTION */
00749 icalproperty* icalproperty_new_description(const char* v) {
00750    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DESCRIPTION_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
00751 
00752    icalproperty_set_description((icalproperty*)impl,v);
00753    return (icalproperty*)impl;
00754 }
00755 
00756 void icalproperty_set_description(icalproperty* prop, const char* v){
00757     icalerror_check_arg_rv( (v!=0),"v");
00758 
00759     icalerror_check_arg_rv( (prop!=0),"prop");
00760     icalproperty_set_value(prop,icalvalue_new_text(v));
00761 }
00762 const char* icalproperty_get_description(const icalproperty* prop){
00763     icalerror_check_arg( (prop!=0),"prop");
00764     return icalvalue_get_text(icalproperty_get_value(prop));
00765 }
00766 icalproperty* icalproperty_vanew_dtend(struct icaltimetype v, ...){
00767    va_list args;
00768    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DTEND_PROPERTY);   
00769    icalproperty_set_dtend((icalproperty*)impl,v);
00770    va_start(args,v);
00771    icalproperty_add_parameters(impl, args);
00772    va_end(args);
00773    return (icalproperty*)impl;
00774 }
00775 
00776 /* DTEND */
00777 icalproperty* icalproperty_new_dtend(struct icaltimetype v) {
00778    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DTEND_PROPERTY);   
00779    icalproperty_set_dtend((icalproperty*)impl,v);
00780    return (icalproperty*)impl;
00781 }
00782 
00783 void icalproperty_set_dtend(icalproperty* prop, struct icaltimetype v){
00784     icalvalue *value;
00785     
00786     icalerror_check_arg_rv( (prop!=0),"prop");
00787     if (v.is_date)
00788         value = icalvalue_new_date(v);
00789     else
00790         value = icalvalue_new_datetime(v);
00791     icalproperty_set_value(prop,value);
00792 }
00793 struct icaltimetype icalproperty_get_dtend(const icalproperty* prop){
00794     icalerror_check_arg( (prop!=0),"prop");
00795     return icalvalue_get_datetime(icalproperty_get_value(prop));
00796 }
00797 icalproperty* icalproperty_vanew_dtstamp(struct icaltimetype v, ...){
00798    va_list args;
00799    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DTSTAMP_PROPERTY);   
00800    icalproperty_set_dtstamp((icalproperty*)impl,v);
00801    va_start(args,v);
00802    icalproperty_add_parameters(impl, args);
00803    va_end(args);
00804    return (icalproperty*)impl;
00805 }
00806 
00807 /* DTSTAMP */
00808 icalproperty* icalproperty_new_dtstamp(struct icaltimetype v) {
00809    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DTSTAMP_PROPERTY);   
00810    icalproperty_set_dtstamp((icalproperty*)impl,v);
00811    return (icalproperty*)impl;
00812 }
00813 
00814 void icalproperty_set_dtstamp(icalproperty* prop, struct icaltimetype v){
00815     
00816     icalerror_check_arg_rv( (prop!=0),"prop");
00817     icalproperty_set_value(prop,icalvalue_new_datetime(v));
00818 }
00819 struct icaltimetype icalproperty_get_dtstamp(const icalproperty* prop){
00820     icalerror_check_arg( (prop!=0),"prop");
00821     return icalvalue_get_datetime(icalproperty_get_value(prop));
00822 }
00823 icalproperty* icalproperty_vanew_dtstart(struct icaltimetype v, ...){
00824    va_list args;
00825    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DTSTART_PROPERTY);   
00826    icalproperty_set_dtstart((icalproperty*)impl,v);
00827    va_start(args,v);
00828    icalproperty_add_parameters(impl, args);
00829    va_end(args);
00830    return (icalproperty*)impl;
00831 }
00832 
00833 /* DTSTART */
00834 icalproperty* icalproperty_new_dtstart(struct icaltimetype v) {
00835    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DTSTART_PROPERTY);   
00836    icalproperty_set_dtstart((icalproperty*)impl,v);
00837    return (icalproperty*)impl;
00838 }
00839 
00840 void icalproperty_set_dtstart(icalproperty* prop, struct icaltimetype v){
00841     icalvalue *value;
00842     
00843     icalerror_check_arg_rv( (prop!=0),"prop");
00844     if (v.is_date)
00845         value = icalvalue_new_date(v);
00846     else
00847         value = icalvalue_new_datetime(v);
00848     icalproperty_set_value(prop,value);
00849 }
00850 struct icaltimetype icalproperty_get_dtstart(const icalproperty* prop){
00851     icalerror_check_arg( (prop!=0),"prop");
00852     return icalvalue_get_datetime(icalproperty_get_value(prop));
00853 }
00854 icalproperty* icalproperty_vanew_due(struct icaltimetype v, ...){
00855    va_list args;
00856    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DUE_PROPERTY);   
00857    icalproperty_set_due((icalproperty*)impl,v);
00858    va_start(args,v);
00859    icalproperty_add_parameters(impl, args);
00860    va_end(args);
00861    return (icalproperty*)impl;
00862 }
00863 
00864 /* DUE */
00865 icalproperty* icalproperty_new_due(struct icaltimetype v) {
00866    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DUE_PROPERTY);   
00867    icalproperty_set_due((icalproperty*)impl,v);
00868    return (icalproperty*)impl;
00869 }
00870 
00871 void icalproperty_set_due(icalproperty* prop, struct icaltimetype v){
00872     icalvalue *value;
00873     
00874     icalerror_check_arg_rv( (prop!=0),"prop");
00875     if (v.is_date)
00876         value = icalvalue_new_date(v);
00877     else
00878         value = icalvalue_new_datetime(v);
00879     icalproperty_set_value(prop,value);
00880 }
00881 struct icaltimetype icalproperty_get_due(const icalproperty* prop){
00882     icalerror_check_arg( (prop!=0),"prop");
00883     return icalvalue_get_datetime(icalproperty_get_value(prop));
00884 }
00885 icalproperty* icalproperty_vanew_duration(struct icaldurationtype v, ...){
00886    va_list args;
00887    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DURATION_PROPERTY);   
00888    icalproperty_set_duration((icalproperty*)impl,v);
00889    va_start(args,v);
00890    icalproperty_add_parameters(impl, args);
00891    va_end(args);
00892    return (icalproperty*)impl;
00893 }
00894 
00895 /* DURATION */
00896 icalproperty* icalproperty_new_duration(struct icaldurationtype v) {
00897    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DURATION_PROPERTY);   
00898    icalproperty_set_duration((icalproperty*)impl,v);
00899    return (icalproperty*)impl;
00900 }
00901 
00902 void icalproperty_set_duration(icalproperty* prop, struct icaldurationtype v){
00903     
00904     icalerror_check_arg_rv( (prop!=0),"prop");
00905     icalproperty_set_value(prop,icalvalue_new_duration(v));
00906 }
00907 struct icaldurationtype icalproperty_get_duration(const icalproperty* prop){
00908     icalerror_check_arg( (prop!=0),"prop");
00909     return icalvalue_get_duration(icalproperty_get_value(prop));
00910 }
00911 icalproperty* icalproperty_vanew_exdate(struct icaltimetype v, ...){
00912    va_list args;
00913    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_EXDATE_PROPERTY);   
00914    icalproperty_set_exdate((icalproperty*)impl,v);
00915    va_start(args,v);
00916    icalproperty_add_parameters(impl, args);
00917    va_end(args);
00918    return (icalproperty*)impl;
00919 }
00920 
00921 /* EXDATE */
00922 icalproperty* icalproperty_new_exdate(struct icaltimetype v) {
00923    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_EXDATE_PROPERTY);   
00924    icalproperty_set_exdate((icalproperty*)impl,v);
00925    return (icalproperty*)impl;
00926 }
00927 
00928 void icalproperty_set_exdate(icalproperty* prop, struct icaltimetype v){
00929     icalvalue *value;
00930     
00931     icalerror_check_arg_rv( (prop!=0),"prop");
00932     if (v.is_date)
00933         value = icalvalue_new_date(v);
00934     else
00935         value = icalvalue_new_datetime(v);
00936     icalproperty_set_value(prop,value);
00937 }
00938 struct icaltimetype icalproperty_get_exdate(const icalproperty* prop){
00939     icalerror_check_arg( (prop!=0),"prop");
00940     return icalvalue_get_datetime(icalproperty_get_value(prop));
00941 }
00942 icalproperty* icalproperty_vanew_expand(int v, ...){
00943    va_list args;
00944    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_EXPAND_PROPERTY);   
00945    icalproperty_set_expand((icalproperty*)impl,v);
00946    va_start(args,v);
00947    icalproperty_add_parameters(impl, args);
00948    va_end(args);
00949    return (icalproperty*)impl;
00950 }
00951 
00952 /* EXPAND */
00953 icalproperty* icalproperty_new_expand(int v) {
00954    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_EXPAND_PROPERTY);   
00955    icalproperty_set_expand((icalproperty*)impl,v);
00956    return (icalproperty*)impl;
00957 }
00958 
00959 void icalproperty_set_expand(icalproperty* prop, int v){
00960     
00961     icalerror_check_arg_rv( (prop!=0),"prop");
00962     icalproperty_set_value(prop,icalvalue_new_integer(v));
00963 }
00964 int icalproperty_get_expand(const icalproperty* prop){
00965     icalerror_check_arg( (prop!=0),"prop");
00966     return icalvalue_get_integer(icalproperty_get_value(prop));
00967 }
00968 icalproperty* icalproperty_vanew_exrule(struct icalrecurrencetype v, ...){
00969    va_list args;
00970    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_EXRULE_PROPERTY);   
00971    icalproperty_set_exrule((icalproperty*)impl,v);
00972    va_start(args,v);
00973    icalproperty_add_parameters(impl, args);
00974    va_end(args);
00975    return (icalproperty*)impl;
00976 }
00977 
00978 /* EXRULE */
00979 icalproperty* icalproperty_new_exrule(struct icalrecurrencetype v) {
00980    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_EXRULE_PROPERTY);   
00981    icalproperty_set_exrule((icalproperty*)impl,v);
00982    return (icalproperty*)impl;
00983 }
00984 
00985 void icalproperty_set_exrule(icalproperty* prop, struct icalrecurrencetype v){
00986     
00987     icalerror_check_arg_rv( (prop!=0),"prop");
00988     icalproperty_set_value(prop,icalvalue_new_recur(v));
00989 }
00990 struct icalrecurrencetype icalproperty_get_exrule(const icalproperty* prop){
00991     icalerror_check_arg( (prop!=0),"prop");
00992     return icalvalue_get_recur(icalproperty_get_value(prop));
00993 }
00994 icalproperty* icalproperty_vanew_freebusy(struct icalperiodtype v, ...){
00995    va_list args;
00996    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_FREEBUSY_PROPERTY);   
00997    icalproperty_set_freebusy((icalproperty*)impl,v);
00998    va_start(args,v);
00999    icalproperty_add_parameters(impl, args);
01000    va_end(args);
01001    return (icalproperty*)impl;
01002 }
01003 
01004 /* FREEBUSY */
01005 icalproperty* icalproperty_new_freebusy(struct icalperiodtype v) {
01006    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_FREEBUSY_PROPERTY);   
01007    icalproperty_set_freebusy((icalproperty*)impl,v);
01008    return (icalproperty*)impl;
01009 }
01010 
01011 void icalproperty_set_freebusy(icalproperty* prop, struct icalperiodtype v){
01012     
01013     icalerror_check_arg_rv( (prop!=0),"prop");
01014     icalproperty_set_value(prop,icalvalue_new_period(v));
01015 }
01016 struct icalperiodtype icalproperty_get_freebusy(const icalproperty* prop){
01017     icalerror_check_arg( (prop!=0),"prop");
01018     return icalvalue_get_period(icalproperty_get_value(prop));
01019 }
01020 icalproperty* icalproperty_vanew_geo(struct icalgeotype v, ...){
01021    va_list args;
01022    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_GEO_PROPERTY);   
01023    icalproperty_set_geo((icalproperty*)impl,v);
01024    va_start(args,v);
01025    icalproperty_add_parameters(impl, args);
01026    va_end(args);
01027    return (icalproperty*)impl;
01028 }
01029 
01030 /* GEO */
01031 icalproperty* icalproperty_new_geo(struct icalgeotype v) {
01032    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_GEO_PROPERTY);   
01033    icalproperty_set_geo((icalproperty*)impl,v);
01034    return (icalproperty*)impl;
01035 }
01036 
01037 void icalproperty_set_geo(icalproperty* prop, struct icalgeotype v){
01038     
01039     icalerror_check_arg_rv( (prop!=0),"prop");
01040     icalproperty_set_value(prop,icalvalue_new_geo(v));
01041 }
01042 struct icalgeotype icalproperty_get_geo(const icalproperty* prop){
01043     icalerror_check_arg( (prop!=0),"prop");
01044     return icalvalue_get_geo(icalproperty_get_value(prop));
01045 }
01046 icalproperty* icalproperty_vanew_lastmodified(struct icaltimetype v, ...){
01047    va_list args;
01048    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_LASTMODIFIED_PROPERTY);   
01049    icalproperty_set_lastmodified((icalproperty*)impl,v);
01050    va_start(args,v);
01051    icalproperty_add_parameters(impl, args);
01052    va_end(args);
01053    return (icalproperty*)impl;
01054 }
01055 
01056 /* LAST-MODIFIED */
01057 icalproperty* icalproperty_new_lastmodified(struct icaltimetype v) {
01058    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_LASTMODIFIED_PROPERTY);   
01059    icalproperty_set_lastmodified((icalproperty*)impl,v);
01060    return (icalproperty*)impl;
01061 }
01062 
01063 void icalproperty_set_lastmodified(icalproperty* prop, struct icaltimetype v){
01064     
01065     icalerror_check_arg_rv( (prop!=0),"prop");
01066     icalproperty_set_value(prop,icalvalue_new_datetime(v));
01067 }
01068 struct icaltimetype icalproperty_get_lastmodified(const icalproperty* prop){
01069     icalerror_check_arg( (prop!=0),"prop");
01070     return icalvalue_get_datetime(icalproperty_get_value(prop));
01071 }
01072 icalproperty* icalproperty_vanew_location(const char* v, ...){
01073    va_list args;
01074    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_LOCATION_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01075 
01076    icalproperty_set_location((icalproperty*)impl,v);
01077    va_start(args,v);
01078    icalproperty_add_parameters(impl, args);
01079    va_end(args);
01080    return (icalproperty*)impl;
01081 }
01082 
01083 /* LOCATION */
01084 icalproperty* icalproperty_new_location(const char* v) {
01085    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_LOCATION_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01086 
01087    icalproperty_set_location((icalproperty*)impl,v);
01088    return (icalproperty*)impl;
01089 }
01090 
01091 void icalproperty_set_location(icalproperty* prop, const char* v){
01092     icalerror_check_arg_rv( (v!=0),"v");
01093 
01094     icalerror_check_arg_rv( (prop!=0),"prop");
01095     icalproperty_set_value(prop,icalvalue_new_text(v));
01096 }
01097 const char* icalproperty_get_location(const icalproperty* prop){
01098     icalerror_check_arg( (prop!=0),"prop");
01099     return icalvalue_get_text(icalproperty_get_value(prop));
01100 }
01101 icalproperty* icalproperty_vanew_maxresults(int v, ...){
01102    va_list args;
01103    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_MAXRESULTS_PROPERTY);   
01104    icalproperty_set_maxresults((icalproperty*)impl,v);
01105    va_start(args,v);
01106    icalproperty_add_parameters(impl, args);
01107    va_end(args);
01108    return (icalproperty*)impl;
01109 }
01110 
01111 /* MAXRESULTS */
01112 icalproperty* icalproperty_new_maxresults(int v) {
01113    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_MAXRESULTS_PROPERTY);   
01114    icalproperty_set_maxresults((icalproperty*)impl,v);
01115    return (icalproperty*)impl;
01116 }
01117 
01118 void icalproperty_set_maxresults(icalproperty* prop, int v){
01119     
01120     icalerror_check_arg_rv( (prop!=0),"prop");
01121     icalproperty_set_value(prop,icalvalue_new_integer(v));
01122 }
01123 int icalproperty_get_maxresults(const icalproperty* prop){
01124     icalerror_check_arg( (prop!=0),"prop");
01125     return icalvalue_get_integer(icalproperty_get_value(prop));
01126 }
01127 icalproperty* icalproperty_vanew_maxresultssize(int v, ...){
01128    va_list args;
01129    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_MAXRESULTSSIZE_PROPERTY);   
01130    icalproperty_set_maxresultssize((icalproperty*)impl,v);
01131    va_start(args,v);
01132    icalproperty_add_parameters(impl, args);
01133    va_end(args);
01134    return (icalproperty*)impl;
01135 }
01136 
01137 /* MAXRESULTSSIZE */
01138 icalproperty* icalproperty_new_maxresultssize(int v) {
01139    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_MAXRESULTSSIZE_PROPERTY);   
01140    icalproperty_set_maxresultssize((icalproperty*)impl,v);
01141    return (icalproperty*)impl;
01142 }
01143 
01144 void icalproperty_set_maxresultssize(icalproperty* prop, int v){
01145     
01146     icalerror_check_arg_rv( (prop!=0),"prop");
01147     icalproperty_set_value(prop,icalvalue_new_integer(v));
01148 }
01149 int icalproperty_get_maxresultssize(const icalproperty* prop){
01150     icalerror_check_arg( (prop!=0),"prop");
01151     return icalvalue_get_integer(icalproperty_get_value(prop));
01152 }
01153 icalproperty* icalproperty_vanew_method(enum icalproperty_method v, ...){
01154    va_list args;
01155    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_METHOD_PROPERTY);   
01156    icalproperty_set_method((icalproperty*)impl,v);
01157    va_start(args,v);
01158    icalproperty_add_parameters(impl, args);
01159    va_end(args);
01160    return (icalproperty*)impl;
01161 }
01162 
01163 /* METHOD */
01164 icalproperty* icalproperty_new_method(enum icalproperty_method v) {
01165    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_METHOD_PROPERTY);   
01166    icalproperty_set_method((icalproperty*)impl,v);
01167    return (icalproperty*)impl;
01168 }
01169 
01170 void icalproperty_set_method(icalproperty* prop, enum icalproperty_method v){
01171     
01172     icalerror_check_arg_rv( (prop!=0),"prop");
01173     icalproperty_set_value(prop,icalvalue_new_method(v));
01174 }
01175 enum icalproperty_method icalproperty_get_method(const icalproperty* prop){
01176     icalerror_check_arg( (prop!=0),"prop");
01177     return icalvalue_get_method(icalproperty_get_value(prop));
01178 }
01179 icalproperty* icalproperty_vanew_organizer(const char* v, ...){
01180    va_list args;
01181    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_ORGANIZER_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01182 
01183    icalproperty_set_organizer((icalproperty*)impl,v);
01184    va_start(args,v);
01185    icalproperty_add_parameters(impl, args);
01186    va_end(args);
01187    return (icalproperty*)impl;
01188 }
01189 
01190 /* ORGANIZER */
01191 icalproperty* icalproperty_new_organizer(const char* v) {
01192    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_ORGANIZER_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01193 
01194    icalproperty_set_organizer((icalproperty*)impl,v);
01195    return (icalproperty*)impl;
01196 }
01197 
01198 void icalproperty_set_organizer(icalproperty* prop, const char* v){
01199     icalerror_check_arg_rv( (v!=0),"v");
01200 
01201     icalerror_check_arg_rv( (prop!=0),"prop");
01202     icalproperty_set_value(prop,icalvalue_new_caladdress(v));
01203 }
01204 const char* icalproperty_get_organizer(const icalproperty* prop){
01205     icalerror_check_arg( (prop!=0),"prop");
01206     return icalvalue_get_caladdress(icalproperty_get_value(prop));
01207 }
01208 icalproperty* icalproperty_vanew_owner(const char* v, ...){
01209    va_list args;
01210    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_OWNER_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01211 
01212    icalproperty_set_owner((icalproperty*)impl,v);
01213    va_start(args,v);
01214    icalproperty_add_parameters(impl, args);
01215    va_end(args);
01216    return (icalproperty*)impl;
01217 }
01218 
01219 /* OWNER */
01220 icalproperty* icalproperty_new_owner(const char* v) {
01221    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_OWNER_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01222 
01223    icalproperty_set_owner((icalproperty*)impl,v);
01224    return (icalproperty*)impl;
01225 }
01226 
01227 void icalproperty_set_owner(icalproperty* prop, const char* v){
01228     icalerror_check_arg_rv( (v!=0),"v");
01229 
01230     icalerror_check_arg_rv( (prop!=0),"prop");
01231     icalproperty_set_value(prop,icalvalue_new_text(v));
01232 }
01233 const char* icalproperty_get_owner(const icalproperty* prop){
01234     icalerror_check_arg( (prop!=0),"prop");
01235     return icalvalue_get_text(icalproperty_get_value(prop));
01236 }
01237 icalproperty* icalproperty_vanew_percentcomplete(int v, ...){
01238    va_list args;
01239    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_PERCENTCOMPLETE_PROPERTY);   
01240    icalproperty_set_percentcomplete((icalproperty*)impl,v);
01241    va_start(args,v);
01242    icalproperty_add_parameters(impl, args);
01243    va_end(args);
01244    return (icalproperty*)impl;
01245 }
01246 
01247 /* PERCENT-COMPLETE */
01248 icalproperty* icalproperty_new_percentcomplete(int v) {
01249    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_PERCENTCOMPLETE_PROPERTY);   
01250    icalproperty_set_percentcomplete((icalproperty*)impl,v);
01251    return (icalproperty*)impl;
01252 }
01253 
01254 void icalproperty_set_percentcomplete(icalproperty* prop, int v){
01255     
01256     icalerror_check_arg_rv( (prop!=0),"prop");
01257     icalproperty_set_value(prop,icalvalue_new_integer(v));
01258 }
01259 int icalproperty_get_percentcomplete(const icalproperty* prop){
01260     icalerror_check_arg( (prop!=0),"prop");
01261     return icalvalue_get_integer(icalproperty_get_value(prop));
01262 }
01263 icalproperty* icalproperty_vanew_priority(int v, ...){
01264    va_list args;
01265    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_PRIORITY_PROPERTY);   
01266    icalproperty_set_priority((icalproperty*)impl,v);
01267    va_start(args,v);
01268    icalproperty_add_parameters(impl, args);
01269    va_end(args);
01270    return (icalproperty*)impl;
01271 }
01272 
01273 /* PRIORITY */
01274 icalproperty* icalproperty_new_priority(int v) {
01275    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_PRIORITY_PROPERTY);   
01276    icalproperty_set_priority((icalproperty*)impl,v);
01277    return (icalproperty*)impl;
01278 }
01279 
01280 void icalproperty_set_priority(icalproperty* prop, int v){
01281     
01282     icalerror_check_arg_rv( (prop!=0),"prop");
01283     icalproperty_set_value(prop,icalvalue_new_integer(v));
01284 }
01285 int icalproperty_get_priority(const icalproperty* prop){
01286     icalerror_check_arg( (prop!=0),"prop");
01287     return icalvalue_get_integer(icalproperty_get_value(prop));
01288 }
01289 icalproperty* icalproperty_vanew_prodid(const char* v, ...){
01290    va_list args;
01291    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_PRODID_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01292 
01293    icalproperty_set_prodid((icalproperty*)impl,v);
01294    va_start(args,v);
01295    icalproperty_add_parameters(impl, args);
01296    va_end(args);
01297    return (icalproperty*)impl;
01298 }
01299 
01300 /* PRODID */
01301 icalproperty* icalproperty_new_prodid(const char* v) {
01302    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_PRODID_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01303 
01304    icalproperty_set_prodid((icalproperty*)impl,v);
01305    return (icalproperty*)impl;
01306 }
01307 
01308 void icalproperty_set_prodid(icalproperty* prop, const char* v){
01309     icalerror_check_arg_rv( (v!=0),"v");
01310 
01311     icalerror_check_arg_rv( (prop!=0),"prop");
01312     icalproperty_set_value(prop,icalvalue_new_text(v));
01313 }
01314 const char* icalproperty_get_prodid(const icalproperty* prop){
01315     icalerror_check_arg( (prop!=0),"prop");
01316     return icalvalue_get_text(icalproperty_get_value(prop));
01317 }
01318 icalproperty* icalproperty_vanew_query(const char* v, ...){
01319    va_list args;
01320    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_QUERY_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01321 
01322    icalproperty_set_query((icalproperty*)impl,v);
01323    va_start(args,v);
01324    icalproperty_add_parameters(impl, args);
01325    va_end(args);
01326    return (icalproperty*)impl;
01327 }
01328 
01329 /* QUERY */
01330 icalproperty* icalproperty_new_query(const char* v) {
01331    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_QUERY_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01332 
01333    icalproperty_set_query((icalproperty*)impl,v);
01334    return (icalproperty*)impl;
01335 }
01336 
01337 void icalproperty_set_query(icalproperty* prop, const char* v){
01338     icalerror_check_arg_rv( (v!=0),"v");
01339 
01340     icalerror_check_arg_rv( (prop!=0),"prop");
01341     icalproperty_set_value(prop,icalvalue_new_query(v));
01342 }
01343 const char* icalproperty_get_query(const icalproperty* prop){
01344     icalerror_check_arg( (prop!=0),"prop");
01345     return icalvalue_get_query(icalproperty_get_value(prop));
01346 }
01347 icalproperty* icalproperty_vanew_queryname(const char* v, ...){
01348    va_list args;
01349    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_QUERYNAME_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01350 
01351    icalproperty_set_queryname((icalproperty*)impl,v);
01352    va_start(args,v);
01353    icalproperty_add_parameters(impl, args);
01354    va_end(args);
01355    return (icalproperty*)impl;
01356 }
01357 
01358 /* QUERYNAME */
01359 icalproperty* icalproperty_new_queryname(const char* v) {
01360    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_QUERYNAME_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01361 
01362    icalproperty_set_queryname((icalproperty*)impl,v);
01363    return (icalproperty*)impl;
01364 }
01365 
01366 void icalproperty_set_queryname(icalproperty* prop, const char* v){
01367     icalerror_check_arg_rv( (v!=0),"v");
01368 
01369     icalerror_check_arg_rv( (prop!=0),"prop");
01370     icalproperty_set_value(prop,icalvalue_new_text(v));
01371 }
01372 const char* icalproperty_get_queryname(const icalproperty* prop){
01373     icalerror_check_arg( (prop!=0),"prop");
01374     return icalvalue_get_text(icalproperty_get_value(prop));
01375 }
01376 icalproperty* icalproperty_vanew_rdate(struct icaldatetimeperiodtype v, ...){
01377    va_list args;
01378    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_RDATE_PROPERTY);   
01379    icalproperty_set_rdate((icalproperty*)impl,v);
01380    va_start(args,v);
01381    icalproperty_add_parameters(impl, args);
01382    va_end(args);
01383    return (icalproperty*)impl;
01384 }
01385 
01386 /* RDATE */
01387 icalproperty* icalproperty_new_rdate(struct icaldatetimeperiodtype v) {
01388    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_RDATE_PROPERTY);   
01389    icalproperty_set_rdate((icalproperty*)impl,v);
01390    return (icalproperty*)impl;
01391 }
01392 
01393 void icalproperty_set_rdate(icalproperty* prop, struct icaldatetimeperiodtype v){
01394     
01395     icalerror_check_arg_rv( (prop!=0),"prop");
01396     icalproperty_set_value(prop,icalvalue_new_datetimeperiod(v));
01397 }
01398 struct icaldatetimeperiodtype icalproperty_get_rdate(const icalproperty* prop){
01399     icalerror_check_arg( (prop!=0),"prop");
01400     return icalvalue_get_datetimeperiod(icalproperty_get_value(prop));
01401 }
01402 icalproperty* icalproperty_vanew_recurrenceid(struct icaltimetype v, ...){
01403    va_list args;
01404    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_RECURRENCEID_PROPERTY);   
01405    icalproperty_set_recurrenceid((icalproperty*)impl,v);
01406    va_start(args,v);
01407    icalproperty_add_parameters(impl, args);
01408    va_end(args);
01409    return (icalproperty*)impl;
01410 }
01411 
01412 /* RECURRENCE-ID */
01413 icalproperty* icalproperty_new_recurrenceid(struct icaltimetype v) {
01414    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_RECURRENCEID_PROPERTY);   
01415    icalproperty_set_recurrenceid((icalproperty*)impl,v);
01416    return (icalproperty*)impl;
01417 }
01418 
01419 void icalproperty_set_recurrenceid(icalproperty* prop, struct icaltimetype v){
01420     icalvalue *value;
01421     
01422     icalerror_check_arg_rv( (prop!=0),"prop");
01423     if (v.is_date)
01424         value = icalvalue_new_date(v);
01425     else
01426         value = icalvalue_new_datetime(v);
01427     icalproperty_set_value(prop,value);
01428 }
01429 struct icaltimetype icalproperty_get_recurrenceid(const icalproperty* prop){
01430     icalerror_check_arg( (prop!=0),"prop");
01431     return icalvalue_get_datetime(icalproperty_get_value(prop));
01432 }
01433 icalproperty* icalproperty_vanew_relatedto(const char* v, ...){
01434    va_list args;
01435    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_RELATEDTO_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01436 
01437    icalproperty_set_relatedto((icalproperty*)impl,v);
01438    va_start(args,v);
01439    icalproperty_add_parameters(impl, args);
01440    va_end(args);
01441    return (icalproperty*)impl;
01442 }
01443 
01444 /* RELATED-TO */
01445 icalproperty* icalproperty_new_relatedto(const char* v) {
01446    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_RELATEDTO_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01447 
01448    icalproperty_set_relatedto((icalproperty*)impl,v);
01449    return (icalproperty*)impl;
01450 }
01451 
01452 void icalproperty_set_relatedto(icalproperty* prop, const char* v){
01453     icalerror_check_arg_rv( (v!=0),"v");
01454 
01455     icalerror_check_arg_rv( (prop!=0),"prop");
01456     icalproperty_set_value(prop,icalvalue_new_text(v));
01457 }
01458 const char* icalproperty_get_relatedto(const icalproperty* prop){
01459     icalerror_check_arg( (prop!=0),"prop");
01460     return icalvalue_get_text(icalproperty_get_value(prop));
01461 }
01462 icalproperty* icalproperty_vanew_relcalid(const char* v, ...){
01463    va_list args;
01464    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_RELCALID_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01465 
01466    icalproperty_set_relcalid((icalproperty*)impl,v);
01467    va_start(args,v);
01468    icalproperty_add_parameters(impl, args);
01469    va_end(args);
01470    return (icalproperty*)impl;
01471 }
01472 
01473 /* RELCALID */
01474 icalproperty* icalproperty_new_relcalid(const char* v) {
01475    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_RELCALID_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01476 
01477    icalproperty_set_relcalid((icalproperty*)impl,v);
01478    return (icalproperty*)impl;
01479 }
01480 
01481 void icalproperty_set_relcalid(icalproperty* prop, const char* v){
01482     icalerror_check_arg_rv( (v!=0),"v");
01483 
01484     icalerror_check_arg_rv( (prop!=0),"prop");
01485     icalproperty_set_value(prop,icalvalue_new_text(v));
01486 }
01487 const char* icalproperty_get_relcalid(const icalproperty* prop){
01488     icalerror_check_arg( (prop!=0),"prop");
01489     return icalvalue_get_text(icalproperty_get_value(prop));
01490 }
01491 icalproperty* icalproperty_vanew_repeat(int v, ...){
01492    va_list args;
01493    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_REPEAT_PROPERTY);   
01494    icalproperty_set_repeat((icalproperty*)impl,v);
01495    va_start(args,v);
01496    icalproperty_add_parameters(impl, args);
01497    va_end(args);
01498    return (icalproperty*)impl;
01499 }
01500 
01501 /* REPEAT */
01502 icalproperty* icalproperty_new_repeat(int v) {
01503    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_REPEAT_PROPERTY);   
01504    icalproperty_set_repeat((icalproperty*)impl,v);
01505    return (icalproperty*)impl;
01506 }
01507 
01508 void icalproperty_set_repeat(icalproperty* prop, int v){
01509     
01510     icalerror_check_arg_rv( (prop!=0),"prop");
01511     icalproperty_set_value(prop,icalvalue_new_integer(v));
01512 }
01513 int icalproperty_get_repeat(const icalproperty* prop){
01514     icalerror_check_arg( (prop!=0),"prop");
01515     return icalvalue_get_integer(icalproperty_get_value(prop));
01516 }
01517 icalproperty* icalproperty_vanew_requeststatus(struct icalreqstattype v, ...){
01518    va_list args;
01519    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_REQUESTSTATUS_PROPERTY);   
01520    icalproperty_set_requeststatus((icalproperty*)impl,v);
01521    va_start(args,v);
01522    icalproperty_add_parameters(impl, args);
01523    va_end(args);
01524    return (icalproperty*)impl;
01525 }
01526 
01527 /* REQUEST-STATUS */
01528 icalproperty* icalproperty_new_requeststatus(struct icalreqstattype v) {
01529    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_REQUESTSTATUS_PROPERTY);   
01530    icalproperty_set_requeststatus((icalproperty*)impl,v);
01531    return (icalproperty*)impl;
01532 }
01533 
01534 void icalproperty_set_requeststatus(icalproperty* prop, struct icalreqstattype v){
01535     
01536     icalerror_check_arg_rv( (prop!=0),"prop");
01537     icalproperty_set_value(prop,icalvalue_new_requeststatus(v));
01538 }
01539 struct icalreqstattype icalproperty_get_requeststatus(const icalproperty* prop){
01540     icalerror_check_arg( (prop!=0),"prop");
01541     return icalvalue_get_requeststatus(icalproperty_get_value(prop));
01542 }
01543 icalproperty* icalproperty_vanew_resources(const char* v, ...){
01544    va_list args;
01545    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_RESOURCES_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01546 
01547    icalproperty_set_resources((icalproperty*)impl,v);
01548    va_start(args,v);
01549    icalproperty_add_parameters(impl, args);
01550    va_end(args);
01551    return (icalproperty*)impl;
01552 }
01553 
01554 /* RESOURCES */
01555 icalproperty* icalproperty_new_resources(const char* v) {
01556    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_RESOURCES_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01557 
01558    icalproperty_set_resources((icalproperty*)impl,v);
01559    return (icalproperty*)impl;
01560 }
01561 
01562 void icalproperty_set_resources(icalproperty* prop, const char* v){
01563     icalerror_check_arg_rv( (v!=0),"v");
01564 
01565     icalerror_check_arg_rv( (prop!=0),"prop");
01566     icalproperty_set_value(prop,icalvalue_new_text(v));
01567 }
01568 const char* icalproperty_get_resources(const icalproperty* prop){
01569     icalerror_check_arg( (prop!=0),"prop");
01570     return icalvalue_get_text(icalproperty_get_value(prop));
01571 }
01572 icalproperty* icalproperty_vanew_rrule(struct icalrecurrencetype v, ...){
01573    va_list args;
01574    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_RRULE_PROPERTY);   
01575    icalproperty_set_rrule((icalproperty*)impl,v);
01576    va_start(args,v);
01577    icalproperty_add_parameters(impl, args);
01578    va_end(args);
01579    return (icalproperty*)impl;
01580 }
01581 
01582 /* RRULE */
01583 icalproperty* icalproperty_new_rrule(struct icalrecurrencetype v) {
01584    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_RRULE_PROPERTY);   
01585    icalproperty_set_rrule((icalproperty*)impl,v);
01586    return (icalproperty*)impl;
01587 }
01588 
01589 void icalproperty_set_rrule(icalproperty* prop, struct icalrecurrencetype v){
01590     
01591     icalerror_check_arg_rv( (prop!=0),"prop");
01592     icalproperty_set_value(prop,icalvalue_new_recur(v));
01593 }
01594 struct icalrecurrencetype icalproperty_get_rrule(const icalproperty* prop){
01595     icalerror_check_arg( (prop!=0),"prop");
01596     return icalvalue_get_recur(icalproperty_get_value(prop));
01597 }
01598 icalproperty* icalproperty_vanew_scope(const char* v, ...){
01599    va_list args;
01600    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_SCOPE_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01601 
01602    icalproperty_set_scope((icalproperty*)impl,v);
01603    va_start(args,v);
01604    icalproperty_add_parameters(impl, args);
01605    va_end(args);
01606    return (icalproperty*)impl;
01607 }
01608 
01609 /* SCOPE */
01610 icalproperty* icalproperty_new_scope(const char* v) {
01611    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_SCOPE_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01612 
01613    icalproperty_set_scope((icalproperty*)impl,v);
01614    return (icalproperty*)impl;
01615 }
01616 
01617 void icalproperty_set_scope(icalproperty* prop, const char* v){
01618     icalerror_check_arg_rv( (v!=0),"v");
01619 
01620     icalerror_check_arg_rv( (prop!=0),"prop");
01621     icalproperty_set_value(prop,icalvalue_new_text(v));
01622 }
01623 const char* icalproperty_get_scope(const icalproperty* prop){
01624     icalerror_check_arg( (prop!=0),"prop");
01625     return icalvalue_get_text(icalproperty_get_value(prop));
01626 }
01627 icalproperty* icalproperty_vanew_sequence(int v, ...){
01628    va_list args;
01629    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_SEQUENCE_PROPERTY);   
01630    icalproperty_set_sequence((icalproperty*)impl,v);
01631    va_start(args,v);
01632    icalproperty_add_parameters(impl, args);
01633    va_end(args);
01634    return (icalproperty*)impl;
01635 }
01636 
01637 /* SEQUENCE */
01638 icalproperty* icalproperty_new_sequence(int v) {
01639    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_SEQUENCE_PROPERTY);   
01640    icalproperty_set_sequence((icalproperty*)impl,v);
01641    return (icalproperty*)impl;
01642 }
01643 
01644 void icalproperty_set_sequence(icalproperty* prop, int v){
01645     
01646     icalerror_check_arg_rv( (prop!=0),"prop");
01647     icalproperty_set_value(prop,icalvalue_new_integer(v));
01648 }
01649 int icalproperty_get_sequence(const icalproperty* prop){
01650     icalerror_check_arg( (prop!=0),"prop");
01651     return icalvalue_get_integer(icalproperty_get_value(prop));
01652 }
01653 icalproperty* icalproperty_vanew_status(enum icalproperty_status v, ...){
01654    va_list args;
01655    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_STATUS_PROPERTY);   
01656    icalproperty_set_status((icalproperty*)impl,v);
01657    va_start(args,v);
01658    icalproperty_add_parameters(impl, args);
01659    va_end(args);
01660    return (icalproperty*)impl;
01661 }
01662 
01663 /* STATUS */
01664 icalproperty* icalproperty_new_status(enum icalproperty_status v) {
01665    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_STATUS_PROPERTY);   
01666    icalproperty_set_status((icalproperty*)impl,v);
01667    return (icalproperty*)impl;
01668 }
01669 
01670 void icalproperty_set_status(icalproperty* prop, enum icalproperty_status v){
01671     
01672     icalerror_check_arg_rv( (prop!=0),"prop");
01673     icalproperty_set_value(prop,icalvalue_new_status(v));
01674 }
01675 enum icalproperty_status icalproperty_get_status(const icalproperty* prop){
01676     icalerror_check_arg( (prop!=0),"prop");
01677     return icalvalue_get_status(icalproperty_get_value(prop));
01678 }
01679 icalproperty* icalproperty_vanew_summary(const char* v, ...){
01680    va_list args;
01681    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_SUMMARY_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01682 
01683    icalproperty_set_summary((icalproperty*)impl,v);
01684    va_start(args,v);
01685    icalproperty_add_parameters(impl, args);
01686    va_end(args);
01687    return (icalproperty*)impl;
01688 }
01689 
01690 /* SUMMARY */
01691 icalproperty* icalproperty_new_summary(const char* v) {
01692    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_SUMMARY_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01693 
01694    icalproperty_set_summary((icalproperty*)impl,v);
01695    return (icalproperty*)impl;
01696 }
01697 
01698 void icalproperty_set_summary(icalproperty* prop, const char* v){
01699     icalerror_check_arg_rv( (v!=0),"v");
01700 
01701     icalerror_check_arg_rv( (prop!=0),"prop");
01702     icalproperty_set_value(prop,icalvalue_new_text(v));
01703 }
01704 const char* icalproperty_get_summary(const icalproperty* prop){
01705     icalerror_check_arg( (prop!=0),"prop");
01706     return icalvalue_get_text(icalproperty_get_value(prop));
01707 }
01708 icalproperty* icalproperty_vanew_target(const char* v, ...){
01709    va_list args;
01710    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TARGET_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01711 
01712    icalproperty_set_target((icalproperty*)impl,v);
01713    va_start(args,v);
01714    icalproperty_add_parameters(impl, args);
01715    va_end(args);
01716    return (icalproperty*)impl;
01717 }
01718 
01719 /* TARGET */
01720 icalproperty* icalproperty_new_target(const char* v) {
01721    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TARGET_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01722 
01723    icalproperty_set_target((icalproperty*)impl,v);
01724    return (icalproperty*)impl;
01725 }
01726 
01727 void icalproperty_set_target(icalproperty* prop, const char* v){
01728     icalerror_check_arg_rv( (v!=0),"v");
01729 
01730     icalerror_check_arg_rv( (prop!=0),"prop");
01731     icalproperty_set_value(prop,icalvalue_new_caladdress(v));
01732 }
01733 const char* icalproperty_get_target(const icalproperty* prop){
01734     icalerror_check_arg( (prop!=0),"prop");
01735     return icalvalue_get_caladdress(icalproperty_get_value(prop));
01736 }
01737 icalproperty* icalproperty_vanew_transp(enum icalproperty_transp v, ...){
01738    va_list args;
01739    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TRANSP_PROPERTY);   
01740    icalproperty_set_transp((icalproperty*)impl,v);
01741    va_start(args,v);
01742    icalproperty_add_parameters(impl, args);
01743    va_end(args);
01744    return (icalproperty*)impl;
01745 }
01746 
01747 /* TRANSP */
01748 icalproperty* icalproperty_new_transp(enum icalproperty_transp v) {
01749    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TRANSP_PROPERTY);   
01750    icalproperty_set_transp((icalproperty*)impl,v);
01751    return (icalproperty*)impl;
01752 }
01753 
01754 void icalproperty_set_transp(icalproperty* prop, enum icalproperty_transp v){
01755     
01756     icalerror_check_arg_rv( (prop!=0),"prop");
01757     icalproperty_set_value(prop,icalvalue_new_transp(v));
01758 }
01759 enum icalproperty_transp icalproperty_get_transp(const icalproperty* prop){
01760     icalerror_check_arg( (prop!=0),"prop");
01761     return icalvalue_get_transp(icalproperty_get_value(prop));
01762 }
01763 icalproperty* icalproperty_vanew_trigger(struct icaltriggertype v, ...){
01764    va_list args;
01765    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TRIGGER_PROPERTY);   
01766    icalproperty_set_trigger((icalproperty*)impl,v);
01767    va_start(args,v);
01768    icalproperty_add_parameters(impl, args);
01769    va_end(args);
01770    return (icalproperty*)impl;
01771 }
01772 
01773 /* TRIGGER */
01774 icalproperty* icalproperty_new_trigger(struct icaltriggertype v) {
01775    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TRIGGER_PROPERTY);   
01776    icalproperty_set_trigger((icalproperty*)impl,v);
01777    return (icalproperty*)impl;
01778 }
01779 
01780 void icalproperty_set_trigger(icalproperty* prop, struct icaltriggertype v){
01781     
01782     icalerror_check_arg_rv( (prop!=0),"prop");
01783     icalproperty_set_value(prop,icalvalue_new_trigger(v));
01784 }
01785 struct icaltriggertype icalproperty_get_trigger(const icalproperty* prop){
01786     icalerror_check_arg( (prop!=0),"prop");
01787     return icalvalue_get_trigger(icalproperty_get_value(prop));
01788 }
01789 icalproperty* icalproperty_vanew_tzid(const char* v, ...){
01790    va_list args;
01791    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TZID_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01792 
01793    icalproperty_set_tzid((icalproperty*)impl,v);
01794    va_start(args,v);
01795    icalproperty_add_parameters(impl, args);
01796    va_end(args);
01797    return (icalproperty*)impl;
01798 }
01799 
01800 /* TZID */
01801 icalproperty* icalproperty_new_tzid(const char* v) {
01802    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TZID_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01803 
01804    icalproperty_set_tzid((icalproperty*)impl,v);
01805    return (icalproperty*)impl;
01806 }
01807 
01808 void icalproperty_set_tzid(icalproperty* prop, const char* v){
01809     icalerror_check_arg_rv( (v!=0),"v");
01810 
01811     icalerror_check_arg_rv( (prop!=0),"prop");
01812     icalproperty_set_value(prop,icalvalue_new_text(v));
01813 }
01814 const char* icalproperty_get_tzid(const icalproperty* prop){
01815     icalerror_check_arg( (prop!=0),"prop");
01816     return icalvalue_get_text(icalproperty_get_value(prop));
01817 }
01818 icalproperty* icalproperty_vanew_tzname(const char* v, ...){
01819    va_list args;
01820    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TZNAME_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01821 
01822    icalproperty_set_tzname((icalproperty*)impl,v);
01823    va_start(args,v);
01824    icalproperty_add_parameters(impl, args);
01825    va_end(args);
01826    return (icalproperty*)impl;
01827 }
01828 
01829 /* TZNAME */
01830 icalproperty* icalproperty_new_tzname(const char* v) {
01831    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TZNAME_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01832 
01833    icalproperty_set_tzname((icalproperty*)impl,v);
01834    return (icalproperty*)impl;
01835 }
01836 
01837 void icalproperty_set_tzname(icalproperty* prop, const char* v){
01838     icalerror_check_arg_rv( (v!=0),"v");
01839 
01840     icalerror_check_arg_rv( (prop!=0),"prop");
01841     icalproperty_set_value(prop,icalvalue_new_text(v));
01842 }
01843 const char* icalproperty_get_tzname(const icalproperty* prop){
01844     icalerror_check_arg( (prop!=0),"prop");
01845     return icalvalue_get_text(icalproperty_get_value(prop));
01846 }
01847 icalproperty* icalproperty_vanew_tzoffsetfrom(int v, ...){
01848    va_list args;
01849    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TZOFFSETFROM_PROPERTY);   
01850    icalproperty_set_tzoffsetfrom((icalproperty*)impl,v);
01851    va_start(args,v);
01852    icalproperty_add_parameters(impl, args);
01853    va_end(args);
01854    return (icalproperty*)impl;
01855 }
01856 
01857 /* TZOFFSETFROM */
01858 icalproperty* icalproperty_new_tzoffsetfrom(int v) {
01859    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TZOFFSETFROM_PROPERTY);   
01860    icalproperty_set_tzoffsetfrom((icalproperty*)impl,v);
01861    return (icalproperty*)impl;
01862 }
01863 
01864 void icalproperty_set_tzoffsetfrom(icalproperty* prop, int v){
01865     
01866     icalerror_check_arg_rv( (prop!=0),"prop");
01867     icalproperty_set_value(prop,icalvalue_new_utcoffset(v));
01868 }
01869 int icalproperty_get_tzoffsetfrom(const icalproperty* prop){
01870     icalerror_check_arg( (prop!=0),"prop");
01871     return icalvalue_get_utcoffset(icalproperty_get_value(prop));
01872 }
01873 icalproperty* icalproperty_vanew_tzoffsetto(int v, ...){
01874    va_list args;
01875    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TZOFFSETTO_PROPERTY);   
01876    icalproperty_set_tzoffsetto((icalproperty*)impl,v);
01877    va_start(args,v);
01878    icalproperty_add_parameters(impl, args);
01879    va_end(args);
01880    return (icalproperty*)impl;
01881 }
01882 
01883 /* TZOFFSETTO */
01884 icalproperty* icalproperty_new_tzoffsetto(int v) {
01885    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TZOFFSETTO_PROPERTY);   
01886    icalproperty_set_tzoffsetto((icalproperty*)impl,v);
01887    return (icalproperty*)impl;
01888 }
01889 
01890 void icalproperty_set_tzoffsetto(icalproperty* prop, int v){
01891     
01892     icalerror_check_arg_rv( (prop!=0),"prop");
01893     icalproperty_set_value(prop,icalvalue_new_utcoffset(v));
01894 }
01895 int icalproperty_get_tzoffsetto(const icalproperty* prop){
01896     icalerror_check_arg( (prop!=0),"prop");
01897     return icalvalue_get_utcoffset(icalproperty_get_value(prop));
01898 }
01899 icalproperty* icalproperty_vanew_tzurl(const char* v, ...){
01900    va_list args;
01901    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TZURL_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01902 
01903    icalproperty_set_tzurl((icalproperty*)impl,v);
01904    va_start(args,v);
01905    icalproperty_add_parameters(impl, args);
01906    va_end(args);
01907    return (icalproperty*)impl;
01908 }
01909 
01910 /* TZURL */
01911 icalproperty* icalproperty_new_tzurl(const char* v) {
01912    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TZURL_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01913 
01914    icalproperty_set_tzurl((icalproperty*)impl,v);
01915    return (icalproperty*)impl;
01916 }
01917 
01918 void icalproperty_set_tzurl(icalproperty* prop, const char* v){
01919     icalerror_check_arg_rv( (v!=0),"v");
01920 
01921     icalerror_check_arg_rv( (prop!=0),"prop");
01922     icalproperty_set_value(prop,icalvalue_new_uri(v));
01923 }
01924 const char* icalproperty_get_tzurl(const icalproperty* prop){
01925     icalerror_check_arg( (prop!=0),"prop");
01926     return icalvalue_get_uri(icalproperty_get_value(prop));
01927 }
01928 icalproperty* icalproperty_vanew_uid(const char* v, ...){
01929    va_list args;
01930    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_UID_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01931 
01932    icalproperty_set_uid((icalproperty*)impl,v);
01933    va_start(args,v);
01934    icalproperty_add_parameters(impl, args);
01935    va_end(args);
01936    return (icalproperty*)impl;
01937 }
01938 
01939 /* UID */
01940 icalproperty* icalproperty_new_uid(const char* v) {
01941    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_UID_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01942 
01943    icalproperty_set_uid((icalproperty*)impl,v);
01944    return (icalproperty*)impl;
01945 }
01946 
01947 void icalproperty_set_uid(icalproperty* prop, const char* v){
01948     icalerror_check_arg_rv( (v!=0),"v");
01949 
01950     icalerror_check_arg_rv( (prop!=0),"prop");
01951     icalproperty_set_value(prop,icalvalue_new_text(v));
01952 }
01953 const char* icalproperty_get_uid(const icalproperty* prop){
01954     icalerror_check_arg( (prop!=0),"prop");
01955     return icalvalue_get_text(icalproperty_get_value(prop));
01956 }
01957 icalproperty* icalproperty_vanew_url(const char* v, ...){
01958    va_list args;
01959    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_URL_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01960 
01961    icalproperty_set_url((icalproperty*)impl,v);
01962    va_start(args,v);
01963    icalproperty_add_parameters(impl, args);
01964    va_end(args);
01965    return (icalproperty*)impl;
01966 }
01967 
01968 /* URL */
01969 icalproperty* icalproperty_new_url(const char* v) {
01970    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_URL_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01971 
01972    icalproperty_set_url((icalproperty*)impl,v);
01973    return (icalproperty*)impl;
01974 }
01975 
01976 void icalproperty_set_url(icalproperty* prop, const char* v){
01977     icalerror_check_arg_rv( (v!=0),"v");
01978 
01979     icalerror_check_arg_rv( (prop!=0),"prop");
01980     icalproperty_set_value(prop,icalvalue_new_uri(v));
01981 }
01982 const char* icalproperty_get_url(const icalproperty* prop){
01983     icalerror_check_arg( (prop!=0),"prop");
01984     return icalvalue_get_uri(icalproperty_get_value(prop));
01985 }
01986 icalproperty* icalproperty_vanew_version(const char* v, ...){
01987    va_list args;
01988    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_VERSION_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
01989 
01990    icalproperty_set_version((icalproperty*)impl,v);
01991    va_start(args,v);
01992    icalproperty_add_parameters(impl, args);
01993    va_end(args);
01994    return (icalproperty*)impl;
01995 }
01996 
01997 /* VERSION */
01998 icalproperty* icalproperty_new_version(const char* v) {
01999    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_VERSION_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
02000 
02001    icalproperty_set_version((icalproperty*)impl,v);
02002    return (icalproperty*)impl;
02003 }
02004 
02005 void icalproperty_set_version(icalproperty* prop, const char* v){
02006     icalerror_check_arg_rv( (v!=0),"v");
02007 
02008     icalerror_check_arg_rv( (prop!=0),"prop");
02009     icalproperty_set_value(prop,icalvalue_new_text(v));
02010 }
02011 const char* icalproperty_get_version(const icalproperty* prop){
02012     icalerror_check_arg( (prop!=0),"prop");
02013     return icalvalue_get_text(icalproperty_get_value(prop));
02014 }
02015 icalproperty* icalproperty_vanew_x(const char* v, ...){
02016    va_list args;
02017    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_X_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
02018 
02019    icalproperty_set_x((icalproperty*)impl,v);
02020    va_start(args,v);
02021    icalproperty_add_parameters(impl, args);
02022    va_end(args);
02023    return (icalproperty*)impl;
02024 }
02025 
02026 /* X */
02027 icalproperty* icalproperty_new_x(const char* v) {
02028    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_X_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
02029 
02030    icalproperty_set_x((icalproperty*)impl,v);
02031    return (icalproperty*)impl;
02032 }
02033 
02034 void icalproperty_set_x(icalproperty* prop, const char* v){
02035     icalerror_check_arg_rv( (v!=0),"v");
02036 
02037     icalerror_check_arg_rv( (prop!=0),"prop");
02038     icalproperty_set_value(prop,icalvalue_new_x(v));
02039 }
02040 const char* icalproperty_get_x(const icalproperty* prop){
02041     icalerror_check_arg( (prop!=0),"prop");
02042     return icalvalue_get_x(icalproperty_get_value(prop));
02043 }
02044 icalproperty* icalproperty_vanew_xlicclass(enum icalproperty_xlicclass v, ...){
02045    va_list args;
02046    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICCLASS_PROPERTY);   
02047    icalproperty_set_xlicclass((icalproperty*)impl,v);
02048    va_start(args,v);
02049    icalproperty_add_parameters(impl, args);
02050    va_end(args);
02051    return (icalproperty*)impl;
02052 }
02053 
02054 /* X-LIC-CLASS */
02055 icalproperty* icalproperty_new_xlicclass(enum icalproperty_xlicclass v) {
02056    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICCLASS_PROPERTY);   
02057    icalproperty_set_xlicclass((icalproperty*)impl,v);
02058    return (icalproperty*)impl;
02059 }
02060 
02061 void icalproperty_set_xlicclass(icalproperty* prop, enum icalproperty_xlicclass v){
02062     
02063     icalerror_check_arg_rv( (prop!=0),"prop");
02064     icalproperty_set_value(prop,icalvalue_new_xlicclass(v));
02065 }
02066 enum icalproperty_xlicclass icalproperty_get_xlicclass(const icalproperty* prop){
02067     icalerror_check_arg( (prop!=0),"prop");
02068     return icalvalue_get_xlicclass(icalproperty_get_value(prop));
02069 }
02070 icalproperty* icalproperty_vanew_xlicclustercount(const char* v, ...){
02071    va_list args;
02072    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICCLUSTERCOUNT_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
02073 
02074    icalproperty_set_xlicclustercount((icalproperty*)impl,v);
02075    va_start(args,v);
02076    icalproperty_add_parameters(impl, args);
02077    va_end(args);
02078    return (icalproperty*)impl;
02079 }
02080 
02081 /* X-LIC-CLUSTERCOUNT */
02082 icalproperty* icalproperty_new_xlicclustercount(const char* v) {
02083    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICCLUSTERCOUNT_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
02084 
02085    icalproperty_set_xlicclustercount((icalproperty*)impl,v);
02086    return (icalproperty*)impl;
02087 }
02088 
02089 void icalproperty_set_xlicclustercount(icalproperty* prop, const char* v){
02090     icalerror_check_arg_rv( (v!=0),"v");
02091 
02092     icalerror_check_arg_rv( (prop!=0),"prop");
02093     icalproperty_set_value(prop,icalvalue_new_string(v));
02094 }
02095 const char* icalproperty_get_xlicclustercount(const icalproperty* prop){
02096     icalerror_check_arg( (prop!=0),"prop");
02097     return icalvalue_get_string(icalproperty_get_value(prop));
02098 }
02099 icalproperty* icalproperty_vanew_xlicerror(const char* v, ...){
02100    va_list args;
02101    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICERROR_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
02102 
02103    icalproperty_set_xlicerror((icalproperty*)impl,v);
02104    va_start(args,v);
02105    icalproperty_add_parameters(impl, args);
02106    va_end(args);
02107    return (icalproperty*)impl;
02108 }
02109 
02110 /* X-LIC-ERROR */
02111 icalproperty* icalproperty_new_xlicerror(const char* v) {
02112    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICERROR_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
02113 
02114    icalproperty_set_xlicerror((icalproperty*)impl,v);
02115    return (icalproperty*)impl;
02116 }
02117 
02118 void icalproperty_set_xlicerror(icalproperty* prop, const char* v){
02119     icalerror_check_arg_rv( (v!=0),"v");
02120 
02121     icalerror_check_arg_rv( (prop!=0),"prop");
02122     icalproperty_set_value(prop,icalvalue_new_text(v));
02123 }
02124 const char* icalproperty_get_xlicerror(const icalproperty* prop){
02125     icalerror_check_arg( (prop!=0),"prop");
02126     return icalvalue_get_text(icalproperty_get_value(prop));
02127 }
02128 icalproperty* icalproperty_vanew_xlicmimecharset(const char* v, ...){
02129    va_list args;
02130    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMECHARSET_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
02131 
02132    icalproperty_set_xlicmimecharset((icalproperty*)impl,v);
02133    va_start(args,v);
02134    icalproperty_add_parameters(impl, args);
02135    va_end(args);
02136    return (icalproperty*)impl;
02137 }
02138 
02139 /* X-LIC-MIMECHARSET */
02140 icalproperty* icalproperty_new_xlicmimecharset(const char* v) {
02141    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMECHARSET_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
02142 
02143    icalproperty_set_xlicmimecharset((icalproperty*)impl,v);
02144    return (icalproperty*)impl;
02145 }
02146 
02147 void icalproperty_set_xlicmimecharset(icalproperty* prop, const char* v){
02148     icalerror_check_arg_rv( (v!=0),"v");
02149 
02150     icalerror_check_arg_rv( (prop!=0),"prop");
02151     icalproperty_set_value(prop,icalvalue_new_string(v));
02152 }
02153 const char* icalproperty_get_xlicmimecharset(const icalproperty* prop){
02154     icalerror_check_arg( (prop!=0),"prop");
02155     return icalvalue_get_string(icalproperty_get_value(prop));
02156 }
02157 icalproperty* icalproperty_vanew_xlicmimecid(const char* v, ...){
02158    va_list args;
02159    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMECID_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
02160 
02161    icalproperty_set_xlicmimecid((icalproperty*)impl,v);
02162    va_start(args,v);
02163    icalproperty_add_parameters(impl, args);
02164    va_end(args);
02165    return (icalproperty*)impl;
02166 }
02167 
02168 /* X-LIC-MIMECID */
02169 icalproperty* icalproperty_new_xlicmimecid(const char* v) {
02170    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMECID_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
02171 
02172    icalproperty_set_xlicmimecid((icalproperty*)impl,v);
02173    return (icalproperty*)impl;
02174 }
02175 
02176 void icalproperty_set_xlicmimecid(icalproperty* prop, const char* v){
02177     icalerror_check_arg_rv( (v!=0),"v");
02178 
02179     icalerror_check_arg_rv( (prop!=0),"prop");
02180     icalproperty_set_value(prop,icalvalue_new_string(v));
02181 }
02182 const char* icalproperty_get_xlicmimecid(const icalproperty* prop){
02183     icalerror_check_arg( (prop!=0),"prop");
02184     return icalvalue_get_string(icalproperty_get_value(prop));
02185 }
02186 icalproperty* icalproperty_vanew_xlicmimecontenttype(const char* v, ...){
02187    va_list args;
02188    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMECONTENTTYPE_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
02189 
02190    icalproperty_set_xlicmimecontenttype((icalproperty*)impl,v);
02191    va_start(args,v);
02192    icalproperty_add_parameters(impl, args);
02193    va_end(args);
02194    return (icalproperty*)impl;
02195 }
02196 
02197 /* X-LIC-MIMECONTENTTYPE */
02198 icalproperty* icalproperty_new_xlicmimecontenttype(const char* v) {
02199    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMECONTENTTYPE_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
02200 
02201    icalproperty_set_xlicmimecontenttype((icalproperty*)impl,v);
02202    return (icalproperty*)impl;
02203 }
02204 
02205 void icalproperty_set_xlicmimecontenttype(icalproperty* prop, const char* v){
02206     icalerror_check_arg_rv( (v!=0),"v");
02207 
02208     icalerror_check_arg_rv( (prop!=0),"prop");
02209     icalproperty_set_value(prop,icalvalue_new_string(v));
02210 }
02211 const char* icalproperty_get_xlicmimecontenttype(const icalproperty* prop){
02212     icalerror_check_arg( (prop!=0),"prop");
02213     return icalvalue_get_string(icalproperty_get_value(prop));
02214 }
02215 icalproperty* icalproperty_vanew_xlicmimeencoding(const char* v, ...){
02216    va_list args;
02217    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMEENCODING_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
02218 
02219    icalproperty_set_xlicmimeencoding((icalproperty*)impl,v);
02220    va_start(args,v);
02221    icalproperty_add_parameters(impl, args);
02222    va_end(args);
02223    return (icalproperty*)impl;
02224 }
02225 
02226 /* X-LIC-MIMEENCODING */
02227 icalproperty* icalproperty_new_xlicmimeencoding(const char* v) {
02228    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMEENCODING_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
02229 
02230    icalproperty_set_xlicmimeencoding((icalproperty*)impl,v);
02231    return (icalproperty*)impl;
02232 }
02233 
02234 void icalproperty_set_xlicmimeencoding(icalproperty* prop, const char* v){
02235     icalerror_check_arg_rv( (v!=0),"v");
02236 
02237     icalerror_check_arg_rv( (prop!=0),"prop");
02238     icalproperty_set_value(prop,icalvalue_new_string(v));
02239 }
02240 const char* icalproperty_get_xlicmimeencoding(const icalproperty* prop){
02241     icalerror_check_arg( (prop!=0),"prop");
02242     return icalvalue_get_string(icalproperty_get_value(prop));
02243 }
02244 icalproperty* icalproperty_vanew_xlicmimefilename(const char* v, ...){
02245    va_list args;
02246    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMEFILENAME_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
02247 
02248    icalproperty_set_xlicmimefilename((icalproperty*)impl,v);
02249    va_start(args,v);
02250    icalproperty_add_parameters(impl, args);
02251    va_end(args);
02252    return (icalproperty*)impl;
02253 }
02254 
02255 /* X-LIC-MIMEFILENAME */
02256 icalproperty* icalproperty_new_xlicmimefilename(const char* v) {
02257    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMEFILENAME_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
02258 
02259    icalproperty_set_xlicmimefilename((icalproperty*)impl,v);
02260    return (icalproperty*)impl;
02261 }
02262 
02263 void icalproperty_set_xlicmimefilename(icalproperty* prop, const char* v){
02264     icalerror_check_arg_rv( (v!=0),"v");
02265 
02266     icalerror_check_arg_rv( (prop!=0),"prop");
02267     icalproperty_set_value(prop,icalvalue_new_string(v));
02268 }
02269 const char* icalproperty_get_xlicmimefilename(const icalproperty* prop){
02270     icalerror_check_arg( (prop!=0),"prop");
02271     return icalvalue_get_string(icalproperty_get_value(prop));
02272 }
02273 icalproperty* icalproperty_vanew_xlicmimeoptinfo(const char* v, ...){
02274    va_list args;
02275    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMEOPTINFO_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
02276 
02277    icalproperty_set_xlicmimeoptinfo((icalproperty*)impl,v);
02278    va_start(args,v);
02279    icalproperty_add_parameters(impl, args);
02280    va_end(args);
02281    return (icalproperty*)impl;
02282 }
02283 
02284 /* X-LIC-MIMEOPTINFO */
02285 icalproperty* icalproperty_new_xlicmimeoptinfo(const char* v) {
02286    struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMEOPTINFO_PROPERTY);   icalerror_check_arg_rz( (v!=0),"v");
02287 
02288    icalproperty_set_xlicmimeoptinfo((icalproperty*)impl,v);
02289    return (icalproperty*)impl;
02290 }
02291 
02292 void icalproperty_set_xlicmimeoptinfo(icalproperty* prop, const char* v){
02293     icalerror_check_arg_rv( (v!=0),"v");
02294 
02295     icalerror_check_arg_rv( (prop!=0),"prop");
02296     icalproperty_set_value(prop,icalvalue_new_string(v));
02297 }
02298 const char* icalproperty_get_xlicmimeoptinfo(const icalproperty* prop){
02299     icalerror_check_arg( (prop!=0),"prop");
02300     return icalvalue_get_string(icalproperty_get_value(prop));
02301 }
02302 
02303 int icalproperty_kind_is_valid(const icalproperty_kind kind)
02304 {
02305     int i = 0;
02306     do {
02307       if (property_map[i].kind == kind)
02308        return 1;
02309     } while (property_map[i++].kind != ICAL_NO_PROPERTY);
02310 
02311     return 0;
02312 }  
02313 
02314 const char* icalproperty_kind_to_string(icalproperty_kind kind)
02315 {
02316     int i;
02317 
02318     for (i=0; property_map[i].kind != ICAL_NO_PROPERTY; i++) {
02319        if (property_map[i].kind == kind) {
02320            return property_map[i].name;
02321        }
02322     }
02323 
02324     return 0;
02325 
02326 }
02327 
02328 
02329 icalproperty_kind icalproperty_string_to_kind(const char* string)
02330 {
02331     int i;
02332 
02333     if (string ==0 ) { 
02334        return ICAL_NO_PROPERTY;
02335     }
02336 
02337 
02338     for (i=0; property_map[i].kind  != ICAL_NO_PROPERTY; i++) {
02339        if (strcmp(property_map[i].name, string) == 0) {
02340            return property_map[i].kind;
02341        }
02342     }
02343 
02344     if(strncmp(string,"X-",2)==0){
02345        return ICAL_X_PROPERTY;
02346     }
02347 
02348 
02349     return ICAL_NO_PROPERTY;
02350 }
02351 
02352 
02353 icalproperty_kind icalproperty_value_kind_to_kind(icalvalue_kind kind)
02354 {
02355     int i;
02356 
02357     for (i=0; property_map[i].kind  != ICAL_NO_PROPERTY; i++) {
02358        if ( property_map[i].value == kind ) {
02359            return property_map[i].kind;
02360        }
02361     }
02362 
02363     return ICAL_NO_VALUE;
02364 }
02365 
02366 
02367 
02368 icalvalue_kind icalproperty_kind_to_value_kind(icalproperty_kind kind)
02369 {
02370     int i;
02371 
02372     for (i=0; property_map[i].kind  != ICAL_NO_PROPERTY; i++) {
02373        if ( property_map[i].kind == kind ) {
02374            return property_map[i].value;
02375        }
02376     }
02377 
02378     return ICAL_NO_VALUE;
02379 }
02380 
02381 
02382 const char* icalproperty_enum_to_string(int e)
02383 {
02384     icalerror_check_arg_rz(e >= ICALPROPERTY_FIRST_ENUM,"e");
02385     icalerror_check_arg_rz(e <= ICALPROPERTY_LAST_ENUM,"e");
02386 
02387     return enum_map[e-ICALPROPERTY_FIRST_ENUM].str;
02388 }
02389 
02390 int icalproperty_kind_and_string_to_enum(const int kind, const char* str)
02391 {
02392     icalproperty_kind pkind;
02393     int i;
02394 
02395     icalerror_check_arg_rz(str!=0,"str")
02396 
02397     if ((pkind = icalproperty_value_kind_to_kind(kind)) == ICAL_NO_VALUE)
02398        return 0;
02399 
02400     while(*str == ' '){
02401        str++;
02402     }
02403 
02404     for (i=ICALPROPERTY_FIRST_ENUM; i != ICALPROPERTY_LAST_ENUM; i++) {
02405        if (enum_map[i-ICALPROPERTY_FIRST_ENUM].prop == pkind)
02406            break;
02407     }
02408     if (i == ICALPROPERTY_LAST_ENUM)
02409            return 0;
02410 
02411     for (; i != ICALPROPERTY_LAST_ENUM; i++) {
02412        if ( strcmp(enum_map[i-ICALPROPERTY_FIRST_ENUM].str, str) == 0) {
02413            return enum_map[i-ICALPROPERTY_FIRST_ENUM].prop_enum;
02414        }
02415     }
02416 
02417     return 0;
02418 }
02419 
02421 int icalproperty_string_to_enum(const char* str)
02422 {
02423     int i;
02424 
02425     icalerror_check_arg_rz(str!=0,"str")
02426 
02427     while(*str == ' '){
02428        str++;
02429     }
02430 
02431     for (i=ICALPROPERTY_FIRST_ENUM; i != ICALPROPERTY_LAST_ENUM; i++) {
02432        if ( strcmp(enum_map[i-ICALPROPERTY_FIRST_ENUM].str, str) == 0) {
02433            return enum_map[i-ICALPROPERTY_FIRST_ENUM].prop_enum;
02434        }
02435     }
02436 
02437     return 0;
02438 }
02439 
02440 int icalproperty_enum_belongs_to_property(icalproperty_kind kind, int e)
02441 {
02442     int i;
02443 
02444 
02445     for (i=ICALPROPERTY_FIRST_ENUM; i != ICALPROPERTY_LAST_ENUM; i++) {
02446         if(enum_map[i-ICALPROPERTY_FIRST_ENUM].prop_enum == e && 
02447            enum_map[i-ICALPROPERTY_FIRST_ENUM].prop == kind ){
02448             return 1;
02449         }
02450     }
02451 
02452     return 0;
02453 }
02454 
02455 
02456 const char* icalproperty_method_to_string(icalproperty_method method)
02457 {
02458     icalerror_check_arg_rz(method >= ICAL_METHOD_X,"method");
02459     icalerror_check_arg_rz(method <= ICAL_METHOD_NONE,"method");
02460 
02461     return enum_map[method-ICALPROPERTY_FIRST_ENUM].str;
02462 }
02463 
02464 icalproperty_method icalproperty_string_to_method(const char* str)
02465 {
02466     int i;
02467 
02468     icalerror_check_arg_rx(str!=0,"str",ICAL_METHOD_NONE)
02469 
02470     while(*str == ' '){
02471        str++;
02472     }
02473 
02474     for (i=ICAL_METHOD_X-ICALPROPERTY_FIRST_ENUM; 
02475          i != ICAL_METHOD_NONE-ICALPROPERTY_FIRST_ENUM;
02476          i++) {
02477        if ( strcmp(enum_map[i].str, str) == 0) {
02478            return (icalproperty_method)enum_map[i].prop_enum;
02479        }
02480     }
02481 
02482     return ICAL_METHOD_NONE;
02483 }
02484 
02485 
02486 const char* icalenum_status_to_string(icalproperty_status status)
02487 {
02488     icalerror_check_arg_rz(status >= ICAL_STATUS_X,"status");
02489     icalerror_check_arg_rz(status <= ICAL_STATUS_NONE,"status");
02490 
02491     return enum_map[status-ICALPROPERTY_FIRST_ENUM].str;
02492 }
02493 
02494 icalproperty_status icalenum_string_to_status(const char* str)
02495 {
02496     int i;
02497 
02498     icalerror_check_arg_rx(str!=0,"str",ICAL_STATUS_NONE)
02499 
02500     while(*str == ' '){
02501        str++;
02502     }
02503 
02504     for (i=ICAL_STATUS_X-ICALPROPERTY_FIRST_ENUM; 
02505          i != ICAL_STATUS_NONE-ICALPROPERTY_FIRST_ENUM;
02506          i++) {
02507        if ( strcmp(enum_map[i].str, str) == 0) {
02508            return (icalproperty_method)enum_map[i].prop_enum;
02509        }
02510     }
02511 
02512     return ICAL_STATUS_NONE;
02513 
02514 }