OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::TunWin::Dns< REG, NETAPI >::ActionDelete Class Reference

#include <dns.hpp>

Inheritance diagram for openvpn::TunWin::Dns< REG, NETAPI >::ActionDelete:
[legend]
Collaboration diagram for openvpn::TunWin::Dns< REG, NETAPI >::ActionDelete:
[legend]

Public Member Functions

 ActionDelete (const std::string &itf_name, const std::string &search_domains)
 
void execute (std::ostream &log) override
 Undo any modification to the DNS settings.
 
std::string to_string () const override
 Return the log message.
 
- Public Member Functions inherited from openvpn::Action
virtual Json::Value to_json () const
 
virtual ~Action ()=default
 
- 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 Attributes

const std::string itf_name_
 
const std::string search_domains_
 

Additional Inherited Members

- Public Types inherited from openvpn::Action
typedef RCPtr< ActionPtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 
- 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::Action
std::string mark
 

Detailed Description

template<typename REG, typename NETAPI>
class openvpn::TunWin::Dns< REG, NETAPI >::ActionDelete

Definition at line 454 of file dns.hpp.

Constructor & Destructor Documentation

◆ ActionDelete()

template<typename REG , typename NETAPI >
openvpn::TunWin::Dns< REG, NETAPI >::ActionDelete::ActionDelete ( const std::string &  itf_name,
const std::string &  search_domains 
)
inline

Definition at line 457 of file dns.hpp.

Member Function Documentation

◆ execute()

template<typename REG , typename NETAPI >
void openvpn::TunWin::Dns< REG, NETAPI >::ActionDelete::execute ( std::ostream &  log)
inlineoverridevirtual

Undo any modification to the DNS settings.

Parameters
logwhere the log message goes

Implements openvpn::Action.

Definition at line 467 of file dns.hpp.

◆ to_string()

template<typename REG , typename NETAPI >
std::string openvpn::TunWin::Dns< REG, NETAPI >::ActionDelete::to_string ( ) const
inlineoverridevirtual

Return the log message.

Returns
std::string

Implements openvpn::Action.

Definition at line 478 of file dns.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ itf_name_

template<typename REG , typename NETAPI >
const std::string openvpn::TunWin::Dns< REG, NETAPI >::ActionDelete::itf_name_
private

Definition at line 488 of file dns.hpp.

◆ search_domains_

template<typename REG , typename NETAPI >
const std::string openvpn::TunWin::Dns< REG, NETAPI >::ActionDelete::search_domains_
private

Definition at line 489 of file dns.hpp.


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