23#include "icalerror_p.h"
210 return ((t != NULL) ?
new VComponent(t) : NULL);
232 result =
new VToDo(t);
264 result =
new VToDo(t);
515 if (this->
isa() != fromVC.
isa()) {
522 propToBeRemoved != NULL;
532 if (p == propToBeRemoved) {
544 const std::string fromCompUid = comp->
get_uid();
548 if (strcmp(fromCompUid.c_str(), c->
get_uid().c_str()) == 0) {
550 c->
remove(*comp, ignoreValue);
571 if (this->
isa() != fromC.
isa()) {
581 if (thisProp == NULL) {
598 if (thisComp == NULL) {
602 const bool err = thisComp->
update(*comp, removeMissing);
614 if (this->
isa() != fromC.
isa()) {
895 if (trigger_prop == NULL) {
912 if ((related_param != NULL) && related_param->
is_valid()) {
965 delete related_param;
icalparameter_related get_related() const
struct icaltriggertype get_trigger() const
ICalParameter * get_first_parameter(const icalparameter_kind &kind)
void set_value(const ICalValue &val)
VAgenda & operator=(const VAgenda &)
icalrequeststatus getTriggerTime(VComponent &c, struct icaltriggertype *tr)
VAlarm & operator=(const VAlarm &)
VCalendar & operator=(const VCalendar &)
void set_comment(const std::string &v)
void strip_errors()
Remove all X-LIC-ERROR properties.
void remove_component(VComponent *child)
void set_recurrenceid(const struct icaltimetype &v)
void new_from_string(const std::string &str)
struct icaltimetype get_dtstamp() const
struct icaltimetype get_due() const
void set_dtstamp(const struct icaltimetype &v)
void add_component(VComponent *child)
VComponent * get_first_component(const icalcomponent_kind &kind)
ICalProperty * get_current_property()
static VComponent * next(icalcompiter *i)
icalcompiter end_component(const icalcomponent_kind &kind)
void set_dtstart(const struct icaltimetype &v)
virtual struct icaltime_span get_span()
bool isa_component(const void *component)
static icalcomponent_kind string_to_kind(const std::string &str)
Kind conversion routines.
int count_properties(const icalproperty_kind &kind)
struct icaltimetype get_dtend() const
int count_errors()
Working with embedded error properties.
std::string get_description() const
void set_due(const struct icaltimetype &v)
void set_method(const icalproperty_method &method)
ICalProperty * get_next_property(const icalproperty_kind &kind)
VComponent * get_current_component()
Iterate through components.
static VComponent * prev(icalcompiter *i)
bool recurrence_is_excluded(struct icaltimetype *dtstart, struct icaltimetype *recurtime)
void set_status(const enum icalproperty_status &v)
icalproperty_method get_method() const
void set_relcalid(const std::string &v)
void add_property(ICalProperty *property)
Working with properties.
std::string as_ical_string()
ICalProperty * get_first_property(const icalproperty_kind &kind)
struct icaltimetype get_recurrenceid() const
void set_description(const std::string &v)
VComponent * get_first_real_component()
struct icaldurationtype get_duration() const
VComponent & operator=(const VComponent &)
void set_location(const std::string &v)
void set_uid(const std::string &v)
icalcompiter begin_component(const icalcomponent_kind &kind)
Using external iterators.
struct icaltimetype get_dtstart() const
void set_dtend(const struct icaltimetype &v)
void set_sequence(const int &v)
std::string get_uid() const
void set_duration(const struct icaldurationtype &v)
bool update(VComponent &, bool removeMissing)
static std::string kind_to_string(const icalcomponent_kind &kind)
std::string get_comment() const
bool remove(VComponent &, bool ignoreValue)
Note: the VComponent kind have to be the same.
void remove_property(ICalProperty *property)
void set_summary(const std::string &v)
void convert_errors()
Convert some X-LIC-ERROR properties into RETURN-STATUS properties.
std::string get_summary() const
std::string get_relcalid() const
int count_components(const icalcomponent_kind &kind)
std::string get_location() const
static VComponent * current(icalcompiter *i)
VComponent * get_next_component(const icalcomponent_kind &kind)
VEvent & operator=(const VEvent &)
VFreeBusy & operator=(const VFreeBusy &)
VJournal & operator=(const VJournal &)
VQuery & operator=(const VQuery &)
VTimezone & operator=(const VTimezone &)
VToDo & operator=(const VToDo &)
XDaylight & operator=(const XDaylight &)
XStandard & operator=(const XStandard &)
void icalcomponent_convert_errors(icalcomponent *component)
icalcomponent * icalcomponent_new_xstandard(void)
void icalcomponent_set_relcalid(icalcomponent *comp, const char *v)
bool icalcomponent_is_valid(const icalcomponent *component)
icalcomponent * icalcomponent_new_vagenda(void)
void icalcomponent_set_uid(icalcomponent *comp, const char *v)
icalcomponent_kind icalcomponent_string_to_kind(const char *string)
struct icaltimetype icalcomponent_get_dtend(icalcomponent *comp)
struct icaltimetype icalcomponent_get_dtstart(icalcomponent *comp)
icalproperty * icalcomponent_get_first_property(icalcomponent *c, icalproperty_kind kind)
int icalcomponent_count_properties(icalcomponent *component, icalproperty_kind kind)
icalproperty_method icalcomponent_get_method(icalcomponent *comp)
void icalcomponent_set_recurrenceid(icalcomponent *comp, struct icaltimetype v)
struct icaltimetype icalcomponent_get_recurrenceid(icalcomponent *comp)
icalcomponent * icalcompiter_next(icalcompiter *i)
void icalcomponent_set_location(icalcomponent *comp, const char *v)
const char * icalcomponent_get_description(icalcomponent *comp)
icalcomponent * icalcomponent_get_next_component(icalcomponent *c, icalcomponent_kind kind)
icalcomponent * icalcomponent_get_first_component(icalcomponent *c, icalcomponent_kind kind)
void icalcomponent_set_dtstart(icalcomponent *comp, struct icaltimetype v)
void icalcomponent_set_dtstamp(icalcomponent *comp, struct icaltimetype v)
void icalcomponent_strip_errors(icalcomponent *component)
icalcomponent * icalcomponent_new_vcalendar(void)
icalcomponent * icalcomponent_get_current_component(icalcomponent *component)
void icalcomponent_remove_property(icalcomponent *component, icalproperty *property)
char * icalcomponent_as_ical_string(const icalcomponent *component)
const char * icalcomponent_kind_to_string(icalcomponent_kind kind)
enum icalproperty_status icalcomponent_get_status(icalcomponent *comp)
icalcomponent * icalcomponent_new_vjournal(void)
void icalcomponent_remove_component(icalcomponent *parent, icalcomponent *child)
icalcomponent * icalcomponent_new_vfreebusy(void)
icalcomponent * icalcompiter_deref(icalcompiter *i)
void icalcomponent_set_method(icalcomponent *comp, icalproperty_method method)
icalcomponent * icalcomponent_new(icalcomponent_kind kind)
void icalcomponent_set_summary(icalcomponent *comp, const char *v)
void icalcomponent_set_sequence(icalcomponent *comp, int v)
icalcomponent * icalcomponent_get_inner(icalcomponent *comp)
const char * icalcomponent_get_comment(icalcomponent *comp)
const char * icalcomponent_get_summary(icalcomponent *comp)
icaltime_span icalcomponent_get_span(icalcomponent *comp)
const char * icalcomponent_get_relcalid(icalcomponent *comp)
icalcomponent * icalcomponent_get_first_real_component(const icalcomponent *c)
icalcomponent * icalcomponent_new_vtimezone(void)
struct icaltimetype icalcomponent_get_due(icalcomponent *comp)
bool icalproperty_recurrence_is_excluded(icalcomponent *comp, struct icaltimetype *dtstart, struct icaltimetype *recurtime)
Decides if a recurrence is acceptable.
int icalcomponent_count_errors(icalcomponent *component)
struct icaldurationtype icalcomponent_get_duration(icalcomponent *comp)
icalcomponent * icalcomponent_clone(const icalcomponent *old)
icalproperty * icalcomponent_get_current_property(icalcomponent *component)
void icalcomponent_set_dtend(icalcomponent *comp, struct icaltimetype v)
const char * icalcomponent_get_uid(icalcomponent *comp)
int icalcomponent_get_sequence(icalcomponent *comp)
icalcompiter icalcomponent_end_component(icalcomponent *component, icalcomponent_kind kind)
icalcomponent * icalcomponent_new_xdaylight(void)
icalcomponent * icalcomponent_new_valarm(void)
void icalcomponent_add_property(icalcomponent *component, icalproperty *property)
void icalcomponent_set_duration(icalcomponent *comp, struct icaldurationtype v)
icalcompiter icalcomponent_begin_component(icalcomponent *component, icalcomponent_kind kind)
icalcomponent_kind icalcomponent_isa(const icalcomponent *component)
icalcomponent * icalcompiter_prior(icalcompiter *i)
icalcomponent * icalcomponent_new_vtodo(void)
void icalcomponent_set_status(icalcomponent *comp, enum icalproperty_status v)
const char * icalcomponent_get_location(icalcomponent *comp)
void icalcomponent_free(icalcomponent *c)
icalcomponent * icalcomponent_new_vevent(void)
void icalcomponent_set_due(icalcomponent *comp, struct icaltimetype v)
void icalcomponent_add_component(icalcomponent *parent, icalcomponent *child)
icalproperty * icalcomponent_get_next_property(icalcomponent *c, icalproperty_kind kind)
void icalcomponent_set_description(icalcomponent *comp, const char *v)
icalcomponent * icalcomponent_new_from_string(const char *str)
int icalcomponent_count_components(icalcomponent *component, icalcomponent_kind kind)
void icalcomponent_set_comment(icalcomponent *comp, const char *v)
icalcomponent * icalcomponent_new_vquery(void)
bool icalcomponent_isa_component(const void *component)
struct icaltimetype icalcomponent_get_dtstamp(icalcomponent *comp)
struct icaldurationtype icalduration_from_times(struct icaltimetype t1, struct icaltimetype t2)
Creates a duration from two icaltimetype endpoints.
struct icaltimetype icalduration_extend(struct icaltimetype t, struct icaldurationtype d)
Extends a time duration.
enum icalrequeststatus kind
@ ICAL_VCALENDAR_COMPONENT
@ ICAL_3_1_INVPROPVAL_STATUS
@ ICAL_2_0_SUCCESS_STATUS
#define icalerrno
Access the current icalerrno value.
Common memory management routines.
Definition of C++ Wrapper for icalparameter.c.
void icalproperty_free(icalproperty *p)
Definition of C++ Wrapper for icalproperty.c.
ICPointerHolder< LibICal::ICalProperty > ICalPropertyTmpPtr
bool icaltime_is_null_time(const struct icaltimetype t)
struct icaltimetype icaltime_null_time(void)
Definition of C++ Wrapper for icalvalue.c.
struct icaldurationtype duration
C++ classes for the icalcomponent wrapper (VToDo VEvent, etc..).
ICPointerHolder< LibICal::VComponent > VComponentTmpPtr