WLAN connection class. More...
#include <WlanConnection.h>
Public Member Functions | |
WlanConnection (WLAN_CONNECTION_SETTINGS *pSettings) | |
Class constructor. | |
virtual | ~WlanConnection () |
Class destructor. | |
virtual bool | isConnectionUp () |
Check connection state The implementation must implement this method to return a valid value. | |
virtual bool | getNetworkInfo (GENERIC_NETWORK_INFO &netInfo) |
Get network information. | |
virtual const char * | getLastError () |
Get last error. | |
Protected Member Functions | |
virtual bool | netInitialize () |
Network initialization routine Initializes the network connection. | |
virtual bool | netShutdown () |
Network shutdown routine Shuts down the network connection. | |
virtual bool | netConnect () |
Establish network connection Establish connection to the network. | |
virtual bool | netDisconnect () |
Disconnect from network Disconnects the from the network. | |
virtual bool | netSuspend () |
Suspend network connection. | |
virtual bool | netResume () |
Restore network connection. |
WLAN connection class.
Implements the WLAN network connection. Currently supported are the Ralink RT2870 and RT3070 WLAN modules with Ralink drivers.
WlanConnection::WlanConnection | ( | WLAN_CONNECTION_SETTINGS * | pSettings | ) |
Class constructor.
Initializes the WLAN connection object.
pSettings | Points to a structure containing the WLAN configuration parameters. The data is copied to a local storage. |
WlanConnection::~WlanConnection | ( | ) | [virtual] |
Class destructor.
Terminates the WLAN connection object.
virtual const char* WlanConnection::getLastError | ( | ) | [inline, virtual] |
Get last error.
Reimplemented from NetworkConnection.
bool WlanConnection::getNetworkInfo | ( | GENERIC_NETWORK_INFO & | netInfo | ) | [virtual] |
Get network information.
netInfo | Address to the structure where to store the retrieved network information The implementation must implement this method to fill the information structure. |
Implements NetworkConnection.
bool WlanConnection::isConnectionUp | ( | ) | [virtual] |
Check connection state The implementation must implement this method to return a valid value.
Implements NetworkConnection.
bool WlanConnection::netConnect | ( | ) | [protected, virtual] |
Establish network connection Establish connection to the network.
Implements NetworkConnection.
bool WlanConnection::netDisconnect | ( | ) | [protected, virtual] |
Disconnect from network Disconnects the from the network.
Implements NetworkConnection.
bool WlanConnection::netResume | ( | ) | [protected, virtual] |
Restore network connection.
Called internally when the mobile data terminal leaves a power saving mode. The implementation may override this method to take a specific action.
Reimplemented from NetworkConnection.
bool WlanConnection::netShutdown | ( | ) | [protected, virtual] |
Network shutdown routine Shuts down the network connection.
Implements NetworkConnection.
bool WlanConnection::netSuspend | ( | ) | [protected, virtual] |
Suspend network connection.
Called internally when the mobile data terminal enters a power saving mode. The implementation may override this method to take a specific action.
Reimplemented from NetworkConnection.