From 51012e60d827b73a7bfd42b921760b0835dc7b66 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Wed, 7 Aug 2002 19:34:07 +0000 Subject: just return the object untouched since we don't send anything 2002-08-07 JP Rosevear * pcs/cal-backend-file.c (cal_backend_file_send_object): just return the object untouched since we don't send anything * pcs/cal-backend.c (cal_backend_remove_object): call virtual method * pcs/cal-backend.h: add send result codes, new proto * pcs/cal.c (impl_Cal_send_object): implement sendObject corba call (cal_class_init): add to epv * gui/itip-utils.c (comp_toplevel_with_zones): utility function to create icalcomponent with necessary timezone info (comp_has_attendee): see if attendee is in the attendee list (comp_server_send): use above and remove attendees if the server sends them * gui/e-itip-control.c (show_current_todo): remove unused var * idl/evolution-calendar.idl: add Busy exception and * cal-client/cal-client.c (cal_client_send_object): send object via the server (if the server can) * cal-client/cal-client.h: add send results and new proto svn path=/trunk/; revision=17734 --- calendar/pcs/cal-backend-file.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'calendar/pcs/cal-backend-file.c') diff --git a/calendar/pcs/cal-backend-file.c b/calendar/pcs/cal-backend-file.c index ad15d0433c..9b531412e8 100644 --- a/calendar/pcs/cal-backend-file.c +++ b/calendar/pcs/cal-backend-file.c @@ -124,6 +124,10 @@ static CalBackendResult cal_backend_file_update_objects (CalBackend *backend, const char *calobj); static CalBackendResult cal_backend_file_remove_object (CalBackend *backend, const char *uid); +static CalBackendSendResult cal_backend_file_send_object (CalBackend *backend, + const char *calobj, gchar **new_calobj, + GNOME_Evolution_Calendar_UserList **user_list); + static icaltimezone* cal_backend_file_get_timezone (CalBackend *backend, const char *tzid); static icaltimezone* cal_backend_file_get_default_timezone (CalBackend *backend); static gboolean cal_backend_file_set_default_timezone (CalBackend *backend, @@ -199,6 +203,7 @@ cal_backend_file_class_init (CalBackendFileClass *class) backend_class->get_alarms_for_object = cal_backend_file_get_alarms_for_object; backend_class->update_objects = cal_backend_file_update_objects; backend_class->remove_object = cal_backend_file_remove_object; + backend_class->send_object = cal_backend_file_send_object; backend_class->get_timezone = cal_backend_file_get_timezone; backend_class->get_default_timezone = cal_backend_file_get_default_timezone; @@ -1897,6 +1902,17 @@ cal_backend_file_remove_object (CalBackend *backend, const char *uid) return CAL_BACKEND_RESULT_SUCCESS; } +static CalBackendSendResult +cal_backend_file_send_object (CalBackend *backend, const char *calobj, char **new_calobj, + GNOME_Evolution_Calendar_UserList **user_list) +{ + *new_calobj = g_strdup (calobj); + + *user_list = GNOME_Evolution_Calendar_UserList__alloc (); + (*user_list)->_length = 0; + + return CAL_BACKEND_SEND_SUCCESS; +} static icaltimezone* cal_backend_file_get_timezone (CalBackend *backend, const char *tzid) -- cgit v1.2.3