17#include "icalerror_p.h"
22using namespace LibICal;
24ICalProperty::ICalProperty()
54void ICalProperty::detach()
59ICalProperty::~ICalProperty()
64ICalProperty::ICalProperty(icalproperty *v)
69ICalProperty::ICalProperty(
const std::string &str)
74ICalProperty::ICalProperty(icalproperty_kind kind)
79std::string ICalProperty::as_ical_string()
84icalproperty_kind ICalProperty::isa()
90bool ICalProperty::isa_property(
void *property)
97 icalparameter_xliccomparetype result;
98 ICalValue *thisPropValue = this->get_value();
99 ICalValue *rhsPropValue = rhs.get_value();
101 static_cast<icalvalue *
>(*rhsPropValue));
102 delete thisPropValue;
104 return (result == ICAL_XLICCOMPARETYPE_EQUAL) ? 1 : 0;
119void ICalProperty::set_parameter_from_string(
const std::string &name,
const std::string &val)
124std::string ICalProperty::get_parameter_as_string(
const std::string &name)
129void ICalProperty::remove_parameter_by_kind(
const icalparameter_kind &kind)
134int ICalProperty::count_parameters()
146ICalParameter *ICalProperty::get_next_parameter(
const icalparameter_kind &kind)
158void ICalProperty::set_value_from_string(
const std::string &val,
const std::string &kind)
168std::string ICalProperty::get_value_as_string()
183void ICalProperty::set_x_name(
ICalProperty &prop,
const std::string &name)
194icalvalue_kind ICalProperty::value_to_value_kind(
const icalparameter_value &val)
200icalvalue_kind ICalProperty::kind_to_value_kind(
const icalproperty_kind &kind)
205icalproperty_kind ICalProperty::value_kind_to_kind(
const icalvalue_kind &kind)
210std::string ICalProperty::kind_to_string(
const icalproperty_kind &kind)
215icalproperty_kind ICalProperty::string_to_kind(
const std::string &str)
220std::string ICalProperty::method_to_string(
const icalproperty_method &method)
225icalproperty_method ICalProperty::string_to_method(
const std::string &str)
230std::string ICalProperty::enum_to_string(
const int &e)
235int ICalProperty::kind_and_string_to_enum(
const icalproperty_kind &kind,
const std::string &str)
240std::string ICalProperty::status_to_string(
const icalproperty_status &status)
245icalproperty_status ICalProperty::string_to_status(
const std::string &str)
250bool ICalProperty::enum_belongs_to_property(
const icalproperty_kind &kind,
const int &e)
256void ICalProperty::set_action(
const enum icalproperty_action &val)
258 icalproperty_set_action(imp, val);
261enum icalproperty_action ICalProperty::get_action()
263 return icalproperty_get_action(imp);
269 icalproperty_set_attach(imp, val);
274 return icalproperty_get_attach(imp);
278void ICalProperty::set_attendee(
const std::string &val)
280 icalproperty_set_attendee(imp, val.c_str());
283std::string ICalProperty::get_attendee()
const
285 return static_cast<std::string
>(icalproperty_get_attendee(imp));
289void ICalProperty::set_calscale(
const std::string &val)
291 icalproperty_set_calscale(imp, val.c_str());
294std::string ICalProperty::get_calscale()
const
296 return static_cast<std::string
>(icalproperty_get_calscale(imp));
300void ICalProperty::set_categories(
const std::string &val)
302 icalproperty_set_categories(imp, val.c_str());
305std::string ICalProperty::get_categories()
const
307 return static_cast<std::string
>(icalproperty_get_categories(imp));
311void ICalProperty::set_class(
const enum icalproperty_class &val)
313 icalproperty_set_class(imp, val);
316enum icalproperty_class ICalProperty::get_class()
const
318 return static_cast<enum icalproperty_class
>(icalproperty_get_class(imp));
322void ICalProperty::set_comment(
const std::string &val)
324 icalproperty_set_comment(imp, val.c_str());
327std::string ICalProperty::get_comment()
const
329 return static_cast<std::string
>(icalproperty_get_comment(imp));
333void ICalProperty::set_completed(
const struct icaltimetype &val)
335 icalproperty_set_completed(imp, val);
340 return icalproperty_get_completed(imp);
344void ICalProperty::set_contact(
const std::string &val)
346 icalproperty_set_contact(imp, val.c_str());
349std::string ICalProperty::get_contact()
const
351 return static_cast<std::string
>(icalproperty_get_contact(imp));
355void ICalProperty::set_created(
const struct icaltimetype &val)
357 icalproperty_set_created(imp, val);
362 return icalproperty_get_created(imp);
366void ICalProperty::set_description(
const std::string &val)
368 icalproperty_set_description(imp, val.c_str());
371std::string ICalProperty::get_description()
const
373 return static_cast<std::string
>(icalproperty_get_description(imp));
377void ICalProperty::set_dtend(
const struct icaltimetype &val)
379 icalproperty_set_dtend(imp, val);
384 return icalproperty_get_dtend(imp);
388void ICalProperty::set_dtstamp(
const struct icaltimetype &val)
390 icalproperty_set_dtstamp(imp, val);
395 return icalproperty_get_dtstamp(imp);
399void ICalProperty::set_dtstart(
const struct icaltimetype &val)
401 icalproperty_set_dtstart(imp, val);
406 return icalproperty_get_dtstart(imp);
410void ICalProperty::set_due(
const struct icaltimetype &val)
412 icalproperty_set_due(imp, val);
417 return icalproperty_get_due(imp);
421void ICalProperty::set_duration(
const struct icaldurationtype &val)
423 icalproperty_set_duration(imp, val);
426struct icaldurationtype
ICalProperty::get_duration() const
428 return icalproperty_get_duration(imp);
432void ICalProperty::set_exdate(
const struct icaltimetype &val)
434 icalproperty_set_exdate(imp, val);
439 return icalproperty_get_exdate(imp);
443void ICalProperty::set_expand(
const int &val)
445 icalproperty_set_expand(imp, val);
448int ICalProperty::get_expand()
const
450 return icalproperty_get_expand(imp);
454void ICalProperty::set_exrule(
struct icalrecurrencetype *val)
456 icalproperty_set_exrule(imp, val);
459struct icalrecurrencetype *ICalProperty::get_exrule()
const
461 return icalproperty_get_exrule(imp);
465void ICalProperty::set_freebusy(
const struct icalperiodtype &val)
467 icalproperty_set_freebusy(imp, val);
472 return icalproperty_get_freebusy(imp);
476void ICalProperty::set_geo(
const struct icalgeotype &val)
478 icalproperty_set_geo(imp, val);
483 return icalproperty_get_geo(imp);
487void ICalProperty::set_lastmodified(
const struct icaltimetype &val)
489 icalproperty_set_lastmodified(imp, val);
492struct icaltimetype
ICalProperty::get_lastmodified() const
494 return icalproperty_get_lastmodified(imp);
498void ICalProperty::set_location(
const std::string &val)
500 icalproperty_set_location(imp, val.c_str());
503std::string ICalProperty::get_location()
const
505 return static_cast<std::string
>(icalproperty_get_location(imp));
509void ICalProperty::set_maxresults(
const int &val)
511 icalproperty_set_maxresults(imp, val);
514int ICalProperty::get_maxresults()
const
516 return icalproperty_get_maxresults(imp);
520void ICalProperty::set_maxresultsize(
const int &val)
522 icalproperty_set_maxresultssize(imp, val);
525int ICalProperty::get_maxresultsize()
const
527 return icalproperty_get_maxresultssize(imp);
531void ICalProperty::set_method(
const enum icalproperty_method &val)
533 icalproperty_set_method(imp, val);
536enum icalproperty_method ICalProperty::get_method()
const
538 return icalproperty_get_method(imp);
542void ICalProperty::set_organizer(
const std::string &val)
544 icalproperty_set_organizer(imp, val.c_str());
547std::string ICalProperty::get_organizer()
const
549 return static_cast<std::string
>(icalproperty_get_organizer(imp));
553void ICalProperty::set_owner(
const std::string &val)
555 icalproperty_set_owner(imp, val.c_str());
558std::string ICalProperty::get_owner()
const
560 return static_cast<std::string
>(icalproperty_get_owner(imp));
564void ICalProperty::set_percentcomplete(
const int &val)
566 icalproperty_set_percentcomplete(imp, val);
569int ICalProperty::get_percentcomplete()
const
571 return icalproperty_get_percentcomplete(imp);
575void ICalProperty::set_priority(
const int &val)
577 icalproperty_set_priority(imp, val);
580int ICalProperty::get_priority()
const
582 return icalproperty_get_priority(imp);
586void ICalProperty::set_prodid(
const std::string &val)
588 icalproperty_set_prodid(imp, val.c_str());
591std::string ICalProperty::get_prodid()
const
593 return static_cast<std::string
>(icalproperty_get_prodid(imp));
597void ICalProperty::set_query(
const std::string &val)
599 icalproperty_set_query(imp, val.c_str());
602std::string ICalProperty::get_query()
const
604 return static_cast<std::string
>(icalproperty_get_query(imp));
608void ICalProperty::set_queryname(
const std::string &val)
610 icalproperty_set_queryname(imp, val.c_str());
613std::string ICalProperty::get_queryname()
const
615 return static_cast<std::string
>(icalproperty_get_queryname(imp));
619void ICalProperty::set_rdate(
const struct icaldatetimeperiodtype &val)
621 icalproperty_set_rdate(imp, val);
624struct icaldatetimeperiodtype
ICalProperty::get_rdate() const
626 return icalproperty_get_rdate(imp);
630void ICalProperty::set_recurrenceid(
const struct icaltimetype &val)
632 icalproperty_set_recurrenceid(imp, val);
635struct icaltimetype
ICalProperty::get_recurrenceid() const
637 return icalproperty_get_recurrenceid(imp);
641void ICalProperty::set_relatedto(
const std::string &val)
643 icalproperty_set_relatedto(imp, val.c_str());
646std::string ICalProperty::get_relatedto()
const
648 return static_cast<std::string
>(icalproperty_get_relatedto(imp));
652void ICalProperty::set_relcalid(
const std::string &val)
654 icalproperty_set_relcalid(imp, val.c_str());
657std::string ICalProperty::get_relcalid()
const
659 return static_cast<std::string
>(icalproperty_get_relcalid(imp));
663void ICalProperty::set_repeat(
const int &val)
665 icalproperty_set_repeat(imp, val);
668int ICalProperty::get_repeat()
const
670 return icalproperty_get_repeat(imp);
674void ICalProperty::set_requeststatus(
const std::string &val)
678 icalproperty_set_requeststatus(imp, v);
681std::string ICalProperty::get_requeststatus()
const
683 const icalreqstattype v = icalproperty_get_requeststatus(imp);
689void ICalProperty::set_resources(
const std::string &val)
691 icalproperty_set_resources(imp, val.c_str());
694std::string ICalProperty::get_resources()
const
696 return static_cast<std::string
>(icalproperty_get_resources(imp));
700void ICalProperty::set_rrule(
struct icalrecurrencetype *val)
702 icalproperty_set_rrule(imp, val);
705struct icalrecurrencetype *ICalProperty::get_rrule()
const
707 return icalproperty_get_rrule(imp);
711void ICalProperty::set_scope(
const std::string &val)
713 icalproperty_set_scope(imp, val.c_str());
716std::string ICalProperty::get_scope()
const
718 return static_cast<std::string
>(icalproperty_get_scope(imp));
722void ICalProperty::set_sequence(
const int &val)
724 icalproperty_set_sequence(imp, val);
727int ICalProperty::get_sequence()
const
729 return icalproperty_get_sequence(imp);
733void ICalProperty::set_status(
const enum icalproperty_status &val)
735 icalproperty_set_status(imp, val);
738enum icalproperty_status ICalProperty::get_status()
const
740 return icalproperty_get_status(imp);
744void ICalProperty::set_summary(
const std::string &val)
746 icalproperty_set_summary(imp, val.c_str());
749std::string ICalProperty::get_summary()
const
751 return static_cast<std::string
>(icalproperty_get_summary(imp));
755void ICalProperty::set_target(
const std::string &val)
757 icalproperty_set_target(imp, val.c_str());
760std::string ICalProperty::get_target()
const
762 return static_cast<std::string
>(icalproperty_get_target(imp));
766void ICalProperty::set_transp(
const enum icalproperty_transp &val)
768 icalproperty_set_transp(imp, val);
771enum icalproperty_transp ICalProperty::get_transp()
const
773 return icalproperty_get_transp(imp);
777void ICalProperty::set_trigger(
const struct icaltriggertype &val)
779 icalproperty_set_trigger(imp, val);
784 return icalproperty_get_trigger(imp);
788void ICalProperty::set_tzid(
const std::string &val)
790 icalproperty_set_tzid(imp, val.c_str());
793std::string ICalProperty::get_tzid()
const
795 return static_cast<std::string
>(icalproperty_get_tzid(imp));
799void ICalProperty::set_tzname(
const std::string &val)
801 icalproperty_set_tzname(imp, val.c_str());
804std::string ICalProperty::get_tzname()
const
806 return static_cast<std::string
>(icalproperty_get_tzname(imp));
810void ICalProperty::set_tzoffsetfrom(
const int &val)
812 icalproperty_set_tzoffsetfrom(imp, val);
815int ICalProperty::get_tzoffsetfrom()
const
817 return icalproperty_get_tzoffsetfrom(imp);
821void ICalProperty::set_tzoffsetto(
const int &val)
823 icalproperty_set_tzoffsetto(imp, val);
826int ICalProperty::get_tzoffsetto()
const
828 return icalproperty_get_tzoffsetto(imp);
832void ICalProperty::set_tzurl(
const std::string &val)
834 icalproperty_set_tzurl(imp, val.c_str());
837std::string ICalProperty::get_tzurl()
const
839 return static_cast<std::string
>(icalproperty_get_tzurl(imp));
843void ICalProperty::set_uid(
const std::string &val)
845 icalproperty_set_uid(imp, val.c_str());
848std::string ICalProperty::get_uid()
const
850 return static_cast<std::string
>(icalproperty_get_uid(imp));
854void ICalProperty::set_url(
const std::string &val)
856 icalproperty_set_url(imp, val.c_str());
859std::string ICalProperty::get_url()
const
861 return static_cast<std::string
>(icalproperty_get_url(imp));
865void ICalProperty::set_version(
const std::string &val)
867 icalproperty_set_version(imp, val.c_str());
870std::string ICalProperty::get_version()
const
872 return static_cast<std::string
>(icalproperty_get_version(imp));
876void ICalProperty::set_x(
const std::string &val)
878 icalproperty_set_x(imp, val.c_str());
881std::string ICalProperty::get_x()
const
883 return static_cast<std::string
>(icalproperty_get_x(imp));
887void ICalProperty::set_xlicclustercount(
const std::string &val)
889 icalproperty_set_xlicclustercount(imp, val.c_str());
892std::string ICalProperty::get_xlicclustercount()
const
894 return static_cast<std::string
>(icalproperty_get_xlicclustercount(imp));
898void ICalProperty::set_xlicerror(
const std::string &val)
900 icalproperty_set_xlicerror(imp, val.c_str());
903std::string ICalProperty::get_xlicerror()
const
905 return static_cast<std::string
>(icalproperty_get_xlicerror(imp));
909void ICalProperty::set_xlicmimecharset(
const std::string &val)
911 icalproperty_set_xlicmimecharset(imp, val.c_str());
914std::string ICalProperty::get_xlicmimecharset()
const
916 return static_cast<std::string
>(icalproperty_get_xlicmimecharset(imp));
920void ICalProperty::set_xlicmimecid(
const std::string &val)
922 icalproperty_set_xlicmimecid(imp, val.c_str());
925std::string ICalProperty::get_xlicmimecid()
const
927 return static_cast<std::string
>(icalproperty_get_xlicmimecid(imp));
931void ICalProperty::set_xlicmimecontenttype(
const std::string &val)
933 icalproperty_set_xlicmimecontenttype(imp, val.c_str());
936std::string ICalProperty::get_xlicmimecontenttype()
const
938 return static_cast<std::string
>(icalproperty_get_xlicmimecontenttype(imp));
942void ICalProperty::set_xlicmimeencoding(
const std::string &val)
944 icalproperty_set_xlicmimeencoding(imp, val.c_str());
947std::string ICalProperty::get_xlicmimeencoding()
const
949 return static_cast<std::string
>(icalproperty_get_xlicmimeencoding(imp));
953void ICalProperty::set_xlicmimefilename(
const std::string &val)
955 icalproperty_set_xlicmimefilename(imp, val.c_str());
958std::string ICalProperty::get_xlicmimefilename()
const
960 return static_cast<std::string
>(icalproperty_get_xlicmimefilename(imp));
964void ICalProperty::set_xlicmimeoptinfo(
const std::string &val)
966 icalproperty_set_xlicmimeoptinfo(imp, val.c_str());
969std::string ICalProperty::get_xlicmimeoptinfo()
const
971 return static_cast<std::string
>(icalproperty_get_xlicmimeoptinfo(imp));
ICalParameter * get_first_parameter(const icalparameter_kind &kind)
std::string get_name() const
void set_value(const ICalValue &val)
struct icalattach_impl icalattach
An iCal attach object representing a link to a document object.
#define icalerrno
Access the current icalerrno value.
Definition of C++ Wrapper for icalparameter.c.
icalvalue * icalproperty_get_value(const icalproperty *prop)
bool icalproperty_isa_property(void *property)
void icalproperty_free(icalproperty *p)
void icalproperty_set_value(icalproperty *p, icalvalue *value)
icalproperty_kind icalproperty_isa(const icalproperty *p)
void icalproperty_set_parameter_from_string(icalproperty *prop, const char *name, const char *value)
int icalproperty_count_parameters(const icalproperty *prop)
const char * icalproperty_get_value_as_string(const icalproperty *prop)
void icalproperty_remove_parameter_by_kind(icalproperty *prop, icalparameter_kind kind)
Removes all parameters with the specified kind.
const char * icalproperty_get_property_name(const icalproperty *prop)
const char * icalproperty_as_ical_string(icalproperty *prop)
icalparameter * icalproperty_get_first_parameter(icalproperty *p, icalparameter_kind kind)
void icalproperty_add_parameter(icalproperty *p, icalparameter *parameter)
icalproperty * icalproperty_clone(const icalproperty *old)
const char * icalproperty_get_x_name(const icalproperty *prop)
void icalproperty_set_parameter(icalproperty *prop, icalparameter *parameter)
icalproperty * icalproperty_new(icalproperty_kind kind)
icalproperty * icalproperty_new_from_string(const char *str)
icalparameter * icalproperty_get_next_parameter(icalproperty *p, icalparameter_kind kind)
void icalproperty_set_value_from_string(icalproperty *prop, const char *str, const char *type)
const char * icalproperty_get_parameter_as_string(icalproperty *prop, const char *name)
void icalproperty_set_x_name(icalproperty *prop, const char *name)
icalproperty_kind icalproperty_string_to_kind(const char *string)
bool icalproperty_enum_belongs_to_property(icalproperty_kind kind, int e)
icalvalue_kind icalparameter_value_to_value_kind(icalparameter_value value)
icalproperty_method icalproperty_string_to_method(const char *str)
const char * icalproperty_enum_to_string(int e)
icalproperty_status icalproperty_string_to_status(const char *string)
icalproperty_kind icalproperty_value_kind_to_kind(icalvalue_kind kind)
const char * icalproperty_method_to_string(icalproperty_method method)
const char * icalproperty_status_to_string(icalproperty_status status)
int icalproperty_kind_and_string_to_enum(const int kind, const char *str)
icalvalue_kind icalproperty_kind_to_value_kind(icalproperty_kind kind)
const char * icalproperty_kind_to_string(icalproperty_kind kind)
Definition of C++ Wrapper for icalproperty.c.
const char * icalreqstattype_as_string(struct icalreqstattype stat)
struct icalreqstattype icalreqstattype_from_string(const char *str)
icalparameter_xliccomparetype icalvalue_compare(const icalvalue *a, const icalvalue *b)
Definition of C++ Wrapper for icalvalue.c.