Merge ECalBackendFileStore into ECalBackendStore.
authorMatthew Barnes <mbarnes@redhat.com>
Wed, 2 Jan 2013 16:18:44 +0000 (11:18 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Sat, 5 Jan 2013 02:18:14 +0000 (21:18 -0500)
commit31fd869205620818ed2aeeba139d1dec5bdef6ea
tree92540e3e9b91a8c323a13ae12f214181da7127d2
parent52740ef46fd8303878c431d769c54c27963f5ff2
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.
12 files changed:
calendar/backends/caldav/e-cal-backend-caldav.c
calendar/backends/http/e-cal-backend-http.c
calendar/backends/weather/e-cal-backend-weather.c
calendar/libedata-cal/Makefile.am
calendar/libedata-cal/e-cal-backend-file-store.c [deleted file]
calendar/libedata-cal/e-cal-backend-file-store.h [deleted file]
calendar/libedata-cal/e-cal-backend-store.c
calendar/libedata-cal/e-cal-backend-store.h
calendar/libedata-cal/libedata-cal.h
docs/reference/calendar/libedata-cal/libedata-cal-docs.sgml
docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
docs/reference/calendar/libedata-cal/libedata-cal.types