gather_timezones_sync


Description:

public bool gather_timezones_sync (Component vcalendar, bool remove_existing, Cancellable? cancellable = null) throws Error

Extracts all VTIMEZONE components from the vcalendar and adds them to the memory cache, thus they are available when needed.

The function does nothing when the vcalendar doesn't hold a VCALENDAR component.

Set the remove_existing argument to true to remove all cached timezones first and then add the existing in the vcalendar, or set it to false to preserver existing timezones and merge them with those in vcalendar.

Parameters:

this

an CalMetaBackend

vcalendar

a VCALENDAR Component

remove_existing

whether to remove any existing first

cancellable

optional Cancellable object, or null

Returns:

Whether succeeded.