CConnMonWlanNetwork Class Reference

class CConnMonWlanNetwork : public CBase

Class to represent a WLAN. Used when reporting WLAN scan results back to a client.

Inherits from

Constructor & Destructor Documentation

CConnMonWlanNetwork()

CConnMonWlanNetwork()[private]

Constructor.

CConnMonWlanNetwork(const TBuf< KMaxNameLength > &, TUint, TUint, TUint, const TBuf8< KWlanBssId > &, const TDesC &)

CConnMonWlanNetwork(const TBuf< KMaxNameLength > &aName,
TUintaConnectionMode,
TUintaSignalStrength,
TUintaSecurityMode,
const TBuf8< KWlanBssId > &aBssId,
const TDesC &aVendorData
)[private]

Constructor.

Parameters

const TBuf< KMaxNameLength > & aNameName (SSID) of the network.
TUint aConnectionModeMode of the network.
TUint aSignalStrengthSignal strength of the network.
TUint aSecurityModeSecurity mode of the network.
const TBuf8< KWlanBssId > & aBssIdMac address (BSSID) of the base station.
const TDesC & aVendorDataNot in use.

~CConnMonWlanNetwork()

IMPORT_C~CConnMonWlanNetwork()

Destructor.

Member Functions Documentation

CompareBySignal(const CConnMonWlanNetwork &, const CConnMonWlanNetwork &)

IMPORT_C TIntCompareBySignal(const CConnMonWlanNetwork &aFirst,
const CConnMonWlanNetwork &aSecond
)[static]

Compares two networks by signal strength.

Parameters

const CConnMonWlanNetwork & aFirstReference to first WLAN object.
const CConnMonWlanNetwork & aSecondReference to second WLAN object.

ConnectionMode()

TUint ConnectionMode()[inline]

Obtains the connection mode of the network.

ConstructL()

voidConstructL()[private]

Second-phase constructor.

FromPtrC(const TPtrC &, CConnMonWlanNetwork *)

IMPORT_C TIntFromPtrC(const TPtrC &aPtrC,
CConnMonWlanNetwork *aConnMonWlanNetwork
)[static]

Reads object of class CConnMonWlanNetwork from memory.

Parameters

const TPtrC & aPtrCPointer to the beginning of the CConnMonWlanNetwork object in buffer.
CConnMonWlanNetwork * aConnMonWlanNetworkPointer to CConnMonWlanNetwork object where unpacked contents are written.

Name()

TBuf< KMaxNameLength >Name()[inline]

Obtains the name (SSID) of the network.

NewL(const TBuf< KMaxNameLength > &, TUint, TUint, TUint, const TBuf8< KWlanBssId > &, const TDesC &)

IMPORT_C CConnMonWlanNetwork *NewL(const TBuf< KMaxNameLength > &aName,
TUintaConnectionMode,
TUintaSignalStrength,
TUintaSecurityMode,
const TBuf8< KWlanBssId > &aBssId,
const TDesC &aVendorData
)[static]

Constructor.

Parameters

const TBuf< KMaxNameLength > & aNameName (SSID) of the network.
TUint aConnectionModeMode of the network.
TUint aSignalStrengthSignal strength of the network.
TUint aSecurityModeSecurity mode of the network.
const TBuf8< KWlanBssId > & aBssIdMac address (BSSID) of the base station.
const TDesC & aVendorDataNot in use.

NewL()

IMPORT_C CConnMonWlanNetwork *NewL()[static]

Constructor.

NewL(CConnMonWlanNetwork &)

IMPORT_C CConnMonWlanNetwork *NewL(CConnMonWlanNetwork &aConnMonWlanNetwork)[static]

Copy constructor.

Parameters

CConnMonWlanNetwork & aConnMonWlanNetworkThe object which is copied.

SecurityMode()

TUint SecurityMode()[inline]

Obtains the security mode of the network.

SignalStrength()

TUint SignalStrength()[inline]

Obtains the signal strength of the network.

ToBuf()

IMPORT_C const HBufC *ToBuf()const

Writes object of class CConnMonWlanNetwork to memory. Ownership of newly created buffer is transferred to caller.

VendorData()

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.

WlanBssid()

TBuf8< KWlanBssId >WlanBssid()[inline]

Obtains the mac address (BSSID) of the base station.

operator=(CConnMonWlanNetwork &)

IMPORT_C CConnMonWlanNetwork &operator=(CConnMonWlanNetwork &aConnMonWlanNetwork)

Assignment operator.

Parameters

CConnMonWlanNetwork & aConnMonWlanNetworkThe object which is assigned.

Member Data Documentation

const TUint KExtraCount

const TUintKExtraCount[static]

Reserved for future use.

const TUint KMaxNameLength

const TUintKMaxNameLength[static]

Maximum length of a WLAN name (SSID).

const TUint KWlanBssId

const TUintKWlanBssId[static]

WLAN BSSID length (mac address).

TUint iConnectionMode

TUint iConnectionMode[private]

TUint iExtraBuf

TUint iExtraBuf[private]

TBuf< KMaxNameLength > iName

TBuf< KMaxNameLength >iName[private]

TUint iSecurityMode

TUint iSecurityMode[private]

TUint iSignalStrength

TUint iSignalStrength[private]

HBufC * iVendorData

HBufC *iVendorData[private]

TBuf8< KWlanBssId > iWlanBssId

TBuf8< KWlanBssId >iWlanBssId[private]