FreeRDP
ConnectionParams.h
1 /*
2  Connection Parameters abstraction
3 
4  Copyright 2013 Thincast Technologies GmbH, Author: Dorian Johnson
5 
6  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
7  If a copy of the MPL was not distributed with this file, You can obtain one at
8  http://mozilla.org/MPL/2.0/.
9  */
10 
11 #import <Foundation/Foundation.h>
12 
13 @interface ConnectionParams : NSObject
14 {
15  @private
16  NSMutableDictionary *_connection_params;
17 }
18 
19 // Designated initializer.
20 - (id)initWithDictionary:(NSDictionary *)dict;
21 - (id)initWithBaseDefaultParameters;
22 
23 // Getting/setting values
24 - (NSArray *)allKeys;
25 - (void)setValue:(id)value forKey:(NSString *)key;
26 - (id)valueForKey:(NSString *)key;
27 - (BOOL)hasValueForKey:(NSString *)key;
28 - (void)setInt:(int)integer forKey:(NSString *)key;
29 - (int)intForKey:(NSString *)key;
30 - (void)setBool:(BOOL)v forKey:(NSString *)key;
31 - (BOOL)boolForKey:(NSString *)key;
32 - (const char *)UTF8StringForKey:(NSString *)key;
33 - (NSString *)StringForKey:(NSString *)key;
34 
35 - (BOOL)hasValueForKeyPath:(NSString *)key;
36 - (void)setInt:(int)integer forKeyPath:(NSString *)key;
37 - (int)intForKeyPath:(NSString *)key;
38 - (void)setBool:(BOOL)v forKeyPath:(NSString *)key;
39 - (BOOL)boolForKeyPath:(NSString *)key;
40 - (const char *)UTF8StringForKeyPath:(NSString *)key;
41 - (NSString *)StringForKeyPath:(NSString *)key;
42 
43 - (int)intForKey:(NSString *)key with3GEnabled:(BOOL)enabled;
44 - (BOOL)boolForKey:(NSString *)key with3GEnabled:(BOOL)enabled;
45 
46 @end