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)

voidCancelNetworkLocationRequest(TUintaRequestId)

Rejects a privacy query

Parameters

TUint aRequestId

ConstructL()

voidConstructL()[protected]

DoCancel()

voidDoCancel()[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()

voidHandleLbsSessionComplete()[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()

voidHandleLocationUpdate()[private]

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

HandlePrivacyRequest()

voidHandlePrivacyRequest()[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()

voidOnProcessCloseDown()[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)

voidRespondNetworkLocationRequest(TUintaRequestId,
CLbsPrivacyController::TRequestVerificationResultaResult
)

Respond to a privacy query

RunL()

voidRunL()[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]