class MLbsPrivacyObserver |
The mixin class that defines the interface for the LBS privacy controller observer.
The callbacks defined in this class are called by the LBS system when needed, e.g. when a network location request is received, when the reference position is received, when the final position is calculated and when the request has completed.
Public Member Functions | |
---|---|
void | ProcessNetworkLocationRequest ( TUint , const TLbsExternalRequestInfo &, const TNotificationType &) |
void | ProcessNetworkPositionUpdate ( TUint , const TPositionInfo &) |
void | ProcessRequestComplete ( TUint , TInt ) |
IMPORT_C TVersion | Version () |
Public Member Enumerations | |
---|---|
enum | TNotificationType { ENotifyUnknown = 0, ENotifyLocationAccepted , ENotifyAndVerifyLocationAcceptedIfNoReponse , ENotifyAndVerifyLocationRejectedIfNoReponse , ENotifyLocationRejected } |
void | ProcessNetworkLocationRequest | ( | TUint | aRequestId, |
const TLbsExternalRequestInfo & | aRequestInfo, | |||
const TNotificationType & | aNotificationType | |||
) | [pure virtual] |
Called when a network location request is received by the LBS system. The implementer of this function must decide whether the location request is allowed and give the result to the LBS system. The result is passed by calling CPrivacyController::SendRequestVerificationResult().
TUint aRequestId | Identifies the request within the LBS system. |
const TLbsExternalRequestInfo & aRequestInfo | Information about the external client making the request. Note that the actual type may be of one the derived classes e.g. TLbsExternalRequestInfo2. The type may be determined by calling ClassType(). If the class is of the TLbsExternalRequestInfo2 type, this parameter may be casted to access the extended information. |
const TNotificationType & aNotificationType | The value set by the network for the user notification. |
void | ProcessNetworkPositionUpdate | ( | TUint | aRequestId, |
const TPositionInfo & | aPosInfo | |||
) | [pure virtual] |
Called whenever a position update is ready while processing a network location request. Typically, it will be called twice: 1) As soon as the network reference position is available. 2) As soon as the final calculated position is available.
TUint aRequestId | Identifies the request within the LBS system. |
const TPositionInfo & aPosInfo | The latest position data. |
void | ProcessRequestComplete | ( | TUint | aRequestId, |
TInt | aReason | |||
) | [pure virtual] |
Called when a network location request (e.g. MT-LR) has been completed.
Contains the user notification action defined by the network location request (MT-LR). This setting may be overridden by the setting(s) in the LBS Admin Settings API.
CLbsAdmin::TExternalLocateService CLbsAdmin::TPrivacyTimeoutAction
ENotifyUnknown = 0 |
Unused/Unknown notification. |
ENotifyLocationAccepted |
Accept and notify user. |
ENotifyAndVerifyLocationAcceptedIfNoReponse |
Verify (query user). Accept if no response. |
ENotifyAndVerifyLocationRejectedIfNoReponse |
Verify (query user). Reject if no response. |
ENotifyLocationRejected |
Reject and notify user. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.