Callbacks¶
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- ECal.ComponentParameterBagFilterFunc(parameter, *user_data)¶
- Parameters:
parameter (
ICalGLib.Parameter
) – anICalGLib.Parameter
- Returns:
True
, to add the parameter to the bag;False
, to not add it to the bag- Return type:
A function used to filter which parameters should be added to the bag, when filling it with
ECal.ComponentParameterBag.new_from_property
() andECal.ComponentParameterBag.set_from_property
().New in version 3.34.
- ECal.ComponentPropertyBagFilterFunc(property, *user_data)¶
- Parameters:
property (
ICalGLib.Property
) – anICalGLib.Property
- Returns:
True
, to add the property to the bag;False
, to not add it to the bag- Return type:
A function used to filter which properties should be added to the bag, when filling it with
ECal.ComponentPropertyBag.new_from_component
() andECal.ComponentPropertyBag.set_from_component
().New in version 3.34.
- ECal.RecurFormatDateTimeFunc(itt, buffer, buffer_size)¶
- Parameters:
itt (
ICalGLib.Time
) – anICalGLib.Time
to format to stringbuffer (
str
) – a buffer to fill with the resultbuffer_size (
int
) – the buffer size, in bytes, not counting the NUL-terminator character
Format the date/time value from itt into buffer, whose size cannot exceed buffer_size letters.
New in version 3.38.
- ECal.RecurInstanceCb(icomp, instance_start, instance_end, user_data, cancellable)¶
- Parameters:
icomp (
ICalGLib.Component
) – anICalGLib.Component
instance_start (
ICalGLib.Time
) – start time of an instanceinstance_end (
ICalGLib.Time
) – end time of an instanceuser_data (
object
orNone
) – user data used for this callback inECal.recur_generate_instances_sync
()cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Returns:
- Return type:
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:
tzid (
str
) – timezone ID to resolveuser_data (
object
orNone
) – user data used for this callbackcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Returns:
an
ICalGLib.Timezone
object for tzid, orNone
, on error or if not found.- Return type:
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.
- ECal.UtilFilterPropertyFunc(prop, *user_data)¶
- Parameters:
prop (
ICalGLib.Property
) – anICalGLib.Property
- Returns:
- Return type:
Function used to determine whether the given property prop should be considered.
New in version 3.52.
- ECal.UtilForeachCategoryFunc(comp, inout_category, *user_data)¶
- Parameters:
comp (
ICalGLib.Component
) – anICalGLib.Component
inout_category (
str
) – the category name
- Returns:
True
to continue,False
to stop- inout_category:
the category name
- Return type:
Function called for each non-empty category from
ECal.util_foreach_category
(). The func can assume owenrship of the inout_category content, in which case it should also set its content toNone
, to avoid free of it. The string itself, if taken, should be freed withGLib.free
(), when no longer needed.New in version 3.48.