summaryrefslogtreecommitdiff
path: root/swift/src/IceObjc/PropertiesAdmin.h
blob: ebe3bed002f93cad2e3724e2b35a25bffb15437d (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
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//

#import "LocalObject.h"

NS_ASSUME_NONNULL_BEGIN

@interface ICEPropertiesAdmin: ICELocalObject
-(nullable NSString*) getProperty:(NSString*)key error:(NSError**)error;
-(nullable NSDictionary<NSString*, NSString*>*) getPropertiesForPrefix:(NSString*)prefix error:(NSError**)error;
-(BOOL) setProperties:(NSDictionary<NSString*, NSString*>*)newProperties error:(NSError**)error;
-(void (^)(void)) addUpdateCallback:(void (^)(NSDictionary<NSString*, NSString*>*))cb;
@end

#ifdef __cplusplus

@interface ICEPropertiesAdmin()
@property (nonatomic, readonly) std::shared_ptr<Ice::PropertiesAdmin> propertiesAdmin;
@end

#endif

NS_ASSUME_NONNULL_END