1 /* -*- Mode: C++ -*- */
4 * @file icalparameter_cxx.h
5 * @author fnguyen (12/10/01)
6 * @brief Definition of C++ Wrapper for icalparameter.c
8 * (C) COPYRIGHT 2001, Critical Path
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of either:
13 The LGPL as published by the Free Software Foundation, version
14 2.1, available at: http://www.fsf.org/copyleft/lesser.html
18 The Mozilla Public License Version 1.0. You may obtain a copy of
19 the License at http://www.mozilla.org/MPL/
23 #ifndef ICALPARAMETER_CXX_H
24 #define ICALPARAMETER_CXX_H
30 #include "icptrholder.h"
32 typedef char* string; // Will use the string library from STL
36 ICalParameter() throw(icalerrorenum);
37 ICalParameter(const ICalParameter&) throw(icalerrorenum);
38 ICalParameter& operator=(const ICalParameter&) throw(icalerrorenum);
41 ICalParameter(icalparameter* v) throw(icalerrorenum);
43 // Create from string of form "PARAMNAME=VALUE"
44 ICalParameter(string str) throw(icalerrorenum);
46 // Create from just the value, the part after the "="
47 ICalParameter(icalparameter_kind kind, string str) throw(icalerrorenum);
48 ICalParameter(icalparameter_kind kind) throw(icalerrorenum);
50 operator icalparameter*() { return imp; }
57 string as_ical_string() throw(icalerrorenum);
59 icalparameter_kind isa( );
60 int isa_parameter(void* param);
63 /* Acess the name of an X parameer */
64 static void set_xname (ICalParameter ¶m, string v);
65 static string get_xname(ICalParameter ¶m);
66 static void set_xvalue (ICalParameter ¶m, string v);
67 static string get_xvalue(ICalParameter ¶m);
69 /* Convert enumerations */
70 static string kind_to_string(icalparameter_kind kind);
71 static icalparameter_kind string_to_kind(string str);
75 string get_delegatedfrom();
76 void set_delegatedfrom(string v);
79 icalparameter_related get_related();
80 void set_related(icalparameter_related v);
84 void set_sentby(string v);
87 string get_language();
88 void set_language(string v);
91 icalparameter_reltype get_reltype();
92 void set_reltype(icalparameter_reltype v);
95 icalparameter_encoding get_encoding();
96 void set_encoding(icalparameter_encoding v);
100 void set_altrep(string v);
103 string get_fmttype();
104 void set_fmttype(string v);
107 icalparameter_fbtype get_fbtype();
108 void set_fbtype(icalparameter_fbtype v);
111 icalparameter_rsvp get_rsvp();
112 void set_rsvp(icalparameter_rsvp v);
115 icalparameter_range get_range();
116 void set_range(icalparameter_range v);
119 string get_delegatedto();
120 void set_delegatedto(string v);
124 void set_cn(string v);
127 icalparameter_role get_role();
128 void set_role(icalparameter_role v);
130 /* X-LIC-COMPARETYPE */
131 icalparameter_xliccomparetype get_xliccomparetype();
132 void set_xliccomparetype(icalparameter_xliccomparetype v);
135 icalparameter_partstat get_partstat();
136 void set_partstat(icalparameter_partstat v);
138 /* X-LIC-ERRORTYPE */
139 icalparameter_xlicerrortype get_xlicerrortype();
140 void set_xlicerrortype(icalparameter_xlicerrortype v);
144 void set_member(string v);
148 void set_x(string v);
151 icalparameter_cutype get_cutype();
152 void set_cutype(icalparameter_cutype v);
156 void set_tzid(string v);
159 icalparameter_value get_value();
160 void set_value(icalparameter_value v);
164 void set_dir(string v);