ZDK
ICallsProvider.h
1 #ifndef __IACTIVECALLSINFORMATIONPROVIDER__
2 #define __IACTIVECALLSINFORMATIONPROVIDER__
3 
4 #include <stdint.h>
5 #include "Types/SharedPointerTypes.h"
6 #include "Types/ActiveCallChange.h"
7 #include "IZHandle.h"
8 
9 namespace ZDK
10 {
11 
12 //# @abi(all) documentation
15 class ICallsProvider : public virtual ZDK::IZHandle
16 {
17 public:
18  //# @abi(all) documentation
25  //# @abi(jni|obj_c) property
26  //# @abi(jni|obj_c) @param(return) nullable
27  virtual ZDK::Shared::Call ActiveCall() const = 0;
28 
29  //# @abi(all) documentation
37  //# @abi(jni|obj_c) @param(call) nullable
38  virtual void SetActiveCall(ZDK::Shared::Call call, ZDK::ActiveCallChange callChange) = 0;
39 
40  //# @abi(all) documentation
47  //# @abi(jni|obj_c) property
48  virtual ZDK::Shared::ItemList<ZDK::Shared::Call> Calls() const = 0;
49 
50  //# @abi(all) documentation
55  //# @abi(jni|obj_c) property
56  virtual int CallsCount() const = 0;
57 
58  //# @abi(all) documentation
70  virtual ZDK::Shared::Call CreateCallWithDefaultAccount(ZDK::Shared::String calleeNumber, bool video) = 0;
71 
72  //# @abi(all) documentation
81  //# @abi(obj_c|jni) @param(value) delegate|register
82  virtual void AddActiveCallListener(ZDK::Shared::CallsProviderEventsHandler value) = 0;
83 
84  //# @abi(all) documentation
93  //# @abi(obj_c|jni) @param(value) delegate|unregister
94  virtual void DropActiveCallListener(ZDK::Shared::CallsProviderEventsHandler value) = 0;
95 };
96 
97 } //namespace ZDK
98 
99 #endif //__IACTIVECALLSINFORMATIONPROVIDER__
Definition: IZHandle.h:12
virtual ZDK::Shared::Call CreateCallWithDefaultAccount(ZDK::Shared::String calleeNumber, bool video)=0
Creates a call with the default account.
virtual void DropActiveCallListener(ZDK::Shared::CallsProviderEventsHandler value)=0
Removes a specific already added calls provider event listener.
virtual ZDK::Shared::ItemList< ZDK::Shared::Call > Calls() const =0
Gets a list with all calls.
virtual void SetActiveCall(ZDK::Shared::Call call, ZDK::ActiveCallChange callChange)=0
Sets the currently active call and specifies what to happen with all the rest calls (if any) ...
virtual int CallsCount() const =0
Gets the count of all calls.
Definition: IAccountConfig.h:10
virtual void AddActiveCallListener(ZDK::Shared::CallsProviderEventsHandler value)=0
Adds a new calls provider event listener.
Active calls information provider.
Definition: ICallsProvider.h:15
virtual ZDK::Shared::Call ActiveCall() const =0
Gets the currently active call.