123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- #ifndef ICALPARAMETER_CXX_H
- #define ICALPARAMETER_CXX_H
- #include "libical_ical_export.h"
- #include "icptrholder_cxx.h"
- extern "C"
- {
- #include "icalerror.h"
- #include "icalparameter.h"
- };
- #include <string>
- namespace LibICal
- {
- class LIBICAL_ICAL_EXPORT ICalParameter
- {
- public:
- ICalParameter() throw(icalerrorenum);
- ICalParameter(const ICalParameter &) throw(icalerrorenum);
- ICalParameter & operator=(const ICalParameter &) throw(icalerrorenum);
- ~ICalParameter();
- explicit ICalParameter(icalparameter *v) throw(icalerrorenum);
-
- explicit ICalParameter(const std::string & str) throw(icalerrorenum);
-
- explicit ICalParameter(const icalparameter_kind & kind) throw(icalerrorenum);
- ICalParameter(const icalparameter_kind & kind,
- const std::string & str) throw(icalerrorenum);
- operator icalparameter *()
- {
- return imp;
- }
- void detach();
- public:
- std::string as_ical_string() throw(icalerrorenum);
- bool is_valid();
- icalparameter_kind isa();
- int isa_parameter(void *param);
- public:
-
- static void set_xname(ICalParameter & param, const std::string & v);
- static std::string get_xname(ICalParameter & param);
- static void set_xvalue(ICalParameter & param, const std::string & v);
- static std::string get_xvalue(ICalParameter & param);
-
- static std::string kind_to_string(const icalparameter_kind & kind);
- static icalparameter_kind string_to_kind(const std::string & str);
- public:
-
- std::string get_delegatedfrom() const;
- void set_delegatedfrom(const std::string & v);
-
- icalparameter_related get_related() const;
- void set_related(const icalparameter_related & v);
-
- std::string get_sentby() const;
- void set_sentby(const std::string & v);
-
- std::string get_language() const;
- void set_language(const std::string & v);
-
- icalparameter_reltype get_reltype() const;
- void set_reltype(const icalparameter_reltype & v);
-
- icalparameter_encoding get_encoding() const;
- void set_encoding(const icalparameter_encoding & v);
-
- std::string get_altrep() const;
- void set_altrep(const std::string & v);
-
- std::string get_fmttype() const;
- void set_fmttype(const std::string & v);
-
- icalparameter_fbtype get_fbtype() const;
- void set_fbtype(const icalparameter_fbtype & v);
-
- icalparameter_rsvp get_rsvp() const;
- void set_rsvp(const icalparameter_rsvp & v);
-
- icalparameter_range get_range() const;
- void set_range(const icalparameter_range & v);
-
- std::string get_delegatedto() const;
- void set_delegatedto(const std::string & v);
-
- std::string get_cn() const;
- void set_cn(const std::string & v);
-
- icalparameter_role get_role() const;
- void set_role(const icalparameter_role & v);
-
- icalparameter_xliccomparetype get_xliccomparetype() const;
- void set_xliccomparetype(const icalparameter_xliccomparetype & v);
-
- icalparameter_partstat get_partstat() const;
- void set_partstat(const icalparameter_partstat & v);
-
- icalparameter_xlicerrortype get_xlicerrortype() const;
- void set_xlicerrortype(const icalparameter_xlicerrortype & v);
-
- std::string get_member() const;
- void set_member(const std::string & v);
-
- std::string get_x() const;
- void set_x(const std::string & v);
-
- icalparameter_cutype get_cutype() const;
- void set_cutype(const icalparameter_cutype & v);
-
- std::string get_tzid() const;
- void set_tzid(const std::string & v);
-
- icalparameter_value get_value() const;
- void set_value(const icalparameter_value & v);
-
- std::string get_dir() const;
- void set_dir(const std::string & v);
- private:
- icalparameter *imp;
- };
- }
- #endif
|