blob: b3291cb83550779adfe23108e10728d5dd2bc171 (
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
28
29
30
31
|
//
// Preferences.h
// SmartDeviceLink-iOS
//
// Created by Joel Fischer on 2/13/15.
// Copyright (c) 2015 smartdevicelink. All rights reserved.
//
#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 (strong, nonatomic) NSString *port;
+ (instancetype)sharedPreferences;
/**
* Reset the properties in the defaults object to their default values, defined in the m file.
*/
- (void)resetPreferences;
@end
|