Interface

ECalTimezoneCache

since: 3.8

Description

interface ECal.TimezoneCache : GObject.Object

No description available.

Available since: 3.8

Prerequisite

In order to implement TimezoneCache, your type must inherit fromGObject.

Implementations

Instance methods

e_timezone_cache_add_timezone

Adds a copy of zone to cache and emits an ETimezoneCache::timezone-added signal. The cache will use the TZID string returned by i_cal_timezone_get_tzid() as the lookup key, which can be passed to e_timezone_cache_get_timezone() to obtain zone again.

since: 3.8

e_timezone_cache_get_timezone

Obtains an ICalTimezone by its TZID string. If no match is found, the function returns NULL. The returned ICalTimezone is owned by the cache and should not be modified or freed.

since: 3.8

e_timezone_cache_list_timezones

Returns a list of ICalTimezone instances that were explicitly added to the cache through e_timezone_cache_add_timezone(). In particular, any built-in time zone data that e_timezone_cache_get_timezone() may use to match a TZID string is excluded from the returned list.

since: 3.8

Signals

ECal.TimezoneCache::timezone-added

Emitted when a new #icaltimezone is added to cache.

Interface structure

struct ECalTimezoneCacheInterface {
  void (* tzcache_add_timezone) (
    ETimezoneCache* cache,
    ICalTimezone* zone
  );
  ICalTimezone* (* tzcache_get_timezone) (
    ETimezoneCache* cache,
    const gchar* tzid
  );
  GList* (* tzcache_list_timezones) (
    ETimezoneCache* cache
  );
  void (* timezone_added) (
    ETimezoneCache* cache,
    ICalTimezone* zone
  );
  gpointer reserved_signals;
  
}

No description available.

Interface members
tzcache_add_timezone
void (* tzcache_add_timezone) (
    ETimezoneCache* cache,
    ICalTimezone* zone
  )
 

A method to add timezone to the cache.

tzcache_get_timezone
ICalTimezone* (* tzcache_get_timezone) (
    ETimezoneCache* cache,
    const gchar* tzid
  )
 

A method to get timezone from the cache, identified by its timezone id.

tzcache_list_timezones
GList* (* tzcache_list_timezones) (
    ETimezoneCache* cache
  )
 

A method to get list of all stored timezones.

timezone_added
void (* timezone_added) (
    ETimezoneCache* cache,
    ICalTimezone* zone
  )
 

A signal emitted when a timezone is added to the cache.

reserved_signals
gpointer
 

No description available.

Virtual methods

ECal.TimezoneCache.timezone_added

A signal emitted when a timezone is added to the cache.

ECal.TimezoneCache.tzcache_add_timezone

A method to add timezone to the cache.

ECal.TimezoneCache.tzcache_get_timezone

A method to get timezone from the cache, identified by its timezone id.

ECal.TimezoneCache.tzcache_list_timezones

A method to get list of all stored timezones.