FreeRDP/client/iOS/Models/ConnectionParams.h

47 lines
1.4 KiB
C
Raw Normal View History

/*
Connection Parameters abstraction
2019-11-06 17:24:51 +03:00
2013-12-04 14:37:57 +04:00
Copyright 2013 Thincast Technologies GmbH, Author: Dorian Johnson
2019-11-06 17:24:51 +03:00
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
If a copy of the MPL was not distributed with this file, You can obtain one at
http://mozilla.org/MPL/2.0/.
*/
#import <Foundation/Foundation.h>
@interface ConnectionParams : NSObject
{
2019-11-06 17:24:51 +03:00
@private
NSMutableDictionary *_connection_params;
}
// Designated initializer.
2019-11-06 17:24:51 +03:00
- (id)initWithDictionary:(NSDictionary *)dict;
- (id)initWithBaseDefaultParameters;
// Getting/setting values
2019-11-06 17:24:51 +03:00
- (NSArray *)allKeys;
- (void)setValue:(id)value forKey:(NSString *)key;
2019-11-06 17:24:51 +03:00
- (id)valueForKey:(NSString *)key;
- (BOOL)hasValueForKey:(NSString *)key;
- (void)setInt:(int)integer forKey:(NSString *)key;
- (int)intForKey:(NSString *)key;
- (void)setBool:(BOOL)v forKey:(NSString *)key;
- (BOOL)boolForKey:(NSString *)key;
- (const char *)UTF8StringForKey:(NSString *)key;
- (NSString *)StringForKey:(NSString *)key;
- (BOOL)hasValueForKeyPath:(NSString *)key;
- (void)setInt:(int)integer forKeyPath:(NSString *)key;
- (int)intForKeyPath:(NSString *)key;
- (void)setBool:(BOOL)v forKeyPath:(NSString *)key;
- (BOOL)boolForKeyPath:(NSString *)key;
- (const char *)UTF8StringForKeyPath:(NSString *)key;
- (NSString *)StringForKeyPath:(NSString *)key;
- (int)intForKey:(NSString *)key with3GEnabled:(BOOL)enabled;
- (BOOL)boolForKey:(NSString *)key with3GEnabled:(BOOL)enabled;
@end