Monotone-Parent: ab1a3804c938ec7df1f4f5209f7299df3e3042d1
Monotone-Revision: 4afc986f42a77cc538d46f41f372499f825fa9c4

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-07-16T14:34:39
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2010-07-16 14:34:39 +00:00
parent aa24b42521
commit 9b83f2655f
1 changed files with 26 additions and 26 deletions

View File

@ -412,32 +412,6 @@ static SoSecurityManager *sm = nil;
return componentSet;
}
- (void) reloadWebCalendars: (BOOL) forceReload
{
NSArray *refs;
SOGoWebAppointmentFolder *folder;
SOGoUserSettings *us;
NSDictionary *calSettings;
NSString *ref;
int count, max;
[self _migrateWebCalendarsSettings];
us = [[SOGoUser userWithLogin: owner] userSettings];
calSettings = [us objectForKey: @"Calendar"];
refs = [[calSettings objectForKey: @"WebCalendars"] allKeys];
max = [refs count];
for (count = 0; count < max; count++)
{
ref = [refs objectAtIndex: count];
folder = [SOGoWebAppointmentFolder
folderWithSubscriptionReference: ref
inContainer: self];
if (folder
&& (forceReload || [folder reloadOnLogin]))
[folder loadWebCalendar];
}
}
- (void) _migrateWebCalendarsSettings
{
SOGoUserSettings *us;
@ -474,6 +448,32 @@ static SoSecurityManager *sm = nil;
[us synchronize];
}
- (void) reloadWebCalendars: (BOOL) forceReload
{
NSArray *refs;
SOGoWebAppointmentFolder *folder;
SOGoUserSettings *us;
NSDictionary *calSettings;
NSString *ref;
int count, max;
[self _migrateWebCalendarsSettings];
us = [[SOGoUser userWithLogin: owner] userSettings];
calSettings = [us objectForKey: @"Calendar"];
refs = [[calSettings objectForKey: @"WebCalendars"] allKeys];
max = [refs count];
for (count = 0; count < max; count++)
{
ref = [refs objectAtIndex: count];
folder = [SOGoWebAppointmentFolder
folderWithSubscriptionReference: ref
inContainer: self];
if (folder
&& (forceReload || [folder reloadOnLogin]))
[folder loadWebCalendar];
}
}
- (NSException *) _fetchPersonalFolders: (NSString *) sql
withChannel: (EOAdaptorChannel *) fc
{