Libical API Documentation 4.0
Loading...
Searching...
No Matches
icalparameter_cxx.h
Go to the documentation of this file.
1
11
12#ifndef ICALPARAMETER_CXX_H
13#define ICALPARAMETER_CXX_H
14
15#include "libical_ical_export.h"
16#include "icptrholder_cxx.h"
17
18extern "C" {
19#include "icalerror.h"
20#include "icalparameter.h"
21}
22
23#include <string>
24
25namespace LibICal
26{
27
28class LIBICAL_ICAL_EXPORT ICalParameter
29{
30public:
31 ICalParameter();
32 ICalParameter(const ICalParameter &);
33 ICalParameter &operator=(const ICalParameter &);
34 ~ICalParameter();
35
36 explicit ICalParameter(icalparameter *v);
37
38 // Create from string of form "PARAMNAME=VALUE"
39 explicit ICalParameter(const std::string &str);
40
41 // Create from just the value, the part after the "="
42 explicit ICalParameter(const icalparameter_kind &kind);
43 ICalParameter(const icalparameter_kind &kind, const std::string &str);
44
45 operator icalparameter *()
46 {
47 return imp;
48 }
49
50 void detach();
51
52public:
53 std::string as_ical_string();
54 bool is_valid();
55 icalparameter_kind isa();
56 int isa_parameter(void *param);
57
58public:
59 /* Access the name of an X parameter */
60 static void set_xname(ICalParameter &param, const std::string &v);
61 static std::string get_xname(ICalParameter &param);
62 static void set_xvalue(ICalParameter &param, const std::string &v);
63 static std::string get_xvalue(ICalParameter &param);
64
65 /* Convert enumerations */
66 static std::string kind_to_string(const icalparameter_kind &kind);
67 static icalparameter_kind string_to_kind(const std::string &str);
68
69public:
70 /* DELEGATED-FROM */
71 std::string get_delegatedfrom() const;
72 void set_delegatedfrom(const std::string &v);
73
74 /* RELATED */
75 icalparameter_related get_related() const;
76 void set_related(const icalparameter_related &v);
77
78 /* SENT-BY */
79 std::string get_sentby() const;
80 void set_sentby(const std::string &v);
81
82 /* LANGUAGE */
83 std::string get_language() const;
84 void set_language(const std::string &v);
85
86 /* RELTYPE */
87 icalparameter_reltype get_reltype() const;
88 void set_reltype(const icalparameter_reltype &v);
89
90 /* ENCODING */
91 icalparameter_encoding get_encoding() const;
92 void set_encoding(const icalparameter_encoding &v);
93
94 /* ALTREP */
95 std::string get_altrep() const;
96 void set_altrep(const std::string &v);
97
98 /* FMTTYPE */
99 std::string get_fmttype() const;
100 void set_fmttype(const std::string &v);
101
102 /* FBTYPE */
103 icalparameter_fbtype get_fbtype() const;
104 void set_fbtype(const icalparameter_fbtype &v);
105
106 /* RSVP */
107 icalparameter_rsvp get_rsvp() const;
108 void set_rsvp(const icalparameter_rsvp &v);
109
110 /* RANGE */
111 icalparameter_range get_range() const;
112 void set_range(const icalparameter_range &v);
113
114 /* DELEGATED-TO */
115 std::string get_delegatedto() const;
116 void set_delegatedto(const std::string &v);
117
118 /* CN */
119 std::string get_cn() const;
120 void set_cn(const std::string &v);
121
122 /* ROLE */
123 icalparameter_role get_role() const;
124 void set_role(const icalparameter_role &v);
125
126 /* X-LIC-COMPARETYPE */
127 icalparameter_xliccomparetype get_xliccomparetype() const;
128 void set_xliccomparetype(const icalparameter_xliccomparetype &v);
129
130 /* PARTSTAT */
131 icalparameter_partstat get_partstat() const;
132 void set_partstat(const icalparameter_partstat &v);
133
134 /* X-LIC-ERRORTYPE */
135 icalparameter_xlicerrortype get_xlicerrortype() const;
136 void set_xlicerrortype(const icalparameter_xlicerrortype &v);
137
138 /* MEMBER */
139 std::string get_member() const;
140 void set_member(const std::string &v);
141
142 /* X */
143 std::string get_x() const;
144 void set_x(const std::string &v);
145
146 /* CUTYPE */
147 icalparameter_cutype get_cutype() const;
148 void set_cutype(const icalparameter_cutype &v);
149
150 /* TZID */
151 std::string get_tzid() const;
152 void set_tzid(const std::string &v);
153
154 /* VALUE */
155 icalparameter_value get_value() const;
156 void set_value(const icalparameter_value &v);
157
158 /* DIR */
159 std::string get_dir() const;
160 void set_dir(const std::string &v);
161
162private:
163 icalparameter *imp;
164};
165
166} // namespace LibICal
167
168#endif
Error handling for libical.
C++ template classes for managing C++ pointers returned by VComponent::get_..._component,...