blob: 4a982b7fc945c944785862df4e6db42bac6a7113 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
//
// Preferences.h
// SmartDeviceLink-iOS
#import <Foundation/Foundation.h>
/**
* A fully thread safe way to set and access preferences stored on NSUserDefaults
* just read and write the property values, don't access them via iVar, you won't get
* very far...HA. I rhymed. Access them via the shared preferences object, or don't...
* the result will be the same. Like, exactly the same. Hopefully.
*/
@interface Preferences : NSObject
/***** Computed Properties *****/
// Connection
@property (strong, nonatomic) NSString *ipAddress;
@property (assign, nonatomic) UInt16 port;
+ (instancetype)sharedPreferences;
/**
* Reset the properties in the defaults object to their default values, defined in the m file.
*/
- (void)resetPreferences;
@end
|