#include <lbscommon.h>
class TPositionQualityItem |
Public Member Enumerations | |
---|---|
enum | TDataType { EUndefined, ETInt8, ETInt16, ETInt32, ..., ETTimeIntervalMicroSeconds } |
enum | TResult { EIsBetter, EIsEqual, EIsWorse } |
enum | TValuePreference { EPreferSmallerValues, EPreferGreaterValues } |
Public Member Functions | |
---|---|
TPositionQualityItem() | |
TInt | Compare(const TPositionQualityItem &, TResult &) |
TInt | Get(TDataType, TAny *, TUint) |
TBool | IsDefined() |
void | Set(TDataType, TValuePreference, const TAny *, TUint) |
The class for classes used to store position quality
Size of data type
Enumerator | Value | Description |
---|---|---|
EUndefined |
Undefined | |
ETInt8 |
TInt8 | |
ETInt16 |
TInt16 | |
ETInt32 |
TInt32 | |
ETInt64 |
Tint64 | |
ETUint8 |
TUint8 | |
ETUint16 |
TUint16 | |
ETUint32 |
TUint 32 | |
ETReal32 |
TReal32 | |
ETReal64 |
TReal64 | |
ETTime |
ETime | |
ETTimeIntervalMicroSeconds |
Time in microseconds |
TPositionQualityItem | ( | ) |
Constructor for TPositionQualityItem
Constructor for TPositionQualityItem
TInt | Compare | ( | const TPositionQualityItem & | aItem, |
TResult & | aComparison | |||
) | const |
Compare method
compare method Compare method
Parameter | Description |
---|---|
aItem | The item that we want to compare against ourself. |
aComparison | Set by this function to whether or not the TPositionQualityItem provided is better or worse than this TPositionQualityItem. |
Returns: KErrNone if comparison was successful. KErrArgument if there is a mismatch of the datatypes of the value preference.
Gets position quality
Gets position quality
Parameter | Description |
---|---|
aDataType | The datatype of the data to be fetched. |
aData | A pointer to the data to be written into. |
aSizeOfData | The size of the data object to be copied. |
Returns: KErrArgument if there is a mismatch in the datatype between setting and getting. KErrNone if successful.
TBool | IsDefined | ( | ) | const |
Whether or not this element has a defined state
Whether or not this element has a defined state
Returns: Whether or not this element has a state of EUndefined.
void | Set | ( | TDataType | aDataType, |
TValuePreference | aValuePreference, | |||
const TAny * | aData, | |||
TUint | aSizeOfData | |||
) |
Sets Position Quality
Sets position quality
Parameter | Description |
---|---|
aDataType | The datatype of the data to be set in the array. |
aValuePreference | Whether greater or lower values indicate 'better'. |
aData | A pointer to the data to be read from. |
aSizeOfData | The size of the data object to be copied. |