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
Public Member Functions | |
---|---|
TLbsNetPosRequestMethod () | |
IMPORT_C TInt | GetPosMethod ( TInt , TLbsNetPosMethod &) |
IMPORT_C TBool | GpsTimingOfCellFramesRequested () |
IMPORT_C TInt | NumPosMethods () |
IMPORT_C void | SetGpsTimingOfCellFramesRequested ( TBool ) |
IMPORT_C TInt | SetPosMethods (const TLbsNetPosMethod , TInt ) |
Inherited Functions | |
---|---|
TLbsNetClassTypeBase::ClassSize()const | |
TLbsNetClassTypeBase::ClassType()const | |
TLbsNetClassTypeBase::TLbsNetClassTypeBase() |
Protected Attributes | |
---|---|
TBool | iGpsTimingOfCellFramesRequested |
TInt | iNumPosMethods |
TLbsNetPosMethod | iPosMethod |
Private Attributes | |
---|---|
TUint8 | iReserved |
Inherited Attributes | |
---|---|
TLbsNetClassTypeBase::iClassSize | |
TLbsNetClassTypeBase::iClassType |
IMPORT_C | TLbsNetPosRequestMethod | ( | ) |
Constructor for the TLbsNetPosRequestMethod
MLbsLocationSourceObserver::ProcessLocationRequest
IMPORT_C TInt | GetPosMethod | ( | TInt | aIndex, |
TLbsNetPosMethod & | aPosMethod | |||
) | const |
Returns the specified positioning method allowed by the network
MLbsLocationSourceObserver::ProcessLocationRequest
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. |
IMPORT_C TBool | GpsTimingOfCellFramesRequested | ( | ) | const |
Returns flag indicating that the Gps Timing Of Cell Frames information has been requeseted by the network.
IMPORT_C TInt | NumPosMethods | ( | ) | const |
Returns the number of positioning methods allowed by the network
MLbsLocationSourceObserver::ProcessLocationRequest
IMPORT_C void | SetGpsTimingOfCellFramesRequested | ( | TBool | aRequested | ) |
Sets flag indicating that the Gps Timing Of Cell Frames information has been requeseted by the network.
TBool aRequested | Bool indicating if the data has been requested |
IMPORT_C TInt | SetPosMethods | ( | const TLbsNetPosMethod | aPosMethods, |
TInt | aNumPosMethods | |||
) |
Assigns the prioritised list of positioning methods stipulated by the network.
MLbsLocationSourceObserver::ProcessLocationRequest
const TLbsNetPosMethod aPosMethods | The prioritised list of positioning methods. |
TInt aNumPosMethods | The number of methods in the prioritised list. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.