mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-12 23:37:15 +00:00
See ChangeLog
Monotone-Parent: 916c7ceb6091d24b72b12cfcc4cb930fd83a96f8 Monotone-Revision: 434bb07a3b51027135236efad4365813a470e946 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2008-11-20T19:17:59 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
6c6600bde4
commit
acb4d211a8
8 files changed
+120
-43
No files matched your search
+16
-20
@@ -240,32 +240,28 @@ static SOGoCache *sharedCache = nil;
|
||||
|
||||
- (void) _userDefaultsHaveChanged: (NSNotification *) theNotification
|
||||
{
|
||||
SOGoUserDefaults *d;
|
||||
|
||||
d = [[SOGoUserDefaults alloc] initWithTableURL: [[theNotification userInfo] objectForKey: @"url"]
|
||||
uid: [[theNotification userInfo] objectForKey: @"uid"]
|
||||
fieldName: [[theNotification userInfo] objectForKey: @"fieldName"]];
|
||||
[d setValues: [[theNotification userInfo] objectForKey: @"values"]];
|
||||
SOGoUser *user;
|
||||
NSString *uid;
|
||||
|
||||
|
||||
[SOGoCache setCachedUserDefaults: d
|
||||
user: [[theNotification userInfo] objectForKey: @"uid"]];
|
||||
[d release];
|
||||
uid = [[theNotification userInfo] objectForKey: @"uid"];
|
||||
|
||||
if ((user = [users objectForKey: uid]))
|
||||
{
|
||||
[[user userDefaults] setValues: [[theNotification userInfo] objectForKey: @"values"]];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) _userSettingsHaveChanged: (NSNotification *) theNotification
|
||||
{
|
||||
SOGoUserDefaults *d;
|
||||
|
||||
d = [[SOGoUserDefaults alloc] initWithTableURL: [[theNotification userInfo] objectForKey: @"url"]
|
||||
uid: [[theNotification userInfo] objectForKey: @"uid"]
|
||||
fieldName: [[theNotification userInfo] objectForKey: @"fieldName"]];
|
||||
[d setValues: [[theNotification userInfo] objectForKey: @"values"]];
|
||||
SOGoUser *user;
|
||||
NSString *uid;
|
||||
|
||||
|
||||
[SOGoCache setCachedUserSettings: d
|
||||
user: [[theNotification userInfo] objectForKey: @"uid"]];
|
||||
[d release];
|
||||
uid = [[theNotification userInfo] objectForKey: @"uid"];
|
||||
|
||||
if ((user = [users objectForKey: uid]))
|
||||
{
|
||||
[[user userSettings] setValues: [[theNotification userInfo] objectForKey: @"values"]];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) _cleanupSources
|
||||
|
||||
@@ -274,8 +274,6 @@ static NSString *uidColumnName = @"c_uid";
|
||||
d = [[NSMutableDictionary alloc] init];
|
||||
[d setObject: values forKey: @"values"];
|
||||
[d setObject: uid forKey: @"uid"];
|
||||
[d setObject: fieldName forKey: @"fieldName"];
|
||||
[d setObject: url forKey: @"url"];
|
||||
|
||||
#warning reenable when the code to use the SOGoCache is finished
|
||||
[[NSDistributedNotificationCenter defaultCenter]
|
||||
|
||||
Reference in new issue
Block a user