OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::MacSleep Class Referenceabstract

#include <macsleep.hpp>

Inheritance diagram for openvpn::MacSleep:
[legend]

Public Member Functions

 MacSleep ()
 
virtual ~MacSleep ()
 
bool mac_sleep_start ()
 
void mac_sleep_stop ()
 
virtual void notify_sleep ()=0
 
virtual void notify_wakeup ()=0
 

Private Member Functions

 MacSleep (const MacSleep &)=delete
 
MacSleepoperator= (const MacSleep &)=delete
 
void callback (io_service_t service, natural_t messageType, void *messageArgument)
 

Static Private Member Functions

static void callback_static (void *arg, io_service_t service, natural_t messageType, void *messageArgument)
 

Private Attributes

io_connect_t root_port
 
IONotificationPortRef notifyPortRef
 
io_object_t notifierObject
 

Detailed Description

Definition at line 25 of file macsleep.hpp.

Constructor & Destructor Documentation

◆ MacSleep() [1/2]

openvpn::MacSleep::MacSleep ( const MacSleep )
privatedelete

◆ MacSleep() [2/2]

openvpn::MacSleep::MacSleep ( )
inline

Definition at line 31 of file macsleep.hpp.

◆ ~MacSleep()

virtual openvpn::MacSleep::~MacSleep ( )
inlinevirtual

Definition at line 38 of file macsleep.hpp.

Member Function Documentation

◆ callback()

void openvpn::MacSleep::callback ( io_service_t  service,
natural_t  messageType,
void *  messageArgument 
)
inlineprivate

Definition at line 91 of file macsleep.hpp.

Here is the caller graph for this function:

◆ callback_static()

static void openvpn::MacSleep::callback_static ( void *  arg,
io_service_t  service,
natural_t  messageType,
void *  messageArgument 
)
inlinestaticprivate

Definition at line 85 of file macsleep.hpp.

Here is the caller graph for this function:

◆ mac_sleep_start()

bool openvpn::MacSleep::mac_sleep_start ( )
inline

Definition at line 43 of file macsleep.hpp.

Here is the caller graph for this function:

◆ mac_sleep_stop()

void openvpn::MacSleep::mac_sleep_stop ( )
inline

Definition at line 55 of file macsleep.hpp.

Here is the caller graph for this function:

◆ notify_sleep()

virtual void openvpn::MacSleep::notify_sleep ( )
pure virtual

Implemented in openvpn::MacLifeCycle.

Here is the caller graph for this function:

◆ notify_wakeup()

virtual void openvpn::MacSleep::notify_wakeup ( )
pure virtual

Implemented in openvpn::MacLifeCycle.

Here is the caller graph for this function:

◆ operator=()

MacSleep & openvpn::MacSleep::operator= ( const MacSleep )
privatedelete

Member Data Documentation

◆ notifierObject

io_object_t openvpn::MacSleep::notifierObject
private

Definition at line 115 of file macsleep.hpp.

◆ notifyPortRef

IONotificationPortRef openvpn::MacSleep::notifyPortRef
private

Definition at line 112 of file macsleep.hpp.

◆ root_port

io_connect_t openvpn::MacSleep::root_port
private

Definition at line 109 of file macsleep.hpp.


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