return TRUE;
}
-static gboolean
-cal_backend_store_remove_timezone (ECalBackendStore *store,
- const gchar *tzid)
-{
- gboolean ret_val = FALSE;
-
- g_rw_lock_writer_lock (&store->priv->lock);
- ret_val = g_hash_table_remove (store->priv->timezones, tzid);
- g_rw_lock_writer_unlock (&store->priv->lock);
-
- if (ret_val) {
- store->priv->dirty = TRUE;
-
- if (!store->priv->freeze_changes)
- cal_backend_store_save_cache (store);
- }
-
- return ret_val;
-}
-
static const icaltimezone *
cal_backend_store_get_default_timezone (ECalBackendStore *store)
{
class->has_component = cal_backend_store_has_component;
class->get_timezone = cal_backend_store_get_timezone;
class->put_timezone = cal_backend_store_put_timezone;
- class->remove_timezone = cal_backend_store_remove_timezone;
class->get_default_timezone = cal_backend_store_get_default_timezone;
class->set_default_timezone = cal_backend_store_set_default_timezone;
class->get_components_by_uid = cal_backend_store_get_components_by_uid;
}
/**
- * e_cal_backend_store_remove_timezone:
- *
- * Since: 2.28
- **/
-gboolean
-e_cal_backend_store_remove_timezone (ECalBackendStore *store,
- const gchar *tzid)
-{
- ECalBackendStoreClass *class;
-
- g_return_val_if_fail (E_IS_CAL_BACKEND_STORE (store), FALSE);
- g_return_val_if_fail (tzid != NULL, FALSE);
-
- class = E_CAL_BACKEND_STORE_GET_CLASS (store);
- g_return_val_if_fail (class->remove_timezone != NULL, FALSE);
-
- return class->remove_timezone (store, tzid);
-}
-
-/**
* e_cal_backend_store_get_default_timezone:
*
* Since: 2.28
const gchar *tzid);
gboolean (*put_timezone) (ECalBackendStore *store,
const icaltimezone *zone);
- gboolean (*remove_timezone) (ECalBackendStore *store,
- const gchar *tzid);
const icaltimezone *
(*get_default_timezone) (ECalBackendStore *store);
gboolean (*set_default_timezone) (ECalBackendStore *store,
const gchar *tzid);
gboolean e_cal_backend_store_put_timezone (ECalBackendStore *store,
const icaltimezone *zone);
-gboolean e_cal_backend_store_remove_timezone
- (ECalBackendStore *store,
- const gchar *tzid);
const icaltimezone *
e_cal_backend_store_get_default_timezone
(ECalBackendStore *store);
e_cal_backend_store_has_component
e_cal_backend_store_get_timezone
e_cal_backend_store_put_timezone
-e_cal_backend_store_remove_timezone
e_cal_backend_store_get_default_timezone
e_cal_backend_store_set_default_timezone
e_cal_backend_store_get_components_by_uid