zdk.net
OSCallRepresentative.h
1 //
2 // OSCallRepresentative.h
3 // ZDK
4 //
5 
6 #ifndef ZDK_NET_OSCallRepresentative_h
7 #define ZDK_NET_OSCallRepresentative_h
8 
9 #include "native_shared_ptr.h"
10 #include "PublicInterfaces.h"
11 #include "OSCallCordinatorEventsHandler.h"
12 #include "ZHandle.h"
13 
14 using namespace System::Collections::Generic;
15 
16 namespace ZDK_NET
17 {
18  ref class OSCallCordinatorEventsHandler;
19 
20  public ref class OSCallRepresentative : ZHandle
21  {
22  private:
23  //LISTENERS:
24  static GeneralStatusEventListener *OSCallCordinatorEventsHandler_Listener = nullptr;
25 
26  static bool RegisterEventListeners()
27  {
28  std::shared_ptr<GeneralStatusEventListener> OSCallCordinatorEventsHandler_Listener_tmp = std::make_shared<GeneralStatusEventListener>();
29  OSCallCordinatorEventsHandler_Listener = OSCallCordinatorEventsHandler_Listener_tmp.get();
30  listenersMap->try_emplace(reinterpret_cast<intptr_t>(OSCallCordinatorEventsHandler_Listener), std::move(OSCallCordinatorEventsHandler_Listener_tmp));
31  return true;
32  }
33 
34  static bool RegisteredEventListeners = RegisterEventListeners();
35  public:
36  ZDK::IOSCallRepresentative* cppRef = nullptr;
37 
38  OSCallRepresentative(ZDK::Shared::OSCallRepresentative src);
41 
42  void NotifyCallActive();
43 
44  void NotifyCallHeld();
45 
46  void NotifyCallEnded();
47 
48  void SetOSCallCoordinatorEventListener(ZDK_NET::OSCallCordinatorEventsHandler^ value);
49 
50  void DropOSCallCoordinatorEventListener(ZDK_NET::OSCallCordinatorEventsHandler^ value);
51 
52  virtual long long Handle() override;
53 
54  virtual void Initialize() override;
55 
56  virtual void ReleaseReference() override;
57 
58  };
59 }
60 
61 #endif
ZDK_NET::OSCallRepresentative
Definition: OSCallRepresentative.h:21
GeneralStatusEventListener
Definition: GeneralStatusEventListener.h:90
ZDK_NET::OSCallCordinatorEventsHandler
Definition: OSCallCordinatorEventsHandler.h:78
ZDK_NET::ZHandle
Definition: ZHandle.h:18