ECal.TimezoneCache¶
- Implementations:
Methods¶
|
|
|
|
Virtual Methods¶
|
|
|
Properties¶
None
Signals¶
Name |
Short Description |
---|---|
Emitted when a new #icaltimezone is added to cache. |
Fields¶
None
Class Details¶
- class ECal.TimezoneCache¶
- Bases:
- Structure:
New in version 3.8.
- add_timezone(zone)¶
- Parameters:
zone (
ICalGLib.Timezone
) – anICalGLib.Timezone
Adds a copy of zone to self and emits an
ECal.TimezoneCache
::timezone-added
signal. The self will use the TZID string returned byICalGLib.Timezone.get_tzid
() as the lookup key, which can be passed toECal.TimezoneCache.get_timezone
() to obtain zone again.If the self already has an
ICalGLib.Timezone
with the same TZID string as zone, the self will remain unchanged to avoid invalidating anyICalGLib.Timezone
pointers which may have already been returned throughECal.TimezoneCache.get_timezone
().New in version 3.8.
- get_timezone(tzid)¶
- Parameters:
tzid (
str
) – the TZID of a timezone- Returns:
an
ICalGLib.Timezone
, orNone
- Return type:
Obtains an
ICalGLib.Timezone
by its TZID string. If no match is found, the function returnsNone
. The returnedICalGLib.Timezone
is owned by the self and should not be modified or freed.New in version 3.8.
- list_timezones()¶
- Returns:
a
GLib.List
ofICalGLib.Timezone
instances- Return type:
Returns a list of
ICalGLib.Timezone
instances that were explicitly added to the self throughECal.TimezoneCache.add_timezone
(). In particular, any built-in time zone data thatECal.TimezoneCache.get_timezone
() may use to match a TZID string is excluded from the returned list.Free the returned list with g_list_free(). The list elements are owned by the self and should not be modified or freed.
New in version 3.8.
- do_timezone_added(zone) virtual¶
- Parameters:
zone (
ICalGLib.Timezone
) –
- do_tzcache_add_timezone(zone) virtual¶
- Parameters:
zone (
ICalGLib.Timezone
) –
Signal Details¶
- ECal.TimezoneCache.signals.timezone_added(timezone_cache, zone)¶
- Signal Name:
timezone-added
- Flags:
- Parameters:
timezone_cache (
ECal.TimezoneCache
) – The object which received the signalzone (
ICalGLib.Timezone
) – the newly-addedICalGLib.Timezone
Emitted when a new #icaltimezone is added to cache.