zdk.objc
ZDKAccountProvider.h
1//
2// ZDKAccountProvider.h
3// ZDK
4//
5
6#ifndef ZDKAccountProvider_h
7#define ZDKAccountProvider_h
8
9#import <Foundation/Foundation.h>
10#import "ZDKAccount.h"
11#import "ZDKSipMethodTypes.h"
12#import "ZDKAccountProviderEventsHandler.h"
13#import "ZDKAccountConfig.h"
14#import "ZDKMSRPConfig.h"
15#import "ZDKStunConfig.h"
16#import "ZDKIAXConfig.h"
17#import "ZDKSIPConfig.h"
18#import "ZDKZRTPConfig.h"
19#import "ZDKPushConfig.h"
20#import "ZDKHeaderField.h"
21#import "ZDKZHandle.h"
22#import "ZDKAccount.h"
23@protocol ZDKAccount;
24#import "ZDKAccountProviderEventsHandler.h"
26#import "ZDKAccountConfig.h"
27@protocol ZDKAccountConfig;
28#import "ZDKMSRPConfig.h"
29@protocol ZDKMSRPConfig;
30#import "ZDKStunConfig.h"
31@protocol ZDKStunConfig;
32#import "ZDKIAXConfig.h"
33@protocol ZDKIAXConfig;
34#import "ZDKSIPConfig.h"
35@protocol ZDKSIPConfig;
36#import "ZDKZRTPConfig.h"
37@protocol ZDKZRTPConfig;
38#import "ZDKPushConfig.h"
39@protocol ZDKPushConfig;
40#import "ZDKHeaderField.h"
41@protocol ZDKHeaderField;
42
43NS_ASSUME_NONNULL_BEGIN
44
50
57@property(nonatomic, readonly) NSArray<id<ZDKAccount>>* listAccounts;
58
63@property(nonatomic, readonly) int accountsCount;
64
69@property(nonatomic, readonly) id<ZDKAccount> _Nullable defaultAccount;
70
91-(void)deleteUserAccount:(id<ZDKAccount>)account ;
100-(id<ZDKAccount> _Nullable)getAccount:(long int)hAccountId ;
107-(BOOL)setAsDefaultAccount:(id<ZDKAccount> _Nullable)account ;
176-(id<ZDKHeaderField>)createSIPHeaderField:(NSString*)name values:(NSArray*)values method:(ZDKSipMethodTypes)method ;
185-(void)addAccountProviderListener:(id<ZDKAccountProviderEventsHandler>)value ;
194-(void)dropAccountProviderListener:(id<ZDKAccountProviderEventsHandler>)value ;
195-(NSString*)handlesDescription;
196
197@end
198
199NS_ASSUME_NONNULL_END
200
201#endif
The main account class.
Definition: ZDKAccount.h:39
General account configuration.
Definition: ZDKAccountConfig.h:28
Account information and control provider.
Definition: ZDKAccountProvider.h:49
id< ZDKSIPConfig > createSIPConfiguration()
Creates a new empty SIP configuration.
int accountsCount
Gets the count of all active accounts.
Definition: ZDKAccountProvider.h:63
id< ZDKZRTPConfig > createZRTPConfiguration()
Creates a new empty ZRTP configuration.
NSArray< id< ZDKAccount > > * listAccounts
Gets a list with all active accounts.
Definition: ZDKAccountProvider.h:57
id< ZDKAccount > createUserAccount()
Creates a new user account.
id< ZDKStunConfig > createStunConfiguration()
Creates a new empty STUN configuration.
id< ZDKPushConfig > createPushConfiguration()
Creates a new empty Push configuration.
id< ZDKIAXConfig > createIAXConfiguration()
Creates a new empty IAX configuration.
void unregisterAllAccounts()
Unregisters all accounts.
id< ZDKAccountConfig > createAccountConfiguration()
Creates a new empty account configuration.
id< ZDKMSRPConfig > createMSRPConfiguration()
Creates a new empty MSRP configuration.
id< ZDKAccount > _Nullable defaultAccount
Gets the default account.
Definition: ZDKAccountProvider.h:69
Definition: ZDKAccountProviderEventsHandler.h:20
SIP header fields structure.
Definition: ZDKHeaderField.h:21
IAX specific account configuration.
Definition: ZDKIAXConfig.h:19
MSRP (Message Session Relay Protocol) specific account configuration.
Definition: ZDKMSRPConfig.h:19
Push notification specific configuration.
Definition: ZDKPushConfig.h:22
SIP specific account configuration.
Definition: ZDKSIPConfig.h:37
STUN specific account configuration.
Definition: ZDKStunConfig.h:26
Definition: ZDKZHandle.h:13
ZRTP specific account configuration.
Definition: ZDKZRTPConfig.h:24