MLbsPrivacyObserver Class Reference

#include <lbs/lbsprivacycontroller.h>

Link against: lbsprivacycontroller.lib

class MLbsPrivacyObserver

Detailed Description

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.

Member Enumeration Documentation

Enum TNotificationType

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.

See also: CLbsAdmin::TExternalLocateService CLbsAdmin::TPrivacyTimeoutAction

EnumeratorValueDescription
ENotifyUnknown0

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.

Member Function Documentation

ProcessNetworkLocationRequest ( TUint, const TLbsExternalRequestInfo &, const TNotificationType & )

voidProcessNetworkLocationRequest(TUintaRequestId,
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().

See also: TLbsExternalRequestInfo2 TLbsLocClassTypeBase::ClassType()

ParameterDescription
aRequestIdIdentifies the request within the LBS system.
aRequestInfoInformation 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.
aNotificationTypeThe value set by the network for the user notification.

ProcessNetworkPositionUpdate ( TUint, const TPositionInfo & )

voidProcessNetworkPositionUpdate(TUintaRequestId,
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.

ParameterDescription
aRequestIdIdentifies the request within the LBS system.
aPosInfoThe latest position data.

ProcessRequestComplete ( TUint, TInt )

voidProcessRequestComplete(TUintaRequestId,
TIntaReason
)[pure virtual]

Called when a network location request (e.g. MT-LR) has been completed.

ParameterDescription
aRequestIdIdentifies the request within the LBS system.
aReasonContains the reason for the completion of the request. Usually KErrNone, or a standard Symbian error code. KErrNotFound if aRequestId is not a currently active external location request.

Version ( )

IMPORT_C TVersionVersion()[virtual]

Returns the current version of the interface.

Returns: The current version of the interface.