You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-ios/Signal/src/environment/PropertyListPreferences.h

19 lines
671 B
C

11 years ago
#import <Foundation/Foundation.h>
@interface PropertyListPreferences : NSObject {
@private NSMutableDictionary* dictionary;
@private NSString* plistName;
}
+(PropertyListPreferences*) propertyListPreferencesWithName:(NSString*)name;
-(id) tryGetValueForKey:(NSString*)key;
-(void) setValueForKey:(NSString*)key toValue:(id)value;
-(id) adjustAndTryGetNewValueForKey:(NSString*)key afterAdjuster:(id (^)(id oldValue))adjuster;
-(void) clear;
-(NSData*) secureDataStoreAdjustAndTryGetNewValueForKey:(NSString *)key afterAdjuster:(id (^)(id))adjuster;
-(NSString*) secureStringStoreAdjustAndTryGetNewValueForKey:(NSString *)key afterAdjuster:(id (^)(id))adjuster;
11 years ago
@end