From 5465d769ef35af1f9885eb51396ee025ad3110a3 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 12 Oct 2006 21:00:35 +0000 Subject: [PATCH] Monotone-Parent: 3b18f3c2b4f3747d9082d436755de2ea68743aa6 Monotone-Revision: 4a3ebcd0ca1da0a489361dc8b6f9f0526efc8c15 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-12T21:00:35 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ UI/Scheduler/UIxCalMainView.m | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/ChangeLog b/ChangeLog index 492ae6d9a..7e7bac6c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2006-10-12 Wolfgang Sourdeau + * UI/Scheduler/UIxCalMainView.m ([UIxCalMainView + -batchDeleteAction]): new method to delete selected entries in the + lists. + * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -deleteEntriesWithIds:ids]): new method that delete identified entries in batch. diff --git a/UI/Scheduler/UIxCalMainView.m b/UI/Scheduler/UIxCalMainView.m index ca1c1b87f..b73789f59 100644 --- a/UI/Scheduler/UIxCalMainView.m +++ b/UI/Scheduler/UIxCalMainView.m @@ -27,6 +27,8 @@ #import "UIxCalMainView.h" +#import + static NSMutableArray *monthMenuItems = nil; static NSMutableArray *yearMenuItems = nil; @@ -90,4 +92,20 @@ static NSMutableArray *yearMenuItems = nil; return yearMenuItem; } +- (id) batchDeleteAction +{ + NSArray *ids; + SOGoAppointmentFolder *clientObject; + + ids = [[self queryParameterForKey: @"ids"] + componentsSeparatedByString: @"/"]; + if (ids) + { + clientObject = [self clientObject]; + [clientObject deleteEntriesWithIds: ids]; + } + + return self; +} + @end