Libical API Documentation 4.0 STABLE VERSION [Visit the v3.0 documentation]
Loading...
Searching...
No Matches
icalproperty_cxx.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2001, Critical Path
3 * SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
4 */
5
11
12#include "icalproperty_cxx.hpp"
13#include "icalparameter_cxx.hpp"
14#include "icalvalue_cxx.hpp"
15
16extern "C" {
17#include "icalerror_p.h"
18}
19
20#include <string>
21
22using namespace LibICal;
23
28
30 : imp(icalproperty_clone(v.imp))
31{
32 if (imp == NULL) {
33 throw icalerrno;
34 }
35}
36
38{
39 if (this == &v) {
40 return *this;
41 }
42
44 imp = NULL;
45
46 imp = icalproperty_clone(v.imp);
47 if (imp == NULL) {
48 throw icalerrno;
49 }
50
51 return *this;
52}
53
55{
56 imp = NULL;
57}
58
63
65 : imp(v)
66{
67}
68
70 : imp(icalproperty_new_from_string(str.c_str()))
71{
72}
73
78
80{
81 return static_cast<std::string>(icalproperty_as_ical_string(imp));
82}
83
88
89/* cppcheck-suppress functionStatic */
90bool ICalProperty::isa_property(void *property) //NOLINT(readability-convert-member-functions-to-static)
91{
92 return icalproperty_isa_property(property);
93}
94
96{
98 ICalValue *thisPropValue = this->get_value();
99 ICalValue *rhsPropValue = rhs.get_value();
100 result = icalvalue_compare(static_cast<icalvalue *>(*thisPropValue),
101 static_cast<icalvalue *>(*rhsPropValue));
102 delete thisPropValue;
103 delete rhsPropValue;
104 return (result == ICAL_XLICCOMPARETYPE_EQUAL) ? 1 : 0;
105}
106
107/* cppcheck-suppress constParameterReference */
109{
110 icalproperty_add_parameter(imp, parameter);
111}
112
113/* cppcheck-suppress constParameterReference */
115{
116 icalproperty_set_parameter(imp, parameter);
117}
118
119void ICalProperty::set_parameter_from_string(const std::string &name, const std::string &val)
120{
121 icalproperty_set_parameter_from_string(imp, name.c_str(), val.c_str());
122}
123
124std::string ICalProperty::get_parameter_as_string(const std::string &name)
125{
126 return static_cast<std::string>(icalproperty_get_parameter_as_string(imp, name.c_str()));
127}
128
133
138
145
151
154{
155 icalproperty_set_value(imp, const_cast<ICalValue &>(val));
156}
157
158void ICalProperty::set_value_from_string(const std::string &val, const std::string &kind)
159{
160 icalproperty_set_value_from_string(imp, val.c_str(), kind.c_str());
161}
162
167
169{
170 return static_cast<std::string>(icalproperty_get_value_as_string(imp));
171}
172
176std::string ICalProperty::get_name() const
177{
178 return static_cast<std::string>(icalproperty_get_property_name(imp));
179}
180
181/* Deal with X properties */
182/* cppcheck-suppress constParameterReference */
183void ICalProperty::set_x_name(ICalProperty &prop, const std::string &name)
184{
185 icalproperty_set_x_name(prop, name.c_str());
186}
187
188/* cppcheck-suppress constParameterReference */
190{
191 return static_cast<std::string>(icalproperty_get_x_name(prop));
192}
193
198
199/* Convert kinds to string and get default value type */
204
209
211{
212 return static_cast<std::string>(icalproperty_kind_to_string(kind));
213}
214
216{
217 return icalproperty_string_to_kind(str.c_str());
218}
219
221{
222 return static_cast<std::string>(icalproperty_method_to_string(method));
223}
224
229
230std::string ICalProperty::enum_to_string(const int &e)
231{
232 return static_cast<std::string>(icalproperty_enum_to_string(e));
233}
234
239
241{
242 return static_cast<std::string>(icalproperty_status_to_string(status));
243}
244
249
254
255/* ACTION */
257{
258 icalproperty_set_action(imp, val);
259}
260
265
266/* ATTACH */
271
276
277/* ATTENDEE */
278void ICalProperty::set_attendee(const std::string &val)
279{
280 icalproperty_set_attendee(imp, val.c_str());
281}
282
283std::string ICalProperty::get_attendee() const
284{
285 return static_cast<std::string>(icalproperty_get_attendee(imp));
286}
287
288/* CALSCALE */
289void ICalProperty::set_calscale(const std::string &val)
290{
291 icalproperty_set_calscale(imp, val.c_str());
292}
293
294std::string ICalProperty::get_calscale() const
295{
296 return static_cast<std::string>(icalproperty_get_calscale(imp));
297}
298
299/* CATEGORIES */
300void ICalProperty::set_categories(const std::string &val)
301{
302 icalproperty_set_categories(imp, val.c_str());
303}
304
306{
307 return static_cast<std::string>(icalproperty_get_categories(imp));
308}
309
310/* CLASS */
312{
313 icalproperty_set_class(imp, val);
314}
315
317{
318 return static_cast<enum icalproperty_class>(icalproperty_get_class(imp));
319}
320
321/* COMMENT */
322void ICalProperty::set_comment(const std::string &val)
323{
324 icalproperty_set_comment(imp, val.c_str());
325}
326
327std::string ICalProperty::get_comment() const
328{
329 return static_cast<std::string>(icalproperty_get_comment(imp));
330}
331
332/* COMPLETED */
334{
336}
337
339{
340 return icalproperty_get_completed(imp);
341}
342
343/* CONTACT */
344void ICalProperty::set_contact(const std::string &val)
345{
346 icalproperty_set_contact(imp, val.c_str());
347}
348
349std::string ICalProperty::get_contact() const
350{
351 return static_cast<std::string>(icalproperty_get_contact(imp));
352}
353
354/* CREATED */
356{
357 icalproperty_set_created(imp, val);
358}
359
361{
362 return icalproperty_get_created(imp);
363}
364
365/* DESCRIPTION */
366void ICalProperty::set_description(const std::string &val)
367{
368 icalproperty_set_description(imp, val.c_str());
369}
370
372{
373 return static_cast<std::string>(icalproperty_get_description(imp));
374}
375
376/* DTEND */
378{
379 icalproperty_set_dtend(imp, val);
380}
381
383{
384 return icalproperty_get_dtend(imp);
385}
386
387/* DTSTAMP */
389{
390 icalproperty_set_dtstamp(imp, val);
391}
392
394{
395 return icalproperty_get_dtstamp(imp);
396}
397
398/* DTSTART */
400{
401 icalproperty_set_dtstart(imp, val);
402}
403
405{
406 return icalproperty_get_dtstart(imp);
407}
408
409/* DUE */
410void ICalProperty::set_due(const struct icaltimetype &val)
411{
412 icalproperty_set_due(imp, val);
413}
414
416{
417 return icalproperty_get_due(imp);
418}
419
420/* DURATION */
422{
424}
425
427{
428 return icalproperty_get_duration(imp);
429}
430
431/* EXDATE */
433{
434 icalproperty_set_exdate(imp, val);
435}
436
438{
439 return icalproperty_get_exdate(imp);
440}
441
442/* EXPAND */
443void ICalProperty::set_expand(const int &val)
444{
445 icalproperty_set_expand(imp, val);
446}
447
449{
450 return icalproperty_get_expand(imp);
451}
452
453/* EXRULE */
455{
456 icalproperty_set_exrule(imp, val);
457}
458
460{
461 return icalproperty_get_exrule(imp);
462}
463
464/* FREEBUSY */
466{
468}
469
471{
472 return icalproperty_get_freebusy(imp);
473}
474
475/* GEO */
476void ICalProperty::set_geo(const struct icalgeotype &val)
477{
478 icalproperty_set_geo(imp, val);
479}
480
482{
483 return icalproperty_get_geo(imp);
484}
485
486/* LAST-MODIFIED */
488{
490}
491
496
497/* LOCATION */
498void ICalProperty::set_location(const std::string &val)
499{
500 icalproperty_set_location(imp, val.c_str());
501}
502
503std::string ICalProperty::get_location() const
504{
505 return static_cast<std::string>(icalproperty_get_location(imp));
506}
507
508/* MAXRESULTS */
510{
512}
513
515{
516 return icalproperty_get_maxresults(imp);
517}
518
519/* MAXRESULTSSIZE */
521{
523}
524
529
530/* METHOD */
532{
533 icalproperty_set_method(imp, val);
534}
535
540
541/* ORGANIZER */
542void ICalProperty::set_organizer(const std::string &val)
543{
544 icalproperty_set_organizer(imp, val.c_str());
545}
546
548{
549 return static_cast<std::string>(icalproperty_get_organizer(imp));
550}
551
552/* OWNER */
553void ICalProperty::set_owner(const std::string &val)
554{
555 icalproperty_set_owner(imp, val.c_str());
556}
557
558std::string ICalProperty::get_owner() const
559{
560 return static_cast<std::string>(icalproperty_get_owner(imp));
561}
562
563/* PERCENT-COMPLETE */
565{
567}
568
573
574/* PRIORITY */
575void ICalProperty::set_priority(const int &val)
576{
578}
579
581{
582 return icalproperty_get_priority(imp);
583}
584
585/* PRODID */
586void ICalProperty::set_prodid(const std::string &val)
587{
588 icalproperty_set_prodid(imp, val.c_str());
589}
590
591std::string ICalProperty::get_prodid() const
592{
593 return static_cast<std::string>(icalproperty_get_prodid(imp));
594}
595
596/* QUERY */
597void ICalProperty::set_query(const std::string &val)
598{
599 icalproperty_set_query(imp, val.c_str());
600}
601
602std::string ICalProperty::get_query() const
603{
604 return static_cast<std::string>(icalproperty_get_query(imp));
605}
606
607/* QUERYNAME */
608void ICalProperty::set_queryname(const std::string &val)
609{
610 icalproperty_set_queryname(imp, val.c_str());
611}
612
614{
615 return static_cast<std::string>(icalproperty_get_queryname(imp));
616}
617
618/* RDATE */
620{
621 icalproperty_set_rdate(imp, val);
622}
623
625{
626 return icalproperty_get_rdate(imp);
627}
628
629/* RECURRENCE-ID */
631{
633}
634
639
640/* RELATED-TO */
641void ICalProperty::set_relatedto(const std::string &val)
642{
643 icalproperty_set_relatedto(imp, val.c_str());
644}
645
647{
648 return static_cast<std::string>(icalproperty_get_relatedto(imp));
649}
650
651/* RELCALID */
652void ICalProperty::set_relcalid(const std::string &val)
653{
654 icalproperty_set_relcalid(imp, val.c_str());
655}
656
657std::string ICalProperty::get_relcalid() const
658{
659 return static_cast<std::string>(icalproperty_get_relcalid(imp));
660}
661
662/* REPEAT */
663void ICalProperty::set_repeat(const int &val)
664{
665 icalproperty_set_repeat(imp, val);
666}
667
669{
670 return icalproperty_get_repeat(imp);
671}
672
673/* REQUEST-STATUS */
674void ICalProperty::set_requeststatus(const std::string &val)
675{
676 const icalreqstattype v = icalreqstattype_from_string(val.c_str());
677
679}
680
682{
684 /* coverity[resource_leak] */
685 return static_cast<std::string>(icalreqstattype_as_string(v));
686}
687
688/* RESOURCES */
689void ICalProperty::set_resources(const std::string &val)
690{
691 icalproperty_set_resources(imp, val.c_str());
692}
693
695{
696 return static_cast<std::string>(icalproperty_get_resources(imp));
697}
698
699/* RRULE */
701{
702 icalproperty_set_rrule(imp, val);
703}
704
706{
707 return icalproperty_get_rrule(imp);
708}
709
710/* SCOPE */
711void ICalProperty::set_scope(const std::string &val)
712{
713 icalproperty_set_scope(imp, val.c_str());
714}
715
716std::string ICalProperty::get_scope() const
717{
718 return static_cast<std::string>(icalproperty_get_scope(imp));
719}
720
721/* SEQUENCE */
722void ICalProperty::set_sequence(const int &val)
723{
725}
726
728{
729 return icalproperty_get_sequence(imp);
730}
731
732/* STATUS */
734{
735 icalproperty_set_status(imp, val);
736}
737
742
743/* SUMMARY */
744void ICalProperty::set_summary(const std::string &val)
745{
746 icalproperty_set_summary(imp, val.c_str());
747}
748
749std::string ICalProperty::get_summary() const
750{
751 return static_cast<std::string>(icalproperty_get_summary(imp));
752}
753
754/* TARGET */
755void ICalProperty::set_target(const std::string &val)
756{
757 icalproperty_set_target(imp, val.c_str());
758}
759
760std::string ICalProperty::get_target() const
761{
762 return static_cast<std::string>(icalproperty_get_target(imp));
763}
764
765/* TRANSP */
767{
768 icalproperty_set_transp(imp, val);
769}
770
775
776/* TRIGGER */
778{
779 icalproperty_set_trigger(imp, val);
780}
781
783{
784 return icalproperty_get_trigger(imp);
785}
786
787/* TZID */
788void ICalProperty::set_tzid(const std::string &val)
789{
790 icalproperty_set_tzid(imp, val.c_str());
791}
792
793std::string ICalProperty::get_tzid() const
794{
795 return static_cast<std::string>(icalproperty_get_tzid(imp));
796}
797
798/* TZNAME */
799void ICalProperty::set_tzname(const std::string &val)
800{
801 icalproperty_set_tzname(imp, val.c_str());
802}
803
804std::string ICalProperty::get_tzname() const
805{
806 return static_cast<std::string>(icalproperty_get_tzname(imp));
807}
808
809/* TZOFFSETFROM */
811{
813}
814
819
820/* TZOFFSETTO */
822{
824}
825
827{
828 return icalproperty_get_tzoffsetto(imp);
829}
830
831/* TZURL */
832void ICalProperty::set_tzurl(const std::string &val)
833{
834 icalproperty_set_tzurl(imp, val.c_str());
835}
836
837std::string ICalProperty::get_tzurl() const
838{
839 return static_cast<std::string>(icalproperty_get_tzurl(imp));
840}
841
842/* UID */
843void ICalProperty::set_uid(const std::string &val)
844{
845 icalproperty_set_uid(imp, val.c_str());
846}
847
848std::string ICalProperty::get_uid() const
849{
850 return static_cast<std::string>(icalproperty_get_uid(imp));
851}
852
853/* URL */
854void ICalProperty::set_url(const std::string &val)
855{
856 icalproperty_set_url(imp, val.c_str());
857}
858
859std::string ICalProperty::get_url() const
860{
861 return static_cast<std::string>(icalproperty_get_url(imp));
862}
863
864/* VERSION */
865void ICalProperty::set_version(const std::string &val)
866{
867 icalproperty_set_version(imp, val.c_str());
868}
869
870std::string ICalProperty::get_version() const
871{
872 return static_cast<std::string>(icalproperty_get_version(imp));
873}
874
875/* X */
876void ICalProperty::set_x(const std::string &val)
877{
878 icalproperty_set_x(imp, val.c_str());
879}
880
881std::string ICalProperty::get_x() const
882{
883 return static_cast<std::string>(icalproperty_get_x(imp));
884}
885
886/* X-LIC-CLUSTERCOUNT */
887void ICalProperty::set_xlicclustercount(const std::string &val)
888{
889 icalproperty_set_xlicclustercount(imp, val.c_str());
890}
891
893{
894 return static_cast<std::string>(icalproperty_get_xlicclustercount(imp));
895}
896
897/* X-LIC-ERROR */
898void ICalProperty::set_xlicerror(const std::string &val)
899{
900 icalproperty_set_xlicerror(imp, val.c_str());
901}
902
904{
905 return static_cast<std::string>(icalproperty_get_xlicerror(imp));
906}
907
908/* X-LIC-MIMECHARSET */
909void ICalProperty::set_xlicmimecharset(const std::string &val)
910{
911 icalproperty_set_xlicmimecharset(imp, val.c_str());
912}
913
915{
916 return static_cast<std::string>(icalproperty_get_xlicmimecharset(imp));
917}
918
919/* X-LIC-MIMECID */
920void ICalProperty::set_xlicmimecid(const std::string &val)
921{
922 icalproperty_set_xlicmimecid(imp, val.c_str());
923}
924
926{
927 return static_cast<std::string>(icalproperty_get_xlicmimecid(imp));
928}
929
930/* X-LIC-MIMECONTENTTYPE */
931void ICalProperty::set_xlicmimecontenttype(const std::string &val)
932{
933 icalproperty_set_xlicmimecontenttype(imp, val.c_str());
934}
935
937{
938 return static_cast<std::string>(icalproperty_get_xlicmimecontenttype(imp));
939}
940
941/* X-LIC-MIMEENCODING */
942void ICalProperty::set_xlicmimeencoding(const std::string &val)
943{
944 icalproperty_set_xlicmimeencoding(imp, val.c_str());
945}
946
948{
949 return static_cast<std::string>(icalproperty_get_xlicmimeencoding(imp));
950}
951
952/* X-LIC-MIMEFILENAME */
953void ICalProperty::set_xlicmimefilename(const std::string &val)
954{
955 icalproperty_set_xlicmimefilename(imp, val.c_str());
956}
957
959{
960 return static_cast<std::string>(icalproperty_get_xlicmimefilename(imp));
961}
962
963/* X-LIC-MIMEOPTINFO */
964void ICalProperty::set_xlicmimeoptinfo(const std::string &val)
965{
966 icalproperty_set_xlicmimeoptinfo(imp, val.c_str());
967}
968
970{
971 return static_cast<std::string>(icalproperty_get_xlicmimeoptinfo(imp));
972}
void set_dtstamp(const struct icaltimetype &val)
std::string get_location() const
void set_status(const enum icalproperty_status &val)
struct icalgeotype get_geo() const
void set_xlicclustercount(const std::string &val)
std::string get_xlicmimeencoding() const
void set_exrule(struct icalrecurrencetype *val)
void set_maxresults(const int &val)
void set_priority(const int &val)
void set_uid(const std::string &val)
void set_tzid(const std::string &val)
static icalvalue_kind value_to_value_kind(const icalparameter_value &val)
struct icaltriggertype get_trigger() const
void add_parameter(ICalParameter &parameter)
struct icaltimetype get_dtend() const
std::string get_relcalid() const
struct icaltimetype get_completed() const
ICalParameter * get_first_parameter(const icalparameter_kind &kind)
std::string get_calscale() const
static std::string status_to_string(const icalproperty_status &status)
void set_tzurl(const std::string &val)
static icalproperty_status string_to_status(const std::string &str)
void set_expand(const int &val)
std::string get_tzurl() const
static void set_x_name(ICalProperty &prop, const std::string &name)
void set_attendee(const std::string &val)
std::string get_organizer() const
std::string get_xlicmimecontenttype() const
struct icalrecurrencetype * get_exrule() const
std::string get_value_as_string()
void set_xlicerror(const std::string &val)
std::string get_queryname() const
static icalproperty_method string_to_method(const std::string &str)
struct icalrecurrencetype * get_rrule() const
void set_requeststatus(const std::string &val)
std::string get_attendee() const
void set_calscale(const std::string &val)
static icalvalue_kind kind_to_value_kind(const icalproperty_kind &kind)
void set_xlicmimecontenttype(const std::string &val)
static int kind_and_string_to_enum(const icalproperty_kind &kind, const std::string &str)
std::string get_parameter_as_string(const std::string &name)
void set_repeat(const int &val)
void set_target(const std::string &val)
void set_duration(const struct icaldurationtype &val)
icalproperty_kind isa()
void set_contact(const std::string &val)
std::string get_version() const
void set_xlicmimeencoding(const std::string &val)
void set_tzname(const std::string &val)
static std::string kind_to_string(const icalproperty_kind &kind)
struct icaltimetype get_dtstart() const
void set_sequence(const int &val)
void set_query(const std::string &val)
void set_organizer(const std::string &val)
void set_xlicmimecid(const std::string &val)
static std::string enum_to_string(const int &e)
std::string get_prodid() const
void set_xlicmimefilename(const std::string &val)
void set_due(const struct icaltimetype &val)
void set_tzoffsetto(const int &val)
void set_percentcomplete(const int &val)
enum icalproperty_transp get_transp() const
void remove_parameter_by_kind(const icalparameter_kind &kind)
std::string get_owner() const
void set_parameter_from_string(const std::string &name, const std::string &val)
void set_relatedto(const std::string &val)
void set_location(const std::string &val)
enum icalproperty_action get_action()
struct icaltimetype get_created() const
static icalproperty_kind string_to_kind(const std::string &str)
std::string get_target() const
std::string get_xlicmimecharset() const
enum icalproperty_method get_method() const
void set_completed(const struct icaltimetype &val)
enum icalproperty_status get_status() const
int operator==(ICalProperty &rhs)
void set_relcalid(const std::string &val)
std::string get_categories() const
struct icaldurationtype get_duration() const
void set_prodid(const std::string &val)
struct icaltimetype get_due() const
void set_recurrenceid(const struct icaltimetype &val)
struct icaltimetype get_exdate() const
std::string get_tzid() const
struct icaltimetype get_dtstamp() const
ICalProperty & operator=(const ICalProperty &)
std::string get_url() const
void set_method(const enum icalproperty_method &val)
struct icalperiodtype get_freebusy() const
static std::string method_to_string(const icalproperty_method &method)
std::string get_contact() const
void set_comment(const std::string &val)
std::string get_xlicclustercount() const
std::string get_relatedto() const
std::string get_uid() const
void set_dtstart(const struct icaltimetype &val)
void set_attach(icalattach *val)
void set_resources(const std::string &val)
void set_categories(const std::string &val)
std::string get_xlicmimefilename() const
static std::string get_x_name(ICalProperty &prop)
void set_dtend(const struct icaltimetype &val)
std::string get_resources() const
void set_summary(const std::string &val)
std::string get_description() const
static icalproperty_kind value_kind_to_kind(const icalvalue_kind &kind)
struct icaltimetype get_recurrenceid() const
void set_transp(const enum icalproperty_transp &val)
void set_value_from_string(const std::string &val, const std::string &kind)
std::string get_comment() const
struct icaltimetype get_lastmodified() const
ICalParameter * get_next_parameter(const icalparameter_kind &kind)
void set_geo(const struct icalgeotype &val)
bool isa_property(void *property)
std::string get_tzname() const
void set_parameter(ICalParameter &parameter)
void set_xlicmimeoptinfo(const std::string &val)
std::string get_summary() const
void set_queryname(const std::string &val)
void set_freebusy(const struct icalperiodtype &val)
void set_trigger(const struct icaltriggertype &val)
std::string get_xlicmimeoptinfo() const
struct icaldatetimeperiodtype get_rdate() const
enum icalproperty_class get_class() const
void set_version(const std::string &val)
std::string get_name() const
void set_tzoffsetfrom(const int &val)
void set_maxresultsize(const int &val)
void set_url(const std::string &val)
void set_value(const ICalValue &val)
std::string get_requeststatus() const
void set_owner(const std::string &val)
void set_exdate(const struct icaltimetype &val)
void set_rdate(const struct icaldatetimeperiodtype &val)
static bool enum_belongs_to_property(const icalproperty_kind &kind, const int &e)
void set_class(const enum icalproperty_class &val)
std::string get_xlicmimecid() const
void set_lastmodified(const struct icaltimetype &val)
std::string get_scope() const
void set_xlicmimecharset(const std::string &val)
void set_description(const std::string &val)
void set_action(const enum icalproperty_action &val)
void set_x(const std::string &val)
void set_created(const struct icaltimetype &val)
void set_scope(const std::string &val)
std::string get_x() const
icalattach * get_attach() const
std::string get_query() const
std::string get_xlicerror() const
void set_rrule(struct icalrecurrencetype *val)
struct icalattach_impl icalattach
An iCal attach object representing a link to a document object.
Definition icalattach.h:36
icalparameter_kind
icalparameter_value
struct icalparameter_impl icalparameter
icalparameter_xliccomparetype
@ ICAL_XLICCOMPARETYPE_EQUAL
void icalproperty_set_dtstart(icalproperty *prop, struct icaltimetype v)
int icalproperty_get_repeat(const icalproperty *prop)
enum icalproperty_transp icalproperty_get_transp(const icalproperty *prop)
const char * icalproperty_get_uid(const icalproperty *prop)
const char * icalproperty_get_tzurl(const icalproperty *prop)
struct icaltimetype icalproperty_get_lastmodified(const icalproperty *prop)
int icalproperty_get_sequence(const icalproperty *prop)
void icalproperty_set_attendee(icalproperty *prop, const char *v)
const char * icalproperty_get_categories(const icalproperty *prop)
struct icalgeotype icalproperty_get_geo(const icalproperty *prop)
void icalproperty_set_xlicclustercount(icalproperty *prop, const char *v)
void icalproperty_set_queryname(icalproperty *prop, const char *v)
void icalproperty_set_xlicmimecharset(icalproperty *prop, const char *v)
void icalproperty_set_x(icalproperty *prop, const char *v)
void icalproperty_set_tzid(icalproperty *prop, const char *v)
void icalproperty_set_categories(icalproperty *prop, const char *v)
struct icaltimetype icalproperty_get_dtstamp(const icalproperty *prop)
void icalproperty_set_exdate(icalproperty *prop, struct icaltimetype v)
void icalproperty_set_lastmodified(icalproperty *prop, struct icaltimetype v)
void icalproperty_set_created(icalproperty *prop, struct icaltimetype v)
void icalproperty_set_due(icalproperty *prop, struct icaltimetype v)
void icalproperty_set_requeststatus(icalproperty *prop, struct icalreqstattype v)
void icalproperty_set_uid(icalproperty *prop, const char *v)
void icalproperty_set_xlicmimefilename(icalproperty *prop, const char *v)
const char * icalproperty_get_description(const icalproperty *prop)
void icalproperty_set_comment(icalproperty *prop, const char *v)
int icalproperty_get_maxresults(const icalproperty *prop)
void icalproperty_set_xlicmimeoptinfo(icalproperty *prop, const char *v)
void icalproperty_set_tzoffsetfrom(icalproperty *prop, int v)
void icalproperty_set_sequence(icalproperty *prop, int v)
void icalproperty_set_dtend(icalproperty *prop, struct icaltimetype v)
const char * icalproperty_get_organizer(const icalproperty *prop)
const char * icalproperty_get_relatedto(const icalproperty *prop)
const char * icalproperty_get_summary(const icalproperty *prop)
const char * icalproperty_get_xlicmimecharset(const icalproperty *prop)
const char * icalproperty_get_tzname(const icalproperty *prop)
void icalproperty_set_tzoffsetto(icalproperty *prop, int v)
void icalproperty_set_freebusy(icalproperty *prop, struct icalperiodtype v)
struct icalrecurrencetype * icalproperty_get_exrule(const icalproperty *prop)
struct icalreqstattype icalproperty_get_requeststatus(const icalproperty *prop)
void icalproperty_set_organizer(icalproperty *prop, const char *v)
struct icaldurationtype icalproperty_get_duration(const icalproperty *prop)
void icalproperty_set_repeat(icalproperty *prop, int v)
const char * icalproperty_get_resources(const icalproperty *prop)
void icalproperty_set_exrule(icalproperty *prop, struct icalrecurrencetype *v)
void icalproperty_set_xlicerror(icalproperty *prop, const char *v)
void icalproperty_set_rrule(icalproperty *prop, struct icalrecurrencetype *v)
void icalproperty_set_trigger(icalproperty *prop, struct icaltriggertype v)
const char * icalproperty_get_owner(const icalproperty *prop)
void icalproperty_set_duration(icalproperty *prop, struct icaldurationtype v)
void icalproperty_set_contact(icalproperty *prop, const char *v)
icalattach * icalproperty_get_attach(const icalproperty *prop)
const char * icalproperty_get_xlicmimeencoding(const icalproperty *prop)
void icalproperty_set_owner(icalproperty *prop, const char *v)
const char * icalproperty_get_xlicmimecid(const icalproperty *prop)
void icalproperty_set_maxresultssize(icalproperty *prop, int v)
void icalproperty_set_percentcomplete(icalproperty *prop, int v)
struct icaltimetype icalproperty_get_exdate(const icalproperty *prop)
void icalproperty_set_tzname(icalproperty *prop, const char *v)
const char * icalproperty_get_comment(const icalproperty *prop)
void icalproperty_set_xlicmimecontenttype(icalproperty *prop, const char *v)
void icalproperty_set_xlicmimeencoding(icalproperty *prop, const char *v)
void icalproperty_set_class(icalproperty *prop, enum icalproperty_class v)
void icalproperty_set_summary(icalproperty *prop, const char *v)
enum icalproperty_status icalproperty_get_status(const icalproperty *prop)
void icalproperty_set_query(icalproperty *prop, const char *v)
void icalproperty_set_maxresults(icalproperty *prop, int v)
void icalproperty_set_location(icalproperty *prop, const char *v)
void icalproperty_set_target(icalproperty *prop, const char *v)
const char * icalproperty_get_x(const icalproperty *prop)
enum icalproperty_class icalproperty_get_class(const icalproperty *prop)
void icalproperty_set_recurrenceid(icalproperty *prop, struct icaltimetype v)
struct icaltriggertype icalproperty_get_trigger(const icalproperty *prop)
struct icalrecurrencetype * icalproperty_get_rrule(const icalproperty *prop)
struct icaltimetype icalproperty_get_dtend(const icalproperty *prop)
void icalproperty_set_url(icalproperty *prop, const char *v)
const char * icalproperty_get_tzid(const icalproperty *prop)
struct icaldatetimeperiodtype icalproperty_get_rdate(const icalproperty *prop)
void icalproperty_set_geo(icalproperty *prop, struct icalgeotype v)
void icalproperty_set_transp(icalproperty *prop, enum icalproperty_transp v)
void icalproperty_set_expand(icalproperty *prop, int v)
const char * icalproperty_get_url(const icalproperty *prop)
const char * icalproperty_get_version(const icalproperty *prop)
void icalproperty_set_relcalid(icalproperty *prop, const char *v)
struct icaltimetype icalproperty_get_recurrenceid(const icalproperty *prop)
const char * icalproperty_get_queryname(const icalproperty *prop)
enum icalproperty_method icalproperty_get_method(const icalproperty *prop)
void icalproperty_set_method(icalproperty *prop, enum icalproperty_method v)
void icalproperty_set_resources(icalproperty *prop, const char *v)
struct icaltimetype icalproperty_get_dtstart(const icalproperty *prop)
int icalproperty_get_tzoffsetto(const icalproperty *prop)
const char * icalproperty_get_calscale(const icalproperty *prop)
void icalproperty_set_version(icalproperty *prop, const char *v)
int icalproperty_get_tzoffsetfrom(const icalproperty *prop)
const char * icalproperty_get_contact(const icalproperty *prop)
void icalproperty_set_dtstamp(icalproperty *prop, struct icaltimetype v)
const char * icalproperty_get_target(const icalproperty *prop)
void icalproperty_set_relatedto(icalproperty *prop, const char *v)
int icalproperty_get_percentcomplete(const icalproperty *prop)
const char * icalproperty_get_xlicerror(const icalproperty *prop)
struct icalperiodtype icalproperty_get_freebusy(const icalproperty *prop)
struct icaltimetype icalproperty_get_created(const icalproperty *prop)
void icalproperty_set_rdate(icalproperty *prop, struct icaldatetimeperiodtype v)
enum icalproperty_action icalproperty_get_action(const icalproperty *prop)
const char * icalproperty_get_attendee(const icalproperty *prop)
struct icaltimetype icalproperty_get_completed(const icalproperty *prop)
void icalproperty_set_calscale(icalproperty *prop, const char *v)
const char * icalproperty_get_query(const icalproperty *prop)
void icalproperty_set_attach(icalproperty *prop, icalattach *v)
void icalproperty_set_tzurl(icalproperty *prop, const char *v)
void icalproperty_set_prodid(icalproperty *prop, const char *v)
void icalproperty_set_xlicmimecid(icalproperty *prop, const char *v)
int icalproperty_get_maxresultssize(const icalproperty *prop)
const char * icalproperty_get_scope(const icalproperty *prop)
const char * icalproperty_get_xlicmimeoptinfo(const icalproperty *prop)
icalproperty_kind
@ ICAL_ANY_PROPERTY
void icalproperty_set_scope(icalproperty *prop, const char *v)
int icalproperty_get_priority(const icalproperty *prop)
const char * icalproperty_get_xlicmimecontenttype(const icalproperty *prop)
void icalproperty_set_description(icalproperty *prop, const char *v)
const char * icalproperty_get_xlicmimefilename(const icalproperty *prop)
const char * icalproperty_get_location(const icalproperty *prop)
void icalproperty_set_status(icalproperty *prop, enum icalproperty_status v)
const char * icalproperty_get_xlicclustercount(const icalproperty *prop)
void icalproperty_set_completed(icalproperty *prop, struct icaltimetype v)
const char * icalproperty_get_prodid(const icalproperty *prop)
struct icaltimetype icalproperty_get_due(const icalproperty *prop)
void icalproperty_set_priority(icalproperty *prop, int v)
void icalproperty_set_action(icalproperty *prop, enum icalproperty_action v)
const char * icalproperty_get_relcalid(const icalproperty *prop)
int icalproperty_get_expand(const icalproperty *prop)
icalproperty_status
icalproperty_action
icalproperty_method
icalproperty_class
icalvalue_kind
icalproperty_transp
struct icalvalue_impl icalvalue
enum icalrequeststatus kind
Definition icalenums.c:26
const char * str
Definition icalenums.c:29
#define icalerrno
Access the current icalerrno value.
Definition icalerror.h:133
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)
Definition icaltypes.c:156
struct icalreqstattype icalreqstattype_from_string(const char *str)
Definition icaltypes.c:99
icalparameter_xliccomparetype icalvalue_compare(const icalvalue *a, const icalvalue *b)
Definition icalvalue.c:1356
Definition of C++ Wrapper for icalvalue.c.