RLbsTransmitPosition Class Reference

class RLbsTransmitPosition

This class is used to create a sub-session with the server for the purpose of transmitting the current position to a third party. Before using the class, a primary connection must have already been established with the server. This class is not intended for derivation.

RLbsTransmitPositionServer

Constructor & Destructor Documentation

RLbsTransmitPosition()

IMPORT_CRLbsTransmitPosition()

Constructor for RLbsTransmitPosition

Member Functions Documentation

CancelTransmitPosition()

IMPORT_C voidCancelTransmitPosition()

Cancels a previously issued asynchronous request. The TRequestStatus of the original request will be set to KErrCancel if the cancellation request was successful, or any other Symbian OS error code if CancelTransmitPosition was called too late.

capability
Location NetworkServices

Close()

IMPORT_C voidClose()

Closes a sub-session with the positioning server.

ConstructL(RLbsTransmitPositionServer &)

IMPORT_C voidConstructL(RLbsTransmitPositionServer &aServer)[private, virtual]

Leaving constructor for RLbsTransmitPosition. Just creates the ptr-holder.

Parameters

RLbsTransmitPositionServer & aServerPosition Server

Destruct()

IMPORT_C voidDestruct()[private, virtual]

Destruction method for RLbsTransmitPosition.

ExtendedInterface(TInt, TAny *, TAny *)

IMPORT_C TAny *ExtendedInterface(TIntaFunctionNumber,
TAny *aPtr1,
TAny *aPtr2
)[private, virtual]

Reserved for future expansion - derived classes should see documentation

Parameters

TInt aFunctionNumbercontains the Id of the function to be invoked.
TAny * aPtr1a pointer to any data
TAny * aPtr2a pointer to any data

GetTransmitOptions(TLbsTransmitPositionOptions &)

IMPORT_C TIntGetTransmitOptions(TLbsTransmitPositionOptions &aTransmitOptions)const

This is method is used to get the current setting for the options that will be used when requesting that the current position be sent to a third party.

capability
Location NetworkServices

Parameters

TLbsTransmitPositionOptions & aTransmitOptionsis the options currently set.

Open(RLbsTransmitPositionServer &)

IMPORT_C TIntOpen(RLbsTransmitPositionServer &aServer)

Creates a sub-session with the positioning server.

capability
Location NetworkServices

Parameters

RLbsTransmitPositionServer & aServeris a connected session with the positioning server.

SetTransmitOptions(const TLbsTransmitPositionOptions &)

IMPORT_C TIntSetTransmitOptions(const TLbsTransmitPositionOptions &aTransmitOptions)

This is method is used to set the options that will be used when requesting that the current position be sent to a third party.

capability
Location NetworkServices

Parameters

const TLbsTransmitPositionOptions & aTransmitOptionsis the options to be used.

TransmitPosition(const TDesC &, TUint, TRequestStatus &, TPositionInfo &)

IMPORT_C voidTransmitPosition(const TDesC &aDestinationID,
TUintaTransmitPriority,
TRequestStatus &aTransmittedPosStatus,
TPositionInfo &aTransmittedPosInfo
)

This is an asynchronous method for requesting that the current position be sent to a third party. Upon successful completion, the position sent will be returned to the caller in aTransmittedPosInfo.

capability
Location NetworkServices

Parameters

const TDesC & aDestinationIDidentifies the third party. For example, it may be the phone number or email address of the recipient of the position.
TUint aTransmitPriorityPriority that this request must be given. The priority determines the order in which transfer requests are processed. A priority of zero is the highest priority.
TRequestStatus & aTransmittedPosStatus
TPositionInfo & aTransmittedPosInfoWhen the request completes succesfully, this variable will store the position of the handset that was made available to the remote third party . This position might have been calculated by an on-board GPS receiver (terminal based and autonomous GPS modes) or may have been calculated by the network (terminal assisted mode).

TransmitPosition(const TDesC &, TUint, TRequestStatus &, TPositionInfo &, TRequestStatus &, TPositionInfo &)

IMPORT_C voidTransmitPosition(const TDesC &aDestinationID,
TUintaTransmitPriority,
TRequestStatus &aRefPosStatus,
TPositionInfo &aRefPosInfo,
TRequestStatus &aTransmittedPosStatus,
TPositionInfo &aTransmittedPosInfo
)

This asynchronous method is used to request that the current handset position be transmitted to a third party.

If there are no errors or cancellations, invoking this method will result in the user being called back twice and given two sequencial location upates.

The first location update will take place when aRefPosStatus is signalled and will consist of a Reference Location which is provided by the network to the handset in the early stages of the transmition procedure. This position is made available to the caller in aRefPosInfo.

The second location update will take place when aTransmittedPosStatus is signalled. When that happens aTransmitedPosInfo will contain the final position sent to the third party. This is a more accurate position than the Reference Location and is calculated (either in the handset or in the network) with GPS data collected by the handset.

capability
Location NetworkServices

Parameters

const TDesC & aDestinationIDidentifies the third party. For example, it may be the phone number or email address of the recipient of the position.
TUint aTransmitPriorityPriority that this request must be given. The priority determines the order in which transfer requests are processed. A priority of zero is the highest priority.
TRequestStatus & aRefPosStatusTRequestStatus of the Active Object whose RunL will be called as soon as the Reference Location is available in aRefPosInfo. The status value should be checked by the caller to ensure that the operation was successful.
TPositionInfo & aRefPosInfoWhen aRefPosStatus is signalled, this variable will contain the Reference Location provided by the network.
TRequestStatus & aTransmittedPosStatusTRequestStatus of the Active Object whose RunL will be called when the transmition has completed. The status value should be checked by the caller to ensure that the operation was successful, in which case the transmitted position is available in aTransmittedPosInfo.
TPositionInfo & aTransmittedPosInfoWhen the request completes succesfully, this variable will store the position of the handset that was made available to the remote third party . This position might have been calculated by an on-board GPS receiver (terminal based and autonomous GPS modes) or may have been calculated by the network (terminal assisted mode).

Member Data Documentation

CLbsTransmitPositionImpl * iImpl

CLbsTransmitPositionImpl *iImpl[private]

A pointer to a container that holds the implementation

TAny * iReserved

TAny *iReserved[private]

Unused variable for future expansion.