zdk.net
ZRTPConfig.h
1 //
2 // ZRTPConfig.h
3 // ZDK
4 //
5 
6 #ifndef ZDK_NET_ZRTPConfig_h
7 #define ZDK_NET_ZRTPConfig_h
8 
9 #include "native_shared_ptr.h"
10 #include "PublicInterfaces.h"
11 #include "ZRTPHashAlgorithm.h"
12 #include "ZRTPCipherAlgorithm.h"
13 #include "ZRTPAuthTag.h"
14 #include "ZRTPKeyAgreement.h"
15 #include "ZRTPSASEncoding.h"
16 #include "ZHandle.h"
17 
18 using namespace System::Collections::Generic;
19 
20 namespace ZDK_NET
21 {
22  ref class ZRTPConfig;
23 
26  public ref class ZRTPConfig : ZHandle
27  {
28  public:
29  ZDK::IZRTPConfig* cppRef = nullptr;
30 
31  ZRTPConfig(ZDK::Shared::ZRTPConfig src);
32  ~ZRTPConfig();
34 
41  property bool EnableZRTP
42  {
43  bool get();
44  void set(bool value);
45  }
46 
64  property List<ZDK_NET::ZRTPHashAlgorithm>^ Hash
65  {
66  List<ZDK_NET::ZRTPHashAlgorithm>^ get();
67  void set(List<ZDK_NET::ZRTPHashAlgorithm>^ value);
68  }
69 
92  property List<ZDK_NET::ZRTPCipherAlgorithm>^ Cipher
93  {
94  List<ZDK_NET::ZRTPCipherAlgorithm>^ get();
95  void set(List<ZDK_NET::ZRTPCipherAlgorithm>^ value);
96  }
97 
120  property List<ZDK_NET::ZRTPAuthTag>^ Auth
121  {
122  List<ZDK_NET::ZRTPAuthTag>^ get();
123  void set(List<ZDK_NET::ZRTPAuthTag>^ value);
124  }
125 
160  property List<ZDK_NET::ZRTPKeyAgreement>^ KeyAgreement
161  {
162  List<ZDK_NET::ZRTPKeyAgreement>^ get();
163  void set(List<ZDK_NET::ZRTPKeyAgreement>^ value);
164  }
165 
205  property List<ZDK_NET::ZRTPSASEncoding>^ SasEncoding
206  {
207  List<ZDK_NET::ZRTPSASEncoding>^ get();
208  void set(List<ZDK_NET::ZRTPSASEncoding>^ value);
209  }
210 
234  property int CacheExpiry
235  {
236  int get();
237  void set(int value);
238  }
239 
249 
250  virtual long long Handle() override;
251 
252  virtual void Initialize() override;
253 
254  virtual void ReleaseReference() override;
255 
256  };
257 }
258 
259 #endif
ZDK_NET::ZRTPConfig::IsEqual
bool IsEqual(ZDK_NET::ZRTPConfig^ comp)
Compares the current configuration with the given one.
ZDK_NET::ZRTPConfig
ZRTP specific account configuration.
Definition: ZRTPConfig.h:27
ZDK_NET::ZHandle
Definition: ZHandle.h:18