TLbsNetPosRequestMethod Class Reference

class TLbsNetPosRequestMethod : public TLbsNetClassTypeBase

The class TLbsNetPosRequestMethod is used by the network protocol module to specify the means and operation mode that should be used to obtain the device's location. An instance of the class is passed by the protocol module when it calls MLbsNetworkProtocolObserver::ProcessLocationRequest .

The class contains a prioritised list of the positioning methods that should be used to obtain the device's position. The first entry (index zero) contains the preferred positioning method - for example, terminal based GPS. The subsequent entries indicate the mechanisms that should be used if the previous method was not available or was not successful. Under most protocols, there will be a maximum of two positioning methods specified.

See TLbsNetPosMethod for information on how different technology mechanisms (e.g. GPS) and modes (e.g. terminal based) are specified.

TLbsNetPosMethod MLbsLocationSourceObserver::ProcessLocationRequest MLbsLocationSourceObserver::GetCurrentCapabilities

Inherits from

Constructor & Destructor Documentation

TLbsNetPosRequestMethod()

IMPORT_C TLbsNetPosRequestMethod ( )

Constructor for the TLbsNetPosRequestMethod

MLbsLocationSourceObserver::ProcessLocationRequest

Member Functions Documentation

GetPosMethod(TInt, TLbsNetPosMethod &)

IMPORT_C TInt GetPosMethod ( TInt aIndex,
TLbsNetPosMethod & aPosMethod
) const

Returns the specified positioning method allowed by the network

MLbsLocationSourceObserver::ProcessLocationRequest

Parameters

TInt aIndex Specifies the index of the position method to returned/
TLbsNetPosMethod & aPosMethod On successful completion, contains the details of the positioning methods held at the specified index.

GpsTimingOfCellFramesRequested()

IMPORT_C TBool GpsTimingOfCellFramesRequested ( ) const

Returns flag indicating that the Gps Timing Of Cell Frames information has been requeseted by the network.

NumPosMethods()

IMPORT_C TInt NumPosMethods ( ) const

Returns the number of positioning methods allowed by the network

MLbsLocationSourceObserver::ProcessLocationRequest

SetGpsTimingOfCellFramesRequested(TBool)

IMPORT_C void SetGpsTimingOfCellFramesRequested ( TBool aRequested )

Sets flag indicating that the Gps Timing Of Cell Frames information has been requeseted by the network.

Parameters

TBool aRequested Bool indicating if the data has been requested

SetPosMethods(const TLbsNetPosMethod, TInt)

IMPORT_C TInt SetPosMethods ( const TLbsNetPosMethod aPosMethods,
TInt aNumPosMethods
)

Assigns the prioritised list of positioning methods stipulated by the network.

MLbsLocationSourceObserver::ProcessLocationRequest

Parameters

const TLbsNetPosMethod aPosMethods The prioritised list of positioning methods.
TInt aNumPosMethods The number of methods in the prioritised list.

Member Data Documentation

TBool iGpsTimingOfCellFramesRequested

TBool iGpsTimingOfCellFramesRequested [protected]

TInt iNumPosMethods

TInt iNumPosMethods [protected]

TLbsNetPosMethod iPosMethod

TLbsNetPosMethod iPosMethod [protected]

TUint8 iReserved

TUint8 iReserved [private]