Callbacks

  ComponentParameterBagFilterFunc (parameter, *user_data)
  ComponentPropertyBagFilterFunc (property, *user_data)
  RecurInstanceCb (icomp, instance_start, instance_end, user_data, cancellable)
  RecurResolveTimezoneCb (tzid, user_data, cancellable)

Details

ECal.ComponentParameterBagFilterFunc(parameter, *user_data)
Parameters:
Returns:

True, to add the parameter to the bag; False, to not add it to the bag

Return type:

bool

A function used to filter which parameters should be added to the bag, when filling it with ECal.ComponentParameterBag.new_from_property() and ECal.ComponentParameterBag.set_from_property().

New in version 3.34.

ECal.ComponentPropertyBagFilterFunc(property, *user_data)
Parameters:
Returns:

True, to add the property to the bag; False, to not add it to the bag

Return type:

bool

A function used to filter which properties should be added to the bag, when filling it with ECal.ComponentPropertyBag.new_from_component() and ECal.ComponentPropertyBag.set_from_component().

New in version 3.34.

ECal.RecurInstanceCb(icomp, instance_start, instance_end, user_data, cancellable)
Parameters:
Returns:

True, to continue recurrence generation, False to stop

Return type:

bool

Callback used by ECal.recur_generate_instances_sync(), called for each instance of a (recurring) component within given time range.

New in version 3.34.

ECal.RecurResolveTimezoneCb(tzid, user_data, cancellable)
Parameters:
Returns:

an ICalGLib.Timezone object for tzid, or None, on error or if not found.

Return type:

ICalGLib.Timezone or None

Resolve timezone by its ID provided as tzid. The returned object, if not None, is owned by the callback implementation and should not be freed.

New in version 3.34.