lbsprivacycontroller.h File Reference

NONSHARABLE_CLASS ( CLbsPrivacyController )

NONSHARABLE_CLASS(CLbsPrivacyController)

An application can use this class to register itself as the user privacy controller for the LBS system.

The application must supply an implementation of the MLbsPrivacyObserver interface so that it can be notified of important events.

When it receives the MLbsPrivacyObserver::ProcessNetworkLocationRequest() notification it must reply by calling CLbsPrivacyController::RespondNetworkLocationRequest() to tell the LBS system the user response to the network location request.

If the request was accepted then the application will recieve more notifications: 1) MLbsPrivacyObserver::ProcessNetworkPositionUpdate() with the reference position when the assistance data is received from the network. 2) MLbsPrivacyObserver::ProcessNetworkPositionUpdate() with the calculated position when it is sent back to the network. 3) MLbsPrivacyObserver::ProcessRequestCompleted() when the application no longer needs to listen to notifications for that request.

Each notification contains aRequestId, which identifies each network location request within the LBS system. It is meant to be used so that each of the different notifications can be matched to the request they came from.