Monotone-Parent: ab2613d820779df99f34c6d0ae2ec38908cae05f

Monotone-Revision: 28cde865644a3171d49fc0d08dad0efa39112fa2

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-04-19T21:30:25
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau committed 2010-04-19 21:30:25 +00:00
1 parent bed2246b97
commit add1d5441a
23 files changed
+124 -49

No files matched your search

@@ -73,21 +73,32 @@
return imported;
}
- (void) setReloadOnLogin: (BOOL) newReloadOnLogin
{
[self setFolderPropertyValue: [NSNumber numberWithBool: newReloadOnLogin]
inCategory: @"AutoReloadedWebCalendars"];
}
- (BOOL) reloadOnLogin
{
return [[self folderPropertyValueInCategory: @"AutoReloadedWebCalendars"]
boolValue];
}
- (NSException *) delete
{
NSException *error;
SOGoUserSettings *settings;
NSMutableDictionary *calSettings, *webCalendars;
NSMutableDictionary *webCalendars;
NSString *name;
settings = [[context activeUser] userSettings];
calSettings = [settings objectForKey: @"Calendar"];
webCalendars = [calSettings objectForKey: @"WebCalendars"];
name = [self nameInContainer];
error = [super delete];
if (!error)
{
settings = [[context activeUser] userSettings];
webCalendars = [[settings objectForKey: @"Calendar"]
objectForKey: @"WebCalendars"];
name = [self nameInContainer];
[webCalendars removeObjectForKey: name];
[settings synchronize];
}