ZDK
ICallEventsHandler.h
1 #ifndef __ICALLNOTIFICATIONS__
2 #define __ICALLNOTIFICATIONS__
3 
4 #include "IEventHandle.h"
5 #include "Types/SharedPointerTypes.h"
6 #include "Types/CallLineStatus.h"
7 
8 namespace ZDK
9 {
10 
11 //# @abi(obj_c|jni) delegate
13 {
14 public:
15  //# @abi(all) documentation
26  virtual void OnCallStatusChanged(ZDK::Shared::Call call, ZDK::Shared::CallStatus status) = 0;
27 
28  //# @abi(all) documentation
40  virtual void OnCallExtendedError(ZDK::Shared::Call call, ZDK::Shared::ExtendedError error) = 0;
41 
42  //# @abi(all) documentation
53  virtual void OnCallNetworkStatistics(ZDK::Shared::Call call, ZDK::Shared::NetworkStatistics networkStatistics) = 0;
54 
55  //# @abi(all) documentation
67  virtual void OnCallNetworkQualityLevel(ZDK::Shared::Call call, int callChannel, int qualityLevel) = 0;
68 
69  //# @abi(all) documentation
81  virtual void OnCallSecurityLevelChanged(ZDK::Shared::Call call, ZDK::CallMediaChannel channel, ZDK::CallSecurityLevel level) = 0;
82 
83  //# @abi(all) documentation
94  virtual void OnCallDTMFResult(ZDK::Shared::Call call, ZDK::Shared::Result result) = 0;
95 
96  //# @abi(all) documentation
106  virtual void OnCallTransferSucceeded(ZDK::Shared::Call call) = 0;
107 
108  //# @abi(all) documentation
119  virtual void OnCallTransferFailure(ZDK::Shared::Call call, ZDK::Shared::ExtendedError error) = 0;
120 
121  //# @abi(all) documentation
136  virtual void OnCallTransferStarted(ZDK::Shared::Call call, ZDK::Shared::String name, ZDK::Shared::String number, ZDK::Shared::String URI) = 0;
137 
138  //# @abi(all) documentation
149  virtual void OnCallZrtpFailed(ZDK::Shared::Call call, ZDK::Shared::ExtendedError error) = 0;
150 
242  virtual void OnCallZrtpSuccess(ZDK::Shared::Call call, ZDK::Shared::String zidHex, int knownPeer, int cacheMismatch, int peerKnowsUs,
243  ZDK::ZRTPSASEncoding sasEncoding, ZDK::Shared::String sas, ZDK::ZRTPHashAlgorithm hash,
244  ZDK::ZRTPCipherAlgorithm cipher, ZDK::ZRTPAuthTag authTag, ZDK::ZRTPKeyAgreement keyAgreement) = 0;
245 
275  virtual void OnCallZrtpSecondaryError(ZDK::Shared::Call call, int callChannel, ZDK::Shared::ExtendedError error) = 0;
276 };
277 
278 } //namespace ZDK
279 
280 #endif //__ICALLNOTIFICATIONS__
virtual void OnCallNetworkQualityLevel(ZDK::Shared::Call call, int callChannel, int qualityLevel)=0
Notify upon network quality level change.
virtual void OnCallZrtpSecondaryError(ZDK::Shared::Call call, int callChannel, ZDK::Shared::ExtendedError error)=0
Secondary stream failed to negotiate ZRTP.
virtual void OnCallExtendedError(ZDK::Shared::Call call, ZDK::Shared::ExtendedError error)=0
Notify upon call extended error occurs.
virtual void OnCallTransferFailure(ZDK::Shared::Call call, ZDK::Shared::ExtendedError error)=0
Failed call transfer event.
Definition: ICallEventsHandler.h:12
virtual void OnCallSecurityLevelChanged(ZDK::Shared::Call call, ZDK::CallMediaChannel channel, ZDK::CallSecurityLevel level)=0
Notify upon network quality level change.
Definition: IEventHandle.h:11
virtual void OnCallTransferStarted(ZDK::Shared::Call call, ZDK::Shared::String name, ZDK::Shared::String number, ZDK::Shared::String URI)=0
Notify that call transfer is initiated.
virtual void OnCallNetworkStatistics(ZDK::Shared::Call call, ZDK::Shared::NetworkStatistics networkStatistics)=0
Event for network statistics update.
virtual void OnCallTransferSucceeded(ZDK::Shared::Call call)=0
Succesuful call transfer event.
Definition: IAccountConfig.h:10
virtual void OnCallDTMFResult(ZDK::Shared::Call call, ZDK::Shared::Result result)=0
Notify upon DTMF call result.
virtual void OnCallZrtpFailed(ZDK::Shared::Call call, ZDK::Shared::ExtendedError error)=0
ZRTP negotiation failed for a call.
virtual void OnCallStatusChanged(ZDK::Shared::Call call, ZDK::Shared::CallStatus status)=0
Notify upon Call's status change.
virtual void OnCallZrtpSuccess(ZDK::Shared::Call call, ZDK::Shared::String zidHex, int knownPeer, int cacheMismatch, int peerKnowsUs, ZDK::ZRTPSASEncoding sasEncoding, ZDK::Shared::String sas, ZDK::ZRTPHashAlgorithm hash, ZDK::ZRTPCipherAlgorithm cipher, ZDK::ZRTPAuthTag authTag, ZDK::ZRTPKeyAgreement keyAgreement)=0
ZRTP negotiation succeeded for a call.