ZDK
IStunConfig.h
1 #ifndef __ISTUNCONFIG__
2 #define __ISTUNCONFIG__
3 
4 #include "IZHandle.h"
5 
6 #include "Types/SharedPointerTypes.h"
7 
8 namespace ZDK
9 {
10 
11 //# @abi(all) documentation
21 class IStunConfig : public virtual ZDK::IZHandle
22 {
23 public:
24  //# @abi(all) documentation
31  //# @abi(jni|obj_c) property
32  virtual bool STUNEnabled() const = 0;
33 
34  //# @abi(all) documentation
41  //# @abi(jni|obj_c) property
42  virtual void STUNEnabled(bool value) = 0;
43 
44  //# @abi(all) documentation
51  //# @abi(jni|obj_c) property
52  //# @abi(jni|obj_c) @param(return) nullable
53  virtual ZDK::Shared::String STUNServer() const = 0;
54 
55  //# @abi(all) documentation
62  //# @abi(jni|obj_c) property
63  //# @abi(jni|obj_c) @param(value) nullable
64  virtual void STUNServer(ZDK::Shared::String value) = 0;
65 
66  //# @abi(all) documentation
73  //# @abi(jni|obj_c) property
74  virtual int STUNPort() const = 0;
75 
76  //# @abi(all) documentation
83  //# @abi(jni|obj_c) property
84  virtual void STUNPort(int value) = 0;
85 
86  //# @abi(all) documentation
96  //# @abi(jni|obj_c) property
97  virtual int STUNRefresh() const = 0;
98 
99  //# @abi(all) documentation
109  //# @abi(jni|obj_c) property
110  virtual void STUNRefresh(int value) = 0;
111 
112  //# @abi(all) documentation
121  virtual bool IsEqual(ZDK::Shared::StunConfig comp) const = 0;
122 };
123 
124 } //namespace ZDK
125 
126 #endif //__ISTUNCONFIG__
Definition: IZHandle.h:12
virtual bool STUNEnabled() const =0
Gets the use of STUN functionality as described in RFC 3489.
virtual int STUNPort() const =0
Gets the configured port of the STUN server.
STUN specific account configuration.
Definition: IStunConfig.h:21
Definition: IAccountConfig.h:10
virtual ZDK::Shared::String STUNServer() const =0
Gets the configured address of the STUN server.
virtual bool IsEqual(ZDK::Shared::StunConfig comp) const =0
Compares the current configuration with the given one.
virtual int STUNRefresh() const =0
Gets the configured refresh period of the STUN server.