2 Copyright (C) 2005 SKYRIX Software AG
4 This file is part of OpenGroupware.org.
6 OGo is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 OGo is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with OGo; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #ifndef __AgenorUserDefaults_H_
23 #define __AgenorUserDefaults_H_
25 #import <Foundation/NSObject.h>
30 An object with the same API like NSUserDefaults which retrieves profile
31 information for users in the database.
34 @class NSString, NSURL, NSUserDefaults, NSArray, NSDictionary, NSData;
35 @class NSCalendarDate, NSMutableDictionary;
37 @interface AgenorUserDefaults : NSObject
39 NSUserDefaults *parent;
45 NSMutableDictionary *values;
46 NSCalendarDate *lastFetch;
56 - (id) initWithTableURL: (NSURL *) url
58 fieldName: (NSString *) fieldName;
62 - (void) setObject: (id) value
63 forKey: (NSString *) key;
64 - (id) objectForKey: (NSString *) key;
65 - (void) removeObjectForKey: (NSString *) key;
69 - (NSArray *) arrayForKey: (NSString *)key;
70 - (NSDictionary *) dictionaryForKey: (NSString *)key;
71 - (NSData *) dataForKey: (NSString *)key;
72 - (NSString *) stringForKey: (NSString *)key;
73 - (BOOL) boolForKey: (NSString *) key;
74 - (float) floatForKey: (NSString *) key;
75 - (int) integerForKey: (NSString *) key;
77 - (void) setBool: (BOOL) value forKey: (NSString *) key;
78 - (void) setFloat: (float) value forKey: (NSString *) key;
79 - (void) setInteger: (int) value forKey: (NSString *) key;
87 #endif /* __AgenorUserDefaults_H__ */