2013-02-14 17:59:12 +04:00
|
|
|
/*
|
|
|
|
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
|
2013-02-14 17:59:12 +04:00
|
|
|
|
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/.
|
|
|
|
*/
|
2013-02-14 17:59:12 +04:00
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
@interface ConnectionParams : NSObject
|
|
|
|
{
|
2019-11-06 17:24:51 +03:00
|
|
|
@private
|
|
|
|
NSMutableDictionary *_connection_params;
|
2013-02-14 17:59:12 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Designated initializer.
|
2019-11-06 17:24:51 +03:00
|
|
|
- (id)initWithDictionary:(NSDictionary *)dict;
|
2013-02-14 17:59:12 +04:00
|
|
|
- (id)initWithBaseDefaultParameters;
|
|
|
|
|
|
|
|
// Getting/setting values
|
2019-11-06 17:24:51 +03:00
|
|
|
- (NSArray *)allKeys;
|
2013-02-14 17:59:12 +04:00
|
|
|
- (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;
|
2013-02-14 17:59:12 +04:00
|
|
|
|
|
|
|
@end
|