| Top |
|
|
e_timezone_cache_add_timezone () |
|
|
e_timezone_cache_get_timezone () |
|
|
e_timezone_cache_list_timezones () |
Several classes (both client-side and server-side) cache
void e_timezone_cache_add_timezone (ETimezoneCache *cache,);icaltimezone *zone
Adds a copy of zone
to cache
and emits a
cache
will use the TZID
string returned by icaltimezone_get_tzid()e_timezone_cache_get_timezone() to obtain zone
again.
If the cache
already has an zone
, the cache
will remain unchanged to avoid invalidating any
e_timezone_cache_get_timezone().
Since: 3.8
icaltimezone * e_timezone_cache_get_timezone (ETimezoneCache *cache,const);gchar *tzid
Obtains an NULLcache
and should not be modified or freed.
Since: 3.8
GList * e_timezone_cache_list_timezones (ETimezoneCache *cache);
Returns a list of 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.
Free the returned list with g_list_free()cache
and should not be modified or freed.
Since: 3.8
struct ETimezoneCacheInterface {
/* Methods */
void (*add_timezone) (ETimezoneCache *cache,
icaltimezone *zone);
icaltimezone * (*get_timezone) (ETimezoneCache *cache,
const gchar *tzid);
GList * (*list_timezones) (ETimezoneCache *cache);
/* Signals */
void (*timezone_added) (ETimezoneCache *cache,
icaltimezone *zone);
};
Since: 3.8