From 2b78b5294a6a047a971446595c9e7f5f32f583a2 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Tue, 18 Sep 2001 20:16:39 +0000 Subject: new class for managing multiple calendars, with an API very similar to the 2001-09-18 Rodrigo Moya * cal-client/cal-client-multi.[ch]: new class for managing multiple calendars, with an API very similar to the CalClient one, for ease of transition from one to the other * gui/component-factory.c (xfer_folder, remove_folder, create_folder): reworked to be able to manage folders for any calendar backend, and not only the file: one 2001-09-18 Rodrigo Moya * idl/evolution-calendar.idl: changed signature for the getFreeBusy method, to return a sequence of CalObj's, and added sequence of users as a new parameter to that method * cal-client/cal-client.c (cal_client_get_free_busy): adapted to new IDL method signature, by adding a new "GList *users" parameter, for callers to be able to specify a list of users * pcs/cal-backend.[ch] (cal_backend_get_free_busy): * pcs/cal-backend-file.c (cal_backend_file_get_free_busy): add the "GList *users" parameter. In cal_backend_file_get_free_busy, call lookup_component to get the CalComponent for each uid, instead of calling cal_backend_get_object, which meant converting the component to a string and then parsing it again. * cal-client/client-test.c (cal_opened_cb): * gui/e-itip-control.c (send_freebusy): * gui/calendar-commands.c (publish_freebusy_cmd): adapted to new getFreeBusy method signature svn path=/trunk/; revision=12951 --- calendar/idl/evolution-calendar.idl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'calendar/idl') diff --git a/calendar/idl/evolution-calendar.idl b/calendar/idl/evolution-calendar.idl index c236f26649..b3158dc487 100644 --- a/calendar/idl/evolution-calendar.idl +++ b/calendar/idl/evolution-calendar.idl @@ -21,6 +21,7 @@ module Calendar { * iCalendar string. */ typedef string CalObj; + typedef sequence CalObjSeq; /* A unique identifier for a calendar component */ typedef string CalObjUID; @@ -108,6 +109,9 @@ module Calendar { /* Used to represent a list of components plus their triggers */ typedef sequence CalComponentAlarmsSeq; + /* Used to represent users and lists of users */ + typedef string User; + typedef sequence UserList; interface Query; @@ -155,7 +159,7 @@ module Calendar { raises (InvalidRange); /* Returns free/busy objects for the given interval */ - CalObj getFreeBusy (in Time_t start, in Time_t end); + CalObjSeq getFreeBusy (in UserList users, in Time_t start, in Time_t end); /* Gets the alarms for the specified component that trigger in * the specified time range. -- cgit v1.2.3