-
-
Notifications
You must be signed in to change notification settings - Fork 1k
/
OTRSettingsManager.h
35 lines (26 loc) · 1.13 KB
/
OTRSettingsManager.h
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
32
33
34
35
//
// OTRSettingsManager.h
// Off the Record
//
// Created by Chris Ballinger on 4/10/12.
// Copyright (c) 2012 Chris Ballinger. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "OTRSetting.h"
#ifdef CRITTERCISM_ENABLED
#define kOTRSettingKeyCrittercismOptIn @"kOTRSettingKeyCrittercismOptIn"
#endif
#define kOTRSettingKeyAllowSelfSignedSSL @"kOTRSettingKeyAllowSelfSignedSSL"
#define kOTRSettingKeyAllowSSLHostNameMismatch @"kOTRSettingKeyAllowSSLHostNameMismatch"
#define kOTRSettingKeyFontSize @"kOTRSettingKeyFontSize"
#define kOTRSettingKeyDeleteOnDisconnect @"kOTRSettingKeyDeleteOnDisconnect"
@interface OTRSettingsManager : NSObject
@property (nonatomic, strong, readonly) NSMutableArray *settingsGroups;
@property (nonatomic, strong, readonly) NSDictionary *settingsDictionary;
- (OTRSetting*) settingAtIndexPath:(NSIndexPath*)indexPath;
- (NSString*) stringForGroupInSection:(NSUInteger)section;
- (NSUInteger) numberOfSettingsInSection:(NSUInteger)section;
- (OTRSetting*) settingForOTRSettingKey:(NSString*)key;
+ (BOOL) boolForOTRSettingKey:(NSString*)key;
+ (double) doubleForOTRSettingKey:(NSString*)key;
@end