OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::TunWin::WinProxySettings Class Reference

#include <winproxy.hpp>

Inheritance diagram for openvpn::TunWin::WinProxySettings:
[legend]
Collaboration diagram for openvpn::TunWin::WinProxySettings:
[legend]

Public Types

typedef RCPtr< WinProxySettingsPtr
 
- Public Types inherited from openvpn::ProxySettings
typedef RCPtr< ProxySettingsPtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 

Public Member Functions

 WinProxySettings (const TunBuilderCapture::ProxyAutoConfigURL &config_arg)
 
void set_proxy (bool del) override
 
- Public Member Functions inherited from openvpn::ProxySettings
 OPENVPN_EXCEPTION (proxy_error)
 
 ProxySettings (const TunBuilderCapture::ProxyAutoConfigURL &config_arg)
 
- Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
 RC () noexcept=default
 
 RC (const RC &)=delete
 
virtual ~RC ()=default
 
RCoperator= (const RC &)=delete
 
olong use_count () const noexcept
 Delegates call to RCImpl and returns the result.
 

Private Member Functions

void restore_key (Win::Reg::Key &regkey, const std::string &key, bool str)
 
void save_key (Win::Reg::Key &regkey, const std::string &key, const std::string &value, bool str)
 

Private Attributes

const char * key_name = "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings"
 
const char * delete_value_str = "DeleteValue"
 
const DWORD delete_value_dword = 0xCAFEBABE
 

Additional Inherited Members

- Static Public Member Functions inherited from openvpn::ProxySettings
template<class T >
static void add_actions (const TunBuilderCapture &settings, ActionList &create, ActionList &destroy)
 
- Static Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
static constexpr bool is_thread_safe ()
 Delegates call to RCImpl and returns the result.
 
- Public Attributes inherited from openvpn::ProxySettings
const std::string sname = "OpenVPNConnect"
 
TunBuilderCapture::ProxyAutoConfigURL config
 

Detailed Description

Definition at line 26 of file winproxy.hpp.

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ WinProxySettings()

openvpn::TunWin::WinProxySettings::WinProxySettings ( const TunBuilderCapture::ProxyAutoConfigURL config_arg)
inline

Definition at line 31 of file winproxy.hpp.

Member Function Documentation

◆ restore_key()

void openvpn::TunWin::WinProxySettings::restore_key ( Win::Reg::Key regkey,
const std::string &  key,
bool  str 
)
inlineprivate

Definition at line 72 of file winproxy.hpp.

Here is the caller graph for this function:

◆ save_key()

void openvpn::TunWin::WinProxySettings::save_key ( Win::Reg::Key regkey,
const std::string &  key,
const std::string &  value,
bool  str 
)
inlineprivate

Definition at line 114 of file winproxy.hpp.

Here is the caller graph for this function:

◆ set_proxy()

void openvpn::TunWin::WinProxySettings::set_proxy ( bool  del)
inlineoverridevirtual

Implements openvpn::ProxySettings.

Definition at line 36 of file winproxy.hpp.

Member Data Documentation

◆ delete_value_dword

const DWORD openvpn::TunWin::WinProxySettings::delete_value_dword = 0xCAFEBABE
private

Definition at line 171 of file winproxy.hpp.

◆ delete_value_str

const char* openvpn::TunWin::WinProxySettings::delete_value_str = "DeleteValue"
private

Definition at line 170 of file winproxy.hpp.

◆ key_name

const char* openvpn::TunWin::WinProxySettings::key_name = "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings"
private

Definition at line 169 of file winproxy.hpp.


The documentation for this class was generated from the following file: