CLbsPrivacyControllerImpl Class Reference

class CLbsPrivacyControllerImpl : public CActive

Inherits from

Constructor & Destructor Documentation

CLbsPrivacyControllerImpl(MLbsPrivacyObserver *)

CLbsPrivacyControllerImpl ( MLbsPrivacyObserver * aObserver ) [protected]

Parameters

MLbsPrivacyObserver * aObserver

~CLbsPrivacyControllerImpl()

~CLbsPrivacyControllerImpl ( )

Member Functions Documentation

CancelNetworkLocationRequest(TUint)

void CancelNetworkLocationRequest ( TUint aRequestId )

Rejects a privacy query

Parameters

TUint aRequestId

ConstructL()

void ConstructL ( ) [protected]

DoCancel()

void DoCancel ( ) [protected, virtual]

Implements cancellation of an outstanding request.

This function is called as part of the active object's Cancel() .

It must call the appropriate cancel function offered by the active object's asynchronous service provider. The asynchronous service provider's cancel is expected to act immediately.

DoCancel() must not wait for event completion; this is handled by Cancel() .

CActive::Cancel

HandleLbsSessionComplete()

void HandleLbsSessionComplete ( ) [private]

Called when a session complete message has been received. Extract the data, which consists of the session id and the reason for completing the session, and pass it on to the observer

HandleLocationUpdate()

void HandleLocationUpdate ( ) [private]

Called when a location update has been received. Extract the position data, and pass it on to the observer

HandlePrivacyRequest()

void HandlePrivacyRequest ( ) [private]

Called when a privacy request has been received. Find out what sort of request it is, extract the data which specifies how to inform the user, and pass it on to the observer

NewL(MLbsPrivacyObserver *)

CLbsPrivacyControllerImpl * NewL ( MLbsPrivacyObserver * aObserver ) [static]

Parameters

MLbsPrivacyObserver * aObserver

OnProcessCloseDown()

void OnProcessCloseDown ( ) [private]

Callback from LbsRoot to tell this process to stop.

CLbsPrivacyControllerImpl should only register for this shutdown callback if the MLbsPrivacyObserver2 version of the privacy controller observer was used.

This callback will be triggered by LbsRoot when it is shutting down the LBS system. We must call ProcessCloseDownNotification to tell the privacy controller application to shutdown.

RespondNetworkLocationRequest(TUint, CLbsPrivacyController::TRequestVerificationResult)

void RespondNetworkLocationRequest ( TUint aRequestId,
CLbsPrivacyController::TRequestVerificationResult aResult
)

Respond to a privacy query

RunL()

void RunL ( ) [protected, virtual]

Called when the outstanding request is completed. This indicates that a message has been received from the server, so the type is identified and the data interpreted and handled accordingly. The request is then reisuued.

Member Data Documentation

MLbsPrivacyObserver * iObserver

MLbsPrivacyObserver * iObserver [private]

TServerStartParams iParams

TServerStartParams iParams [private]

RNrhServer iServer

RNrhServer iServer [private]

RNrhSession iSession

RNrhSession iSession [private]

TLbsNetSessionIdInt iSessionId

TLbsNetSessionIdInt iSessionId [private]