From bda0947416d123b8c122f29121e26d930d4a7bbb Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 29 Mar 2007 18:15:11 +0000 Subject: [PATCH] Monotone-Parent: 9fd0514bbfcb3644ae55d706b2e8133b5b8a1280 Monotone-Revision: a43f16c8cf580c2fed97407d3923b03048908bdd Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-03-29T18:15:11 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++ UI/Contacts/UIxContactsListView.m | 47 +++++++++++++------------------ 2 files changed, 26 insertions(+), 27 deletions(-) diff --git a/ChangeLog b/ChangeLog index fc0e91807..e9b26301e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2007-03-29 Wolfgang Sourdeau + * UI/Contacts/UIxContactsListView.m ([UIxContactsListView + -canAccessContentAction]): new method to override the one from + UIxFoldersActions by taking into account the fact that, this time, + the clientObject is an ldap folder. Removed many method that used + to be related to the handling of the user selector. + * UI/Scheduler/UIxCalDayView.m: commented out many unused methods to make sure they can be removed. diff --git a/UI/Contacts/UIxContactsListView.m b/UI/Contacts/UIxContactsListView.m index a709758b7..41f27e89d 100644 --- a/UI/Contacts/UIxContactsListView.m +++ b/UI/Contacts/UIxContactsListView.m @@ -74,39 +74,13 @@ return searchText; } -- (NSString *) selectorComponentClass -{ - return selectorComponentClass; -} - -- (id) mailerContactsAction +- (id ) mailerContactsAction { selectorComponentClass = @"UIxContactsMailerSelection"; return self; } -- (id) calendarsContactsAction -{ - selectorComponentClass = @"UIxContactsCalendarsSelection"; - - return self; -} - -- (id) addressBooksContactsAction -{ - selectorComponentClass = @"UIxContactsAddressBooksSelection"; - - return self; -} - -- (id) aclsContactsAction -{ - selectorComponentClass = @"UIxContactsAclsSelection"; - - return self; -} - - (id ) deleteAction { id result; @@ -196,4 +170,23 @@ return YES; } +- (WOResponse *) canAccessContentAction +{ + WOResponse *response; + NSString *clientClass; + + clientClass = NSStringFromClass([[self clientObject] class]); + + response = [context response]; + [response setStatus: 200]; + [response setHeader: @"text/plain; charset=\"ascii\"" + forKey: @"content-type"]; + [response + appendContentString: + ([clientClass isEqualToString: @"SOGoContactLDAPFolder"]) + ? @"1" : @"0"]; + + return response; +} + @end /* UIxContactsListView */