zdk.net
ProxyConfig.h
1 //
2 // ProxyConfig.h
3 // ZDK
4 //
5 
6 #ifndef ZDK_NET_ProxyConfig_h
7 #define ZDK_NET_ProxyConfig_h
8 
9 #include "native_shared_ptr.h"
10 #include "PublicInterfaces.h"
11 #include "ProxyProtocolType.h"
12 #include "ProxyModeType.h"
13 #include "ZHandle.h"
14 
15 using namespace System::Collections::Generic;
16 
17 namespace ZDK_NET
18 {
19 
26  public ref class ProxyConfig : ZHandle
27  {
28  public:
29  ZDK::IProxyConfig* cppRef = nullptr;
30 
31  ProxyConfig(ZDK::Shared::ProxyConfig src);
32  ~ProxyConfig();
34 
41  property ZDK_NET::ProxyProtocolType Protocol
42  {
43  ZDK_NET::ProxyProtocolType get();
44  }
45 
52  property ZDK_NET::ProxyModeType Mode
53  {
54  ZDK_NET::ProxyModeType get();
55  }
56 
61  property System::String^ Hostname
62  {
63  System::String^ get();
64  }
65 
70  property unsigned int Port
71  {
72  unsigned int get();
73  }
74 
79  property System::String^ Username
80  {
81  System::String^ get();
82  }
83 
88  property System::String^ Password
89  {
90  System::String^ get();
91  }
92 
93  virtual long long Handle() override;
94 
95  virtual void Initialize() override;
96 
97  virtual void ReleaseReference() override;
98 
99  };
100 }
101 
102 #endif
ZDK_NET::ProxyConfig
Proxy configuration.
Definition: ProxyConfig.h:27
ZDK_NET::ZHandle
Definition: ZHandle.h:18