2 // AIPreferenceContainer.h
5 // Created by Evan Schoenberg on 1/8/08.
8 #import <Cocoa/Cocoa.h>
9 #import <Adium/AIObject.h>
10 #import <Adium/AIListObject.h>
12 @interface AIPreferenceContainer
: AIObject
{
16 NSMutableDictionary
*prefs
;
17 NSMutableDictionary
*prefsWithDefaults
;
19 NSMutableDictionary
*defaults
;
21 int preferenceChangeDelays
;
24 + (AIPreferenceContainer
*)preferenceContainerForGroup
:(NSString
*)inGroup object
:(AIListObject
*)inObject
;
26 //Return a dictionary of preferences and defaults, appropriately merged together
27 - (NSDictionary
*)dictionary
;
29 //Replace all preferences for this container with the values and keys in inPreferences
30 - (void)setPreferences
:(NSDictionary
*)inPreferences
;
32 //Return a dictionary of just the defaults
33 - (NSDictionary
*)defaults
;
34 - (void)registerDefaults
:(NSDictionary
*)inDefaults
;
36 - (id
)valueForKey
:(NSString
*)key ignoringDefaults
:(BOOL
)ignoreDefaults
;
37 - (id
)defaultValueForKey
:(NSString
*)key
;
39 - (void)setPreferenceChangedNotificationsEnabled
:(BOOL
)inEnbaled
;
41 - (void)setGroup
:(NSString
*)inGroup
;