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_CTLbsNetPosRequestMethod()

Constructor for the TLbsNetPosRequestMethod

MLbsLocationSourceObserver::ProcessLocationRequest

Member Functions Documentation

GetPosMethod(TInt, TLbsNetPosMethod &)

IMPORT_C TIntGetPosMethod(TIntaIndex,
TLbsNetPosMethod &aPosMethod
)const

Returns the specified positioning method allowed by the network

MLbsLocationSourceObserver::ProcessLocationRequest

Parameters

TInt aIndexSpecifies the index of the position method to returned/
TLbsNetPosMethod & aPosMethodOn successful completion, contains the details of the positioning methods held at the specified index.

GpsTimingOfCellFramesRequested()

IMPORT_C TBoolGpsTimingOfCellFramesRequested()const

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

NumPosMethods()

IMPORT_C TIntNumPosMethods()const

Returns the number of positioning methods allowed by the network

MLbsLocationSourceObserver::ProcessLocationRequest

SetGpsTimingOfCellFramesRequested(TBool)

IMPORT_C voidSetGpsTimingOfCellFramesRequested(TBoolaRequested)

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

Parameters

TBool aRequestedBool indicating if the data has been requested

SetPosMethods(const TLbsNetPosMethod, TInt)

IMPORT_C TIntSetPosMethods(const TLbsNetPosMethodaPosMethods,
TIntaNumPosMethods
)

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

MLbsLocationSourceObserver::ProcessLocationRequest

Parameters

const TLbsNetPosMethod aPosMethodsThe prioritised list of positioning methods.
TInt aNumPosMethodsThe 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]