From da12dd29a85fae5e4ebaffcfb9c40fa6068ec55d Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Sat, 26 Apr 2003 16:44:49 +0000 Subject: Fixes #41661 2003-04-24 Rodrigo Moya Fixes #41661 * idl/evolution-calendar.idl: added discardAlarm method to GNOME:Evolution:Calendar:Cal interface. * pcs/cal.c (cal_class_init): set new epv's method. (impl_Cal_discardAlarm): implementation of new CORBA method. * pcs/cal-backend.[ch]: added 'discard_alarm' virtual method, and CAL_BACKEND_RESULT_NOT_IMPLEMENTED to CalBackendResult enum. (cal_backend_class_init): initialize new class method. (cal_backend_discard_alarm): new method. (cal_backend_update_objects, cal_backend_remove_object): return proper CalBackendResult values. * pcs/cal-backend-file.c (cal_backend_file_class_init): initialize new class method. (cal_backend_file_discard_alarm): implementation of new method. * pcs/cal-client.[ch] (cal_client_discard_alarm): new function. * gui/alarm-notify/alarm-queue.c (remove_qeueud_alarm): don't remove the alarm directly from the component, call cal_client_discard_alarm and let the backend deal with it. svn path=/trunk/; revision=20973 --- calendar/idl/evolution-calendar.idl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'calendar/idl/evolution-calendar.idl') diff --git a/calendar/idl/evolution-calendar.idl b/calendar/idl/evolution-calendar.idl index 4f5657b9f3..d13247d250 100644 --- a/calendar/idl/evolution-calendar.idl +++ b/calendar/idl/evolution-calendar.idl @@ -214,6 +214,10 @@ module Calendar { raises (NotFound, InvalidRange); + /* Discards an alarm from a given component */ + void discardAlarm (in CalObjUID uid, in CalAlarmUID auid) + raises (NotFound); + /* Adds or updates one or more VEVENT/VTODO/VTIMEZONE * components. The calobj should be a string representation of * a complete VCALENDAR object (we also support single -- cgit