ZDK
IAccountEventsHandler.h
1 #ifndef __IACCOUNTSTATUSNOTIFICATIONS__
2 #define __IACCOUNTSTATUSNOTIFICATIONS__
3 
4 #include "IEventHandle.h"
5 #include "Types/SharedPointerTypes.h"
6 #include "Types/AccountStatus.h"
7 #include "Types/OwnershipChange.h"
8 
9 namespace ZDK
10 {
11 
12 //# @abi(obj_c|jni) delegate
14 {
15 public:
16  //# @abi(all) documentation
28  virtual void OnAccountStatusChanged(ZDK::Shared::Account account, ZDK::AccountStatus status, int statusCode) = 0;
29 
30  //# @abi(all) documentation
43  virtual void OnAccountRetryingRegistration(ZDK::Shared::Account account, int isRetrying, int inSeconds) = 0;
44 
45  //# @abi(all) documentation
56  virtual void OnAccountIncomingCall(ZDK::Shared::Account account, ZDK::Shared::Call call) = 0;
57 
58  //# @abi(all) documentation
70  virtual void OnAccountChatMessageReceived(ZDK::Shared::Account account, ZDK::Shared::String pPeer,
71  ZDK::Shared::String pContent) = 0;
72 
73  //# @abi(all) documentation
85  virtual void OnAccountPushTokenReceived(ZDK::Shared::Account account, ZDK::Shared::String pushToken) = 0;
86 
87  //# @abi(all) documentation
99  virtual void OnAccountExtendedError(ZDK::Shared::Account account, ZDK::Shared::ExtendedError error) = 0;
100 
101  //# @abi(all) documentation
122  virtual void OnAccountUserSipOutboundMissing(ZDK::Shared::Account account) = 0;
123 
124  //# @abi(obj_c|jni) ignore
125  virtual void OnAccountFileTransferRequested(ZDK::Shared::Account account, ZDK::Shared::FileTransfer TransferHandler,
126  ZDK::Shared::String FromPhone, ZDK::Shared::String FromtName,
127  ZDK::Shared::String FromURI, ZDK::Shared::String FileName, int Size,
128  ZDK::Shared::String FileType, unsigned char* digest) = 0;
129 
130  //# @abi(all) documentation
144  virtual void OnAccountCallOwnershipChanged(ZDK::Shared::Account account, ZDK::Shared::Call call, ZDK::OwnershipChange action) = 0;
145 };
146 
147 } //namespace ZDK
148 
149 #endif //__IACCOUNTSTATUSNOTIFICATIONS__
Definition: IAccountEventsHandler.h:13
virtual void OnAccountRetryingRegistration(ZDK::Shared::Account account, int isRetrying, int inSeconds)=0
Notify upon Account is retrying registration.
virtual void OnAccountChatMessageReceived(ZDK::Shared::Account account, ZDK::Shared::String pPeer, ZDK::Shared::String pContent)=0
Notify upon Chat message was received.
virtual void OnAccountCallOwnershipChanged(ZDK::Shared::Account account, ZDK::Shared::Call call, ZDK::OwnershipChange action)=0
Notify upon call ownership changed.
Definition: IEventHandle.h:11
virtual void OnAccountPushTokenReceived(ZDK::Shared::Account account, ZDK::Shared::String pushToken)=0
Notify upon push token is received.
Definition: IAccountConfig.h:10
virtual void OnAccountIncomingCall(ZDK::Shared::Account account, ZDK::Shared::Call call)=0
Notify upon Incoming Call.
virtual void OnAccountUserSipOutboundMissing(ZDK::Shared::Account account)=0
Warning for missing SIP Outbound support at the server.
virtual void OnAccountStatusChanged(ZDK::Shared::Account account, ZDK::AccountStatus status, int statusCode)=0
Notify upon Account status is changed.
virtual void OnAccountExtendedError(ZDK::Shared::Account account, ZDK::Shared::ExtendedError error)=0
Notify upon account extended error occurs.