#include <lbscommon.h>
Link against: lbs.lib
| class TPositionQuality : public TPositionQualityBase, public TPositionQualityBase |
| Public Member Enumerations | |
|---|---|
| enum | TCostIndicator { ECostUnknown, ECostZero, ECostPossible, ECostCharge } |
| enum | TPowerConsumption { EPowerUnknown, EPowerZero, EPowerLow, EPowerMedium, EPowerHigh } |
| Public Member Functions | |
|---|---|
| TPositionQuality() | |
| IMPORT_C TCostIndicator | CostIndicator() |
| IMPORT_C TReal32 | HorizontalAccuracy() |
| IMPORT_C TPowerConsumption | PowerConsumption() |
| IMPORT_C void | SetCostIndicator(TCostIndicator) |
| IMPORT_C void | SetHorizontalAccuracy(TReal32) |
| IMPORT_C void | SetPowerConsumption(TPowerConsumption) |
| IMPORT_C void | SetTimeToFirstFix(TTimeIntervalMicroSeconds) |
| IMPORT_C void | SetTimeToNextFix(TTimeIntervalMicroSeconds) |
| IMPORT_C void | SetVerticalAccuracy(TReal32) |
| IMPORT_C TTimeIntervalMicroSeconds | TimeToFirstFix() |
| IMPORT_C TTimeIntervalMicroSeconds | TimeToNextFix() |
| IMPORT_C TReal32 | VerticalAccuracy() |
| Inherited Attributes | |
|---|---|
| TPositionClassTypeBase::iPosClassSize | |
| TPositionClassTypeBase::iPosClassType | |
The standard position quality class.
Cost Indicator for position request
| Enumerator | Value | Description |
|---|---|---|
| ECostUnknown |
Unknown cost This is the unassigned value and should not be returned | |
| ECostZero |
Zero cost No cost is expected to be incurred when obtaining a position fix | |
| ECostPossible |
Possible cost The positioning module is uncertain if the user will incur a charge. | |
| ECostCharge |
Charged The positioning module expects a charge to be levied when obtaining position information |
Power consumption
| Enumerator | Value | Description |
|---|---|---|
| EPowerUnknown |
Unknown power consumption The positioning module is unable to determine the likely power drain | |
| EPowerZero |
Zero power consumption No internal power will be used when obtaining a position fix | |
| EPowerLow |
Low power consumption The positioning module expects a minimum power drain when using the associated technology. This may be comparable to the power usage when the phone is in standby mode. | |
| EPowerMedium |
Medium power consumption The positioning module expects a moderate power drain when using the associated technology. This may be comparable to the power usage when the phone is being actively used | |
| EPowerHigh |
High power consumption The positioning module expects a high power drain when using the associated technology. Use of this module will quickly consume the phone's batteries |
| IMPORT_C | TPositionQuality | ( | ) |
Default constructor for TPositionQuality
Note that the horizontal accuracy and vertical accuracy are initially NaNs.
| IMPORT_C TPowerConsumption | PowerConsumption | ( | ) | const |
The power consumption
| IMPORT_C void | SetCostIndicator | ( | TCostIndicator | aCost | ) |
The cost indicator to set
| Parameters | |
|---|---|
| aCost | The cost indicator to set |
| IMPORT_C void | SetHorizontalAccuracy | ( | TReal32 | aHorizontalAccuracy | ) |
| Parameters | |
|---|---|
| aHorizontalAccuracy | The horizontal accuracy to set |
| Panic Codes | |
|---|---|
| "LocationClient | EPositionBadAccuracy" if aHorizontalAccuracy is negative. |
| IMPORT_C void | SetPowerConsumption | ( | TPowerConsumption | aPower | ) |
The power consumption to set
| Parameters | |
|---|---|
| aPower | The power consumption to set |
| IMPORT_C void | SetTimeToFirstFix | ( | TTimeIntervalMicroSeconds | aTimeToFirstFix | ) |
| Parameters | |
|---|---|
| aTimeToFirstFix | The time required to obtain an initial location fix to set |
| Panic Codes | |
|---|---|
| "LocationClient | EPositionBadTime" if aTimeToFirstFix is negative. |
| IMPORT_C void | SetTimeToNextFix | ( | TTimeIntervalMicroSeconds | aTimeToNextFix | ) |
| Parameters | |
|---|---|
| aTimeToNextFix | The time required to obtain subsequent location fixes to set |
| Panic Codes | |
|---|---|
| "LocationClient | EPositionBadTime" if aTimeToNextFix is negative. |
| IMPORT_C void | SetVerticalAccuracy | ( | TReal32 | aVerticalAccuracy | ) |
| Parameters | |
|---|---|
| aVerticalAccuracy | The vertical accuracy to set |
| Panic Codes | |
|---|---|
| "LocationClient | EPositionBadAccuracy" if aVerticalAccuracy is negative. |
| IMPORT_C TTimeIntervalMicroSeconds | TimeToFirstFix | ( | ) | const |
The time required to obtain an initial location fix
| IMPORT_C TTimeIntervalMicroSeconds | TimeToNextFix | ( | ) | const |
The time required to obtain subsequent location fixes