zdk.net
AccountConfig.h
1 //
2 // AccountConfig.h
3 // ZDK
4 //
5 
6 #ifndef ZDK_NET_AccountConfig_h
7 #define ZDK_NET_AccountConfig_h
8 
9 #include "native_shared_ptr.h"
10 #include "PublicInterfaces.h"
11 #include "ProtocolType.h"
12 #include "SIPConfig.h"
13 #include "IAXConfig.h"
14 #include "DTMFType.h"
15 #include "AudioOutputDeviceType.h"
16 #include "ZHandle.h"
17 
18 using namespace System::Collections::Generic;
19 
20 namespace ZDK_NET
21 {
22  ref class SIPConfig;
23  ref class IAXConfig;
24  ref class AccountConfig;
25 
28  public ref class AccountConfig : ZHandle
29  {
30  public:
31  ZDK::IAccountConfig* cppRef = nullptr;
32 
33  AccountConfig(ZDK::Shared::AccountConfig src);
34  ~AccountConfig();
36 
43  property System::String^ UserName
44  {
45  System::String^ get();
46  void set(System::String^ value);
47  }
48 
55  property System::String^ Password
56  {
57  System::String^ get();
58  void set(System::String^ value);
59  }
60 
67  property ZDK_NET::ProtocolType Type
68  {
69  ZDK_NET::ProtocolType get();
70  void set(ZDK_NET::ProtocolType value);
71  }
72 
81  property int ReregistrationTime
82  {
83  int get();
84  void set(int value);
85  }
86 
96  property ZDK_NET::SIPConfig^ SIP
97  {
98  ZDK_NET::SIPConfig^ get();
99  void set(ZDK_NET::SIPConfig^ value);
100  }
101 
111  property ZDK_NET::IAXConfig^ IAX
112  {
113  ZDK_NET::IAXConfig^ get();
114  void set(ZDK_NET::IAXConfig^ value);
115  }
116 
123  property System::String^ DeviceGUID
124  {
125  System::String^ get();
126  void set(System::String^ value);
127  }
128 
135  property System::String^ RegistrationGUID
136  {
137  System::String^ get();
138  void set(System::String^ value);
139  }
140 
145  property bool EnableIPv6Detection
146  {
147  bool get();
148  void set(bool value);
149  }
150 
157  property ZDK_NET::DTMFType DTMFBand
158  {
159  ZDK_NET::DTMFType get();
160  void set(ZDK_NET::DTMFType value);
161  }
162 
173  property ZDK_NET::AudioOutputDeviceType DTMFAutoplayDevice
174  {
175  ZDK_NET::AudioOutputDeviceType get();
176  void set(ZDK_NET::AudioOutputDeviceType value);
177  }
178 
188 
189  virtual long long Handle() override;
190 
191  virtual void Initialize() override;
192 
193  virtual void ReleaseReference() override;
194 
195  };
196 }
197 
198 #endif
ZDK_NET::IAXConfig
IAX specific account configuration.
Definition: IAXConfig.h:22
ZDK_NET::AccountConfig
General account configuration.
Definition: AccountConfig.h:29
ZDK_NET::SIPConfig
SIP specific account configuration.
Definition: SIPConfig.h:36
ZDK_NET::AccountConfig::IsEqual
bool IsEqual(ZDK_NET::AccountConfig^ comp)
Compares the current configuration with the given one.
ZDK_NET::ZHandle
Definition: ZHandle.h:18