A monitor of the system's network connection.
More...
#include <networkmonitor.h>
A monitor of the system's network connection.
◆ NetworkMonitor()
Nickvision::Network::NetworkMonitor::NetworkMonitor |
( |
| ) |
|
Constructs a NetworkMonitor. This method will call checkConnectionState() to get the initial system network state.
- Exceptions
-
◆ ~NetworkMonitor()
Nickvision::Network::NetworkMonitor::~NetworkMonitor |
( |
| ) |
|
◆ AddRef()
ULONG STDMETHODCALLTYPE Nickvision::Network::NetworkMonitor::AddRef |
( |
| ) |
|
|
override |
◆ ConnectivityChanged()
HRESULT STDMETHODCALLTYPE Nickvision::Network::NetworkMonitor::ConnectivityChanged |
( |
NLM_CONNECTIVITY | newConnectivity | ) |
|
|
override |
◆ getConnectionState()
NetworkState Nickvision::Network::NetworkMonitor::getConnectionState |
( |
| ) |
const |
Gets the state of the network connection.
- Returns
- NetworkState
◆ NetworkConnectionPropertyChanged()
HRESULT STDMETHODCALLTYPE Nickvision::Network::NetworkMonitor::NetworkConnectionPropertyChanged |
( |
GUID | connectionId, |
|
|
NLM_CONNECTION_PROPERTY_CHANGE | newProperty ) |
◆ QueryInterface()
HRESULT STDMETHODCALLTYPE Nickvision::Network::NetworkMonitor::QueryInterface |
( |
REFIID | riid, |
|
|
void ** | ppvObject ) |
|
override |
◆ Release()
ULONG STDMETHODCALLTYPE Nickvision::Network::NetworkMonitor::Release |
( |
| ) |
|
|
override |
◆ stateChanged()
Gets the StateChanged event. This event is invoked whenever the state of the network connection changes.
- Returns
- The StateChanged event
The documentation for this class was generated from the following file: