From abd80c3a4f87117368ffa6f785f77511389bb388 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 19 Jun 2007 17:59:09 +0000 Subject: [PATCH] Monotone-Parent: 40a3a3e82a6e149008b93190dcfd86a7e7f4d2b7 Monotone-Revision: b455e3dbb565524a23c4b2ef3e72bd3b118cc13a Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-06-19T17:59:09 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 3 +++ SoObjects/SOGo/AgenorUserDefaults.h | 2 ++ SoObjects/SOGo/AgenorUserDefaults.m | 9 +++++++++ 3 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index c38c54d5c..fee0038a5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-06-19 Wolfgang Sourdeau + * SoObjects/SOGo/AgenorUserDefaults.m ([AgenorUserDefaults + -jsonRepresentation]): new method with an explicit name. + * UI/PreferencesUI/product.plist: new bundle that provides a web ui for handling user defaults. diff --git a/SoObjects/SOGo/AgenorUserDefaults.h b/SoObjects/SOGo/AgenorUserDefaults.h index 7bdbca786..e2f1085ae 100644 --- a/SoObjects/SOGo/AgenorUserDefaults.h +++ b/SoObjects/SOGo/AgenorUserDefaults.h @@ -78,6 +78,8 @@ - (void) setFloat: (float) value forKey: (NSString *) key; - (void) setInteger: (int) value forKey: (NSString *) key; +- (NSString *) jsonRepresentation; + /* saving changes */ - (BOOL) synchronize; diff --git a/SoObjects/SOGo/AgenorUserDefaults.m b/SoObjects/SOGo/AgenorUserDefaults.m index 07bb5d0d6..c1104ceb0 100644 --- a/SoObjects/SOGo/AgenorUserDefaults.m +++ b/SoObjects/SOGo/AgenorUserDefaults.m @@ -32,6 +32,8 @@ #import #import +#import "NSObject+Utilities.h" + #import "AgenorUserDefaults.h" @implementation AgenorUserDefaults @@ -325,6 +327,13 @@ static NSString *uidColumnName = @"uid"; return (values || [self primaryFetchProfile]); } +- (NSString *) jsonRepresentation +{ + [self fetchProfile]; + + return [values jsonRepresentation]; +} + /* value access */ - (void) setObject: (id) value