mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 16:35:10 +00:00
Mantis 1268: SOGo Web: Module au démarrage
Monotone-Parent: c21bac350b493f251e4917c5ae6b5e88a532b0a0 Monotone-Revision: ca6dc2412eb31b0b8d9918590d81e48f8a2088b4 Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-08-19T17:19:32 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -486,7 +486,6 @@ static BOOL defaultShowSubscribedFoldersOnly = NO;
|
||||
arrayForKey: @"SOGoMailPollingIntervals"]];
|
||||
if ([defaultList count] > 0)
|
||||
{
|
||||
NSLog (@"defaultsValue: %@", defaultList);
|
||||
rc = [NSMutableArray arrayWithObjects: @"manually", nil];
|
||||
count = [defaultList count];
|
||||
for (i = 0; i < count; i++)
|
||||
@@ -647,6 +646,42 @@ static BOOL defaultShowSubscribedFoldersOnly = NO;
|
||||
[userDefaults setObject: newSignaturePlacement forKey: @"SignaturePlacement"];
|
||||
}
|
||||
|
||||
- (NSArray *) availableModules
|
||||
{
|
||||
NSMutableArray *rc, *modules;
|
||||
int i, count;
|
||||
|
||||
modules = [NSMutableArray arrayWithObjects: @"Calendar", @"Mail", nil];
|
||||
rc = [NSMutableArray arrayWithObjects: @"Last", @"Contacts", nil];
|
||||
count = [modules count];
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
if ([user canAccessModule: [modules objectAtIndex: i]])
|
||||
[rc addObject: [modules objectAtIndex: i]];
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
- (NSString *) itemModuleText
|
||||
{
|
||||
return [self labelForKey: item];
|
||||
}
|
||||
|
||||
- (NSString *) userDefaultModule
|
||||
{
|
||||
NSUserDefaults *ud;
|
||||
ud = [user userDefaults];
|
||||
|
||||
return [ud stringForKey: @"SOGoUIxDefaultModule"];
|
||||
}
|
||||
|
||||
- (void) setUserDefaultModule: (NSString *) newValue
|
||||
{
|
||||
NSUserDefaults *ud;
|
||||
ud = [user userDefaults];
|
||||
[ud setObject: newValue forKey: @"SOGoUIxDefaultModule"];
|
||||
}
|
||||
|
||||
- (id <WOActionResults>) defaultAction
|
||||
{
|
||||
id <WOActionResults> results;
|
||||
|
||||
Reference in New Issue
Block a user