mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-22 07:14:21 +00:00
Monotone-Parent: c91eef7edcfd08d414664c25a590b6268a7e58e2
Monotone-Revision: 4649d6842fe70a3e582c138faf9776802809704a Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-11-29T04:21:54 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
b79a7e5a00
commit
12b8c7a427
3 files changed
+97
-1
No files matched your search
@@ -1,9 +1,12 @@
|
||||
2009-11-28 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoUserSettings.m: new class module designed to
|
||||
be the counterpart to SOGoUserDefaults.m.
|
||||
|
||||
* UI/PreferencesUI/UIxPreferences.m (-): "hours" is now a static
|
||||
variable, rather than an ivar.
|
||||
|
||||
* UI/MainUI/SOGoRootPage.m (+initialized): the supportedLanguages
|
||||
* UI/MainUI/SOGoRootPage.m (+initialize): the supportedLanguages
|
||||
are not available from the SOGoSystemDefaults
|
||||
(SOGoDefaults.plist).
|
||||
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* SOGoUserSettings.h - this file is part of SOGo
|
||||
*
|
||||
* Copyright (C) 2009 Inverse inc.
|
||||
*
|
||||
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This file is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef SOGOUSERSETTINGS_H
|
||||
#define SOGOUSERSETTINGS_H
|
||||
|
||||
@class NSString;
|
||||
|
||||
#import "SOGoDefaultsSource.h"
|
||||
|
||||
@interface SOGoUserSettings : SOGoDefaultsSource
|
||||
|
||||
+ (SOGoUserSettings *) settingsForUser: (NSString *) userId;
|
||||
|
||||
@end
|
||||
|
||||
#endif /* SOGOUSERSETTINGS_H */
|
||||
@@ -0,0 +1,57 @@
|
||||
/* SOGoUserSettings.m - this file is part of SOGo
|
||||
*
|
||||
* Copyright (C) 2009 Inverse inc.
|
||||
*
|
||||
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This file is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#import <Foundation/NSString.h>
|
||||
|
||||
#import "SOGoUserProfile.h"
|
||||
|
||||
#import "SOGoUserSettings.h"
|
||||
|
||||
static Class SOGoUserProfileKlass = Nil;
|
||||
|
||||
@implementation SOGoUserSettings
|
||||
|
||||
+ (NSString *) userProfileClassName
|
||||
{
|
||||
return @"SOGoSQLUserProfile";
|
||||
}
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
if (!SOGoUserProfileKlass)
|
||||
SOGoUserProfileKlass = NSClassFromString ([self userProfileClassName]);
|
||||
}
|
||||
|
||||
+ (SOGoUserSettings *) settingsForUser: (NSString *) userId
|
||||
{
|
||||
SOGoUserProfile *up;
|
||||
SOGoUserSettings *ud;
|
||||
|
||||
up = [SOGoUserProfileKlass userProfileWithType: SOGoUserProfileTypeSettings
|
||||
forUID: userId];
|
||||
[up fetchProfile];
|
||||
ud = [self defaultsSourceWithSource: up andParentSource: nil];
|
||||
|
||||
return ud;
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user