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