CWlmScanRequest Class Reference

class CWlmScanRequest : public CActive

Active Object for asynchronous scan request.

This class implements an Active Object that is used for handling an asynchronous scan request.

Since
S60 v5.0

Inherits from

Constructor & Destructor Documentation

CWlmScanRequest(RWLMServer &)

CWlmScanRequest(RWLMServer &aClient)[private]

Constructor

Parameters

RWLMServer & aClientHandle to client-side interface to WLAN engine.

~CWlmScanRequest()

~CWlmScanRequest()[virtual]

Destructor.

Member Functions Documentation

ClientStatus()

TRequestStatus *ClientStatus()

Return the request status of the client.

Since
S60 v5.0

ConstructL()

voidConstructL()[private]

Second-phase constructor.

DoCancel()

voidDoCancel()[virtual]

From CActive. Called by the framework as part of AO's Cancel().

Since
S60 v5.0

IssueRequest(ScanList &, const TDesC8 &, TInt &, TUint &, TRequestStatus *)

TInt IssueRequest(ScanList &aScanList,
const TDesC8 &aSsid,
TInt &aCacheLifetime,
TUint &aMaxDelay,
TRequestStatus *aStatus
)

Issue a scan request.

Since
S60 v5.0

Parameters

ScanList & aScanListScanList used for storing the results.
const TDesC8 & aSsidSSID used for scanning.
TInt & aCacheLifetimehow old cached results (in seconds) the client is willing to accept.
TUint & aMaxDelaymaximum time (in seconds) the client is willing to wait for the scan results.
TRequestStatus * aStatusRequest status of the client that will be completed when scan has been completed. NULL if synchronous request.

NewL(RWLMServer &)

CWlmScanRequest *NewL(RWLMServer &aClient)[static]

Factory method for creating CWlmScanRequest instance.

Parameters

RWLMServer & aClientHandle to client-side interface to WLAN engine.

RunError(TInt)

TInt RunError(TIntaError)[virtual]

From CActive. Called by the framework if RunL leaves.

Since
S60 v5.0

Parameters

TInt aErrorThe error code RunL leaved with.

RunL()

voidRunL()[virtual]

From CActive. Called when the request has been completed.

Since
S60 v5.0

UpdateResults()

TInt UpdateResults()[private]

Updates the scan list contents after a successful scan.

Member Data Documentation

TInt * iCacheLifetime

TInt *iCacheLifetime[private]

Pointer to cache lifetime parameter. Not owned by this pointer.

RWLMServer & iClient

RWLMServer &iClient[private]

Handle to client-side interface.

TRequestStatus * iClientStatus

TRequestStatus *iClientStatus[private]

Request status of the client. Not owned by this pointer.

TPckgBuf< TDynamicScanList > iDynamicScanListBuf

TPckgBuf< TDynamicScanList >iDynamicScanListBuf[private]

Buffer for storing scan list count and scan list size.

TUint * iMaxDelay

TUint *iMaxDelay[private]

Pointer to max delay parameter. Not owned by this pointer.

ScanList * iScanList

ScanList *iScanList[private]

Scan list used for storing the results. Not owned by this pointer.

TPtr8 iScanListPtr

TPtr8 iScanListPtr[private]

Descriptor for scan list.

TPckgBuf< TScanScheduling > iScanSchedulingBuf

TPckgBuf< TScanScheduling >iScanSchedulingBuf[private]

Buffer for storing scan scheduling parameters

TPckgBuf< TSSID > iSsidBuf

TPckgBuf< TSSID >iSsidBuf[private]

SSID user for scanning.