mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-02 23:34:21 +00:00
Monotone-Parent: e5c0dcb0589437eaceeabfaf2552be656e7a33c8
Monotone-Revision: 730c8a73525c070f1f66243a9c692f2ee0adbcd0 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-12-02T21:18:22 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2009-12-02 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoUserDefaults.m (+initialize): we need to
|
||||
initialize the profile class from the constructor as this method
|
||||
may be invoked before all modules are loaded.
|
||||
|
||||
* SoObjects/SOGo/SOGoSource.h: added new "SOGoDNSource" protocol
|
||||
as a child protocol of "SOGoSource".
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
|
||||
#import "SOGoUserDefaults.h"
|
||||
|
||||
static Class SOGoUserProfileKlass = Nil;
|
||||
|
||||
NSString *SOGoWeekStartJanuary1 = @"January1";
|
||||
NSString *SOGoWeekStartFirst4DayWeek = @"First4DayWeek";
|
||||
@@ -45,18 +44,16 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
|
||||
return @"SOGoSQLUserProfile";
|
||||
}
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
if (!SOGoUserProfileKlass)
|
||||
SOGoUserProfileKlass = NSClassFromString ([self userProfileClassName]);
|
||||
}
|
||||
|
||||
+ (SOGoUserDefaults *) defaultsForUser: (NSString *) userId
|
||||
inDomain: (NSString *) domainId
|
||||
{
|
||||
SOGoUserProfile *up;
|
||||
SOGoUserDefaults *ud;
|
||||
SOGoDefaultsSource *parentSource;
|
||||
static Class SOGoUserProfileKlass = Nil;
|
||||
|
||||
if (!SOGoUserProfileKlass)
|
||||
SOGoUserProfileKlass = NSClassFromString ([self userProfileClassName]);
|
||||
|
||||
up = [SOGoUserProfileKlass userProfileWithType: SOGoUserProfileTypeDefaults
|
||||
forUID: userId];
|
||||
|
||||
Reference in New Issue
Block a user