TLbsPrivacyRequest Class Reference

class TLbsPrivacyRequest : public TLbsPrivacyClassTypeBase

A class that wraps privacy request parameters.

An instance of the class TLbsPrivacyRequest is passed to the LBS subsystem when a local or remote privacy request is sent via the Privacy Request API. The class is used to indicate what advice should be given to the user. For example, this may advise that the user is required to verify the request or is simply notified about it.

The class also specifies whether the request should be accepted or rejected. In the situation where the user must verify the request, the action is the default behaviour when the user does not respond.

For example, if the advice is set to ERequestAdviceVerify and the action is ERequestActionAllow, this indicates that the user should be asked if they wish to accept or reject the request. However, if the user does not respond, the LBS subsystem should automatically accept the request.

Alternatively, the user may be notified that a request has been rejected. In this situation the advice is set to ERequestAdviceNotify with an action of ERequestActionReject.

Inherits from

Constructor & Destructor Documentation

TLbsPrivacyRequest()

IMPORT_CTLbsPrivacyRequest()

Default constructor for TLbsPrivacyRequest

Member Functions Documentation

RequestAction()

IMPORT_C TLbsRequestActionRequestAction()const

Returns for the request action. Value returned is from enumeration TLbsPrivacyRequest::_TLbsRequestAction

TLbsPrivacyRequest::_TLbsRequestAction

RequestAdvice()

IMPORT_C TLbsRequestAdviceRequestAdvice()const

Returns the request advice. Value returned is from enumeration TLbsPrivacyRequest::_TLbsRequestAdvice

TLbsPrivacyRequest::_TLbsRequestAdvice

SetRequestAction(TLbsRequestAction)

IMPORT_C voidSetRequestAction(TLbsRequestActionaAction)

Setter for the request action.

Parameters

TLbsRequestAction aAction

SetRequestAdvice(TLbsRequestAdvice)

IMPORT_C voidSetRequestAdvice(TLbsRequestAdviceaAdvice)

Sets for the request advice.

Parameters

TLbsRequestAdvice aAdviceThe request advice to be set. Must be from enum TLbsPrivacyRequest::_TLbsRequestAdvice

Member Enumerations Documentation

Enum _TLbsRequestAction

Note that the TLbsRequestAction enum may be extended in the future by adding more enumerated values. To maintain compatibility any unrecognized values must be handled as ERequestActionNotUsed.

Enumerators

ERequestActionNotUsed = 0

Not Used

ERequestActionAllow

The default action for LBS subsystem should be to accept the request. If this value is passed in combination with ERequestAdviceVerify, it indicates that the user should be asked if they wish to accept or reject the request. However, if the user does not respond, the request should be allowed.

In most situations the privacy response of the user should be used to decide whether to accept a location request. Therefore in most cases a privacy advice of ERequestAdviceNotify and a privacy action of ERequestActionAllow should not be used together, although it is not an error to do so.

ERequestActionReject

The default action for LBS subsystem should be to reject the request. If this value is passed in combination with ERequestAdviceVerify, it indicates that the user should asked if they wish to accept or reject the request. However, if the user does not respond, the request should be rejected.

If ERequestActionReject is passed in combination with ERequestAdviceNotify, it indicates that the user should be informed that a request has been made but the terminal should automatically reject it.

Enum _TLbsRequestAdvice

Note that the TLbsRequestAdvice enum may be extended in the future by adding more enumerated values. To maintain compatibility any unrecognized values must be handled as ERequestAdviceNotUsed.

Enumerators

ERequestAdviceNotUsed = 0

Not Used

ERequestAdviceNotify

The LBS subsystem should notify the user that their location has been requested.

ERequestAdviceVerify

The LBS subsystem should ask the user if they wish to accept or reject the request.

ERequestAdviceSilent

The LBS subsystem should neither notify or query the user if they wish to accept or reject a request. Details of the request should be logged.

ERequestAdviceStealth

No indication should be given to a user. The user should neither be notified nor queried. In addition, no information about the request should be logged. This option is defined by some network protocols (e.g. SUPL) but is not implemented by the LBS subsystem.

Member Type Definitions Documentation

Typedef TLbsRequestAction

typedef TUint32 TLbsRequestAction

Defined type for TLbsRequestAction.

Typedef TLbsRequestAdvice

typedef TUint32 TLbsRequestAdvice

Defined type for TLbsRequestAdvice

Member Data Documentation

TLbsRequestAction iAction

TLbsRequestAction iAction[protected]

TLbsRequestAdvice iAdvice

TLbsRequestAdvice iAdvice[protected]

TUint8 iReserved

TUint8 iReserved[protected]