new function to retrieve objects and detached recurrences for that object.
authorRodrigo Moya <rodrigo@novell.com>
Thu, 28 Oct 2004 00:16:21 +0000 (00:16 +0000)
committerRodrigo Moya <rodrigo@src.gnome.org>
Thu, 28 Oct 2004 00:16:21 +0000 (00:16 +0000)
commit2f3a9d96df8adfa0b649c4a97b94c3c26ed297e7
tree3cd274e90c1280efa1fcc982d2690173cd475280
parentf08a06b846cc800a7275a29d3bae048c50952f13
new function to retrieve objects and detached recurrences for that object.

2004-10-28  Rodrigo Moya <rodrigo@novell.com>

* libecal/e-cal.[ch] (e_cal_get_objects_for_uid): new function
to retrieve objects and detached recurrences for that object.
(e_cal_get_object): deal with the backend returning a VCALENDAR
object. In that case, just get the first component of the same
type we are using.
(generate_instances): when we have an UID, use the new function
e_cal_get_objects_for_uid, avoiding countless calls to
e_cal_get_object_list.

* backends/file/e-cal-backend-file.c (e_cal_backend_file_get_object):
if we have detached instances, return a VCALENDAR with the master
object and any detached instance.
calendar/ChangeLog
calendar/backends/file/e-cal-backend-file.c
calendar/libecal/e-cal.c
calendar/libecal/e-cal.h