TPositionQualityItem Class Reference

#include <lbscommon.h>

Link against: lbs.lib

class TPositionQualityItem

Detailed Description

The class for classes used to store position quality

Member Enumeration Documentation

Enum TDataType

Size of data type

EnumeratorValueDescription
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

Enum TResult

Quality result

EnumeratorValueDescription
EIsBetter

Better

EIsEqual

Equal

EIsWorse

Worse

Enum TValuePreference

Preference

EnumeratorValueDescription
EPreferSmallerValues

Smaller values

EPreferGreaterValues

Greater values

Constructor & Destructor Documentation

TPositionQualityItem ( )

TPositionQualityItem()

Constructor for TPositionQualityItem

Constructor for TPositionQualityItem

Member Function Documentation

Compare ( const TPositionQualityItem &, TResult & )

TInt Compare(const TPositionQualityItem &aItem,
TResult &aComparison
)const

Compare method

compare method Compare method

ParameterDescription
aItemThe item that we want to compare against ourself.
aComparisonSet 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.

Get ( TDataType, TAny *, TUint )

TInt Get(TDataTypeaDataType,
TAny *aData,
TUintaSizeOfData
)const

Gets position quality

Gets position quality

ParameterDescription
aDataTypeThe datatype of the data to be fetched.
aDataA pointer to the data to be written into.
aSizeOfDataThe 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.

IsDefined ( )

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.

Set ( TDataType, TValuePreference, const TAny *, TUint )

voidSet(TDataTypeaDataType,
TValuePreferenceaValuePreference,
const TAny *aData,
TUintaSizeOfData
)

Sets Position Quality

Sets position quality

ParameterDescription
aDataTypeThe datatype of the data to be set in the array.
aValuePreferenceWhether greater or lower values indicate 'better'.
aDataA pointer to the data to be read from.
aSizeOfDataThe size of the data object to be copied.