TPositionQualityBase Class Reference

#include <lbscommon.h>

Link against: lbs.lib

class TPositionQualityBase : 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.

ParameterDescription
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.

Returns: 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.

ParameterDescription
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.

Returns: Standard Symbian OS Error code

HighWaterMark ( )

IMPORT_C TIntHighWaterMark()const

Returns The High Water Mark

Returns: 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

ParameterDescription
aElementIdThe element Id of that we're interested in.

Returns: TBool if definedWhether or not an element has a state of EUndefined.

ResetElement ( TInt )

IMPORT_C voidResetElement(TIntaElementId)[protected]

Resets element

ParameterDescription
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.

ParameterDescription
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.