#include <mw/rconnmon.h>
| class CConnMonWlanNetwork : public CBase |
| Public Attributes | |
|---|---|
| const TUint | KExtraCount |
| const TUint | KMaxNameLength |
| const TUint | KWlanBssId |
| Public Member Functions | |
|---|---|
| ~CConnMonWlanNetwork() | |
| IMPORT_C TInt | CompareBySignal(const CConnMonWlanNetwork &, const CConnMonWlanNetwork &) |
| TUint | ConnectionMode() |
| IMPORT_C TInt | FromPtrC(const TPtrC &, CConnMonWlanNetwork *) |
| TBuf< KMaxNameLength > | Name() |
| IMPORT_C CConnMonWlanNetwork * | NewL(const TBuf< KMaxNameLength > &, TUint, TUint, TUint, const TBuf8< KWlanBssId > &, const TDesC &) |
| IMPORT_C CConnMonWlanNetwork * | NewL() |
| IMPORT_C CConnMonWlanNetwork * | NewL(CConnMonWlanNetwork &) |
| TUint | SecurityMode() |
| TUint | SignalStrength() |
| IMPORT_C const HBufC * | ToBuf() |
| HBufC * | VendorData() |
| TBuf8< KWlanBssId > | WlanBssid() |
| IMPORT_C CConnMonWlanNetwork & | operator=(CConnMonWlanNetwork &) |
Class to represent a WLAN. Used when reporting WLAN scan results back to a client.
| IMPORT_C TInt | CompareBySignal | ( | const CConnMonWlanNetwork & | aFirst, |
| const CConnMonWlanNetwork & | aSecond | |||
| ) | [static] | |||
Compares two networks by signal strength.
| Parameter | Description |
|---|---|
| aFirst | Reference to first WLAN object. |
| aSecond | Reference to second WLAN object. |
Returns: Result of the comparison, 1 if first is less than second, 0 if they are equal and -1 otherwise.
| TUint | ConnectionMode | ( | ) | [inline] |
Obtains the connection mode of the network.
Returns: Connection mode (defined in TConnMonNetworkMode).
| IMPORT_C TInt | FromPtrC | ( | const TPtrC & | aPtrC, |
| CConnMonWlanNetwork * | aConnMonWlanNetwork | |||
| ) | [static] | |||
Reads object of class CConnMonWlanNetwork from memory.
| Parameter | Description |
|---|---|
| aPtrC | Pointer to the beginning of the CConnMonWlanNetwork object in buffer. |
| aConnMonWlanNetwork | Pointer to CConnMonWlanNetwork object where unpacked contents are written. |
Returns: A Symbian OS error code.
| TBuf< KMaxNameLength > | Name | ( | ) | [inline] |
Obtains the name (SSID) of the network.
Returns: Name of the wlan network.
| IMPORT_C CConnMonWlanNetwork * | NewL | ( | const TBuf< KMaxNameLength > & | aName, |
| TUint | aConnectionMode, | |||
| TUint | aSignalStrength, | |||
| TUint | aSecurityMode, | |||
| const TBuf8< KWlanBssId > & | aBssId, | |||
| const TDesC & | aVendorData | |||
| ) | [static] | |||
Constructor.
| Parameter | Description |
|---|---|
| aName | Name (SSID) of the network. |
| aConnectionMode | Mode of the network. |
| aSignalStrength | Signal strength of the network. |
| aSecurityMode | Security mode of the network. |
| aBssId | Mac address (BSSID) of the base station. |
| aVendorData | Not in use. |
Returns: Pointer to the created CConnMonWlanNetwork object.
| IMPORT_C CConnMonWlanNetwork * | NewL | ( | ) | [static] |
Constructor.
Returns: Pointer to the created empty CConnMonWlanNetwork object.
| IMPORT_C CConnMonWlanNetwork * | NewL | ( | CConnMonWlanNetwork & | aConnMonWlanNetwork | ) | [static] |
Copy constructor.
| Parameter | Description |
|---|---|
| aConnMonWlanNetwork | The object which is copied. |
Returns: Pointer to the created CConnMonWlanNetwork object.
| TUint | SecurityMode | ( | ) | [inline] |
Obtains the security mode of the network.
Returns: Security mode (defined in TConnMonSecurityMode).
| TUint | SignalStrength | ( | ) | [inline] |
Obtains the signal strength of the network.
Returns: Signal strength in dBm.
| IMPORT_C const HBufC * | ToBuf | ( | ) | const |
Writes object of class CConnMonWlanNetwork to memory. Ownership of newly created buffer is transferred to caller.
Returns: Pointer to heap descriptor. NULL if memory allocation failed.
| HBufC * | VendorData | ( | ) | [inline] |
Obtains a pointer to vendor specific data buffer. Ownership of the data is NOT transferred. Not in use, use package attribute KWlanProbeRawBuffers instead.
Returns: Pointer to vendor specific data if available.
| TBuf8< KWlanBssId > | WlanBssid | ( | ) | [inline] |
Obtains the mac address (BSSID) of the base station.
Returns: Mac address (BSSID).
| IMPORT_C CConnMonWlanNetwork & | operator= | ( | CConnMonWlanNetwork & | aConnMonWlanNetwork | ) |
Assignment operator.
| Parameter | Description |
|---|---|
| aConnMonWlanNetwork | The object which is assigned. |