#include <LbsCriteria.h>
Link against:
lbs.lib
Link against:
lbsselflocate.lib
Class TPositionSelectionOrder
class TPositionSelectionOrder;
Description
This class is used as part of the TPositionCriteria
class to chose a positioning module that will provide the desired quality of information. It allows position-quality-metrics
to be given priorities, enabling them to be given preference in the decision.
Members
Defined in TPositionSelectionOrder
:
Construction and destruction
TPositionSelectionOrder()
IMPORT_C TPositionSelectionOrder();
Description
Default constructor for TPositionSelectionOrder.
SetOrderTimeToFirstFix(TOrder)
IMPORT_C TInt SetOrderTimeToFirstFix(TOrder aOrder);
Description
Assigns a priority to the time to first fix when selecting a positioning module.
Parameters
Return value
TInt
|
a Symbian OS error code.
|
|
SetOrderTimeToNextFix(TOrder)
IMPORT_C TInt SetOrderTimeToNextFix(TOrder aOrder);
Description
Assigns a priority to the time to subsequent fixes when selecting a positioning module.
Parameters
Return value
TInt
|
a Symbian OS error code.
|
|
SetOrderHorizontalAccuracy(TOrder)
IMPORT_C TInt SetOrderHorizontalAccuracy(TOrder aOrder);
Description
Assigns a priority to the horizontal accuracy when selecting a positioning module.
Parameters
Return value
TInt
|
a Symbian OS error code.
|
|
SetOrderVerticalAccuracy(TOrder)
IMPORT_C TInt SetOrderVerticalAccuracy(TOrder aOrder);
Description
Assigns a priority to the vertical accuracy when selecting a positioning module.
Parameters
Return value
TInt
|
a Symbian OS error code.
|
|
SetOrderCostIndicator(TOrder)
IMPORT_C TInt SetOrderCostIndicator(TOrder aOrder);
Description
Assigns a priority to the cost of a positioning technology when selecting a positioning module.
Parameters
Return value
TInt
|
a Symbian OS error code.
|
|
SetOrderPowerConsumption(TOrder)
IMPORT_C TInt SetOrderPowerConsumption(TOrder aOrder);
Description
Assigns a priority to the power consumption of a positioning technology when selecting a positioning module.
Parameters
Return value
TInt
|
a Symbian OS error code.
|
|
IMPORT_C void ResetSelectionOrder();
Description
Used to restore the default selection ordering.
IMPORT_C void ClearSelectionOrder();
Description
Clear all values including defaults. This is useful if the application wishes to specify its own priorities.
IMPORT_C TUint NumSelectionItems() const;
Description
Not generally called by client applications. It retrieves the number of selection parameters.
Return value
TUint
|
the number of selection items.
|
|
GetSelectionItem(TUint,TField &,TOrder &)const
IMPORT_C TInt GetSelectionItem(TUint aIndex, TField &aField, TOrder &aOrder) const;
Description
Not generally called by client applications. It retrieves a particular selection parameter.
Parameters
Return value
TInt
|
a Symbian OS error code.
|
|
protected: struct SItem;
Description
Stores a field / priority pair.
Members
Defined in TPositionSelectionOrder::SItem
:
iField
A position quality metric identifier.
iOrder
The priority given to the iField position quality metric.
Member data
iField
TField iField;
Description
A position quality metric identifier.
iOrder
TOrder iOrder;
Description
The priority given to the iField position quality metric.
TOrder
Description
Specifies the priority of selection parameters.
TField
Description
Specifies the quality of position metrics that can be prioritized.
protected: TUint iNumItems;
Description
The number of selection items in the iItems array.
protected: SItem iItems[KPositionMaxSectionFields];
Description
Array of users position quality priorities.