mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-07 14:28:52 +00:00
Monotone-Parent: 59a124046afcb9738314976b76e1a3a8da551f0a
Monotone-Revision: d3d79ac1c68a262bcbff0b8d511114a32e1671f3 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-11-01T20:37:02 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2006-11-01 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/Contacts/UIxContactFoldersView.m ([UIxContactFoldersView
|
||||
-updateAdditionalAddressBooksAction]): new method that updates the
|
||||
user settings with the list of addressbook he has subscribed to.
|
||||
|
||||
* UI/Contacts/UIxContactsAddressBooksSelection.m: new component
|
||||
module for the address book selector.
|
||||
|
||||
|
||||
@@ -21,10 +21,12 @@
|
||||
*/
|
||||
|
||||
#import <Foundation/NSString.h>
|
||||
|
||||
#import <NGObjWeb/NSException+HTTP.h>
|
||||
#import <NGObjWeb/SoObject.h>
|
||||
#import <NGObjWeb/WOResponse.h>
|
||||
|
||||
#import <SoObjects/SOGo/SOGoUser.h>
|
||||
#import <SoObjects/SOGo/NSString+URL.h>
|
||||
#import <SoObjects/Contacts/SOGoContactFolders.h>
|
||||
#import <SoObjects/Contacts/SOGoContactFolder.h>
|
||||
@@ -80,6 +82,10 @@
|
||||
return [self _selectActionForApplication: @"calendars-contacts"];
|
||||
}
|
||||
|
||||
- (id) selectForAddressBooksAction
|
||||
{
|
||||
return [self _selectActionForApplication: @"addressbooks-contacts"];
|
||||
}
|
||||
|
||||
- (NSArray *) _searchResults: (NSString *) contact
|
||||
{
|
||||
@@ -183,4 +189,20 @@
|
||||
return result;
|
||||
}
|
||||
|
||||
- (id <WOActionResults>) updateAdditionalAddressBooksAction
|
||||
{
|
||||
WOResponse *response;
|
||||
NSUserDefaults *ud;
|
||||
|
||||
ud = [[context activeUser] userDefaults];
|
||||
[ud setObject: [self queryParameterForKey: @"ids"]
|
||||
forKey: @"additionaladdressbooks"];
|
||||
[ud synchronize];
|
||||
response = [context response];
|
||||
[response setStatus: 200];
|
||||
[response setHeader: @"text/html; charset=\"utf-8\"" forKey: @"content-type"];
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user