TPositionQualityBase Class Reference

#include <lbscommon.h>

Link against: lbs.lib

class TPositionQualityBase : public TPositionClassTypeBase, public TPositionClassTypeBase

Inherits from

Detailed Description

The base class for classes used to store position quality information

Constructor & Destructor Documentation

TPositionQualityBase ( )

IMPORT_CTPositionQualityBase()[protected]

Default constructor for TPositionQualityBase

Member Function Documentation

Compare ( const TPositionQualityBase &, TInt, TPositionQualityItem::TResult & )

IMPORT_C TIntCompare(const TPositionQualityBase &aPositionQuality,
TIntaElementToCompare,
TPositionQualityItem::TResult &aComparison
)const

Compares a specified element of another TPositionQualityBase object to this TPositionQualityBase.

Parameters
aPositionQualityThe position quality to compare against this position quality.
aElementToCompareThe element number that we want to compare.
aComparisonSet by this function to whether or not the TPositionQualityBase provided is better or worse than this TPositionQualityBase.
Return Value
KErrNone if comparison was successful. KErrArgument if there is a mismatch of the datatypes of the value preference.

GetElement ( TInt, TPositionQualityItem::TDataType, T & )

TInt GetElement(TIntaElementId,
TPositionQualityItem::TDataTypeaDataType,
T &aData
)const [protected, inline]

Gets the data of an element from the array of elements.

Parameters
aElementIdThe element Id of that we're interested in.
aDataTypeThe datatype of the data to be fetched.
aDataA pointer to the data to be written into.
Return Value
Standard Symbian OS Error code

HighWaterMark ( )

IMPORT_C TIntHighWaterMark()const

Returns The High Water Mark

Return Value
The High Water Mark.

IsDefined ( TInt )

IMPORT_C TBoolIsDefined(TIntaElementId)const

Returns whether an element is defined Whether or not this element has a defined state

Parameters
aElementIdThe element Id of that we're interested in.
Return Value
TBool if definedWhether or not an element has a state of EUndefined.

ResetElement ( TInt )

IMPORT_C voidResetElement(TIntaElementId)[protected]

Resets element

Parameters
aElementIdThe id of the element to be reset to a state of EUndefined. Maintains the iHighWaterMark.

SetElement ( TInt, TPositionQualityItem::TDataType, TPositionQualityItem::TValuePreference, T )

voidSetElement(TIntaElementId,
TPositionQualityItem::TDataTypeaDataType,
TPositionQualityItem::TValuePreferenceaValuePreference,
TaData
)[protected, inline]

Sets the data of an element from the array of elements.

Parameters
aElementIdThe element Id of that we're interested in.
aDataTypeThe datatype of the data to be fetched.
aValuePreferenceQuality preferences
aDataA pointer to the data to be written into.