diff options
Diffstat (limited to 'calendar/cal-util')
-rw-r--r-- | calendar/cal-util/cal-component.c | 28 | ||||
-rw-r--r-- | calendar/cal-util/cal-component.h | 2 |
2 files changed, 30 insertions, 0 deletions
diff --git a/calendar/cal-util/cal-component.c b/calendar/cal-util/cal-component.c index a618e0ef4b..6101c3cd63 100644 --- a/calendar/cal-util/cal-component.c +++ b/calendar/cal-util/cal-component.c @@ -1090,6 +1090,20 @@ cal_component_rescan (CalComponent *comp) ensure_mandatory_properties (comp); } +void +cal_component_strip_errors (CalComponent *comp) +{ + CalComponentPrivate *priv; + icalproperty *prop; + + g_return_if_fail (comp != NULL); + g_return_if_fail (IS_CAL_COMPONENT (comp)); + + priv = comp->priv; + + icalcomponent_strip_errors (priv->icalcomp); +} + /** * cal_component_get_vtype: * @comp: A calendar component object. @@ -1276,6 +1290,19 @@ cal_component_commit_sequence (CalComponent *comp) priv->need_sequence_inc = FALSE; } +void +cal_component_abort_sequence (CalComponent *comp) +{ + CalComponentPrivate *priv; + + g_return_if_fail (comp != NULL); + g_return_if_fail (IS_CAL_COMPONENT (comp)); + + priv = comp->priv; + + priv->need_sequence_inc = FALSE; +} + /** * cal_component_get_uid: * @comp: A calendar component object. @@ -5212,3 +5239,4 @@ cal_component_event_dates_match (CalComponent *comp1, return retval; } + diff --git a/calendar/cal-util/cal-component.h b/calendar/cal-util/cal-component.h index 4961c504e4..888f65ccbe 100644 --- a/calendar/cal-util/cal-component.h +++ b/calendar/cal-util/cal-component.h @@ -209,12 +209,14 @@ void cal_component_set_new_vtype (CalComponent *comp, CalComponentVType type); gboolean cal_component_set_icalcomponent (CalComponent *comp, icalcomponent *icalcomp); icalcomponent *cal_component_get_icalcomponent (CalComponent *comp); void cal_component_rescan (CalComponent *comp); +void cal_component_strip_errors (CalComponent *comp); CalComponentVType cal_component_get_vtype (CalComponent *comp); char *cal_component_get_as_string (CalComponent *comp); void cal_component_commit_sequence (CalComponent *comp); +void cal_component_abort_sequence (CalComponent *comp); void cal_component_get_uid (CalComponent *comp, const char **uid); void cal_component_set_uid (CalComponent *comp, const char *uid); |