summaryrefslogtreecommitdiff
path: root/calendar/backends/http
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-01-02 11:18:44 -0500
committerMatthew Barnes <mbarnes@redhat.com>2013-01-04 21:18:14 -0500
commit31fd869205620818ed2aeeba139d1dec5bdef6ea (patch)
tree92540e3e9b91a8c323a13ae12f214181da7127d2 /calendar/backends/http
parent52740ef46fd8303878c431d769c54c27963f5ff2 (diff)
downloadevolution-data-server-31fd869205620818ed2aeeba139d1dec5bdef6ea.tar.gz
Merge ECalBackendFileStore into ECalBackendStore.
ECalBackendStore is an abstract base class [1], and ECalBackendFileStore is a subclass that stores calendar components in an iCalendar file. But ECalBackendFileStore is the only subclass in existence, so the abstract base class is unnecessary. Have ECalBackendStore implement ECalBackendFileStore by default and drop ECalBackendFileStore as a separate class. The operations are written as virtual class methods, so we can still override the class methods from a new subclass if a need should arise. New functions: e_cal_backend_store_new() Removed functions: e_cal_backend_file_store_new() [1] Or at least is supposed to be abstract. Someone forgot to define the GType with G_DEFINE_ABSTRACT_TYPE.
Diffstat (limited to 'calendar/backends/http')
-rw-r--r--calendar/backends/http/e-cal-backend-http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/calendar/backends/http/e-cal-backend-http.c b/calendar/backends/http/e-cal-backend-http.c
index 30daea6c2..e06c8f23b 100644
--- a/calendar/backends/http/e-cal-backend-http.c
+++ b/calendar/backends/http/e-cal-backend-http.c
@@ -879,7 +879,7 @@ e_cal_backend_http_open (ECalBackendSync *backend,
if (priv->store == NULL) {
/* remove the old cache while migrating to ECalBackendStore */
e_cal_backend_cache_remove (cache_dir, "cache.xml");
- priv->store = e_cal_backend_file_store_new (cache_dir);
+ priv->store = e_cal_backend_store_new (cache_dir);
e_cal_backend_store_load (priv->store);
if (!priv->store) {