TPositionQualityItem Class Reference

API published in: S60 2nd Ed FP 2

Link against: lbs.lib

Capability Information

Required Capabilities

None

Exceptions

The capability Location is required in:

TInt RPositionServer::GetDefaultModuleId(TPositionModuleId& aModuleId) const;

TInt RPositionServer::GetNumModules(TUint& aNumModules) const;

TInt RPositionServer::GetModuleInfoByIndex(TInt aModuleIndex, TPositionModuleInfoBase& aModuleInfo) const;

TInt RPositionServer::GetModuleInfoById(TPositionModuleId aModuleId, TPositionModuleInfoBase& aModuleInfo) const;

TInt RPositionServer::GetModuleStatus(TPositionModuleStatusBase& aPosModuleStatus, TPositionModuleId aModuleId) const;

void RPositionServer::NotifyModuleStatusEvent(TPositionModuleStatusEventBase& aStatusEvent,TRequestStatus& aStatus,const TPositionModuleId aModuleId = KPositionNullModuleId) const;

TInt RPositioner::SetRequestor(CRequestor::TRequestorType aType,CRequestor::TRequestorFormat aFormat,const TDesC& aData);

TInt RPositioner::SetRequestor(const RRequestorStack& aRequestorStack);

TInt RPositioner::SetUpdateOptions(const TPositionUpdateOptionsBase& aPosOption);

TInt RPositioner::GetUpdateOptions(TPositionUpdateOptionsBase& aPosOption) const;

void RPositioner::GetLastKnownPosition(TPositionInfoBase& aPosInfo,TRequestStatus& aStatus) const;

void RPositioner::NotifyPositionUpdate(TPositionInfoBase& aPosInfo,TRequestStatus& aStatus) const;


#include <lbscommon.h>

Detailed Description

This is an internal class that holds the value for position quality attributes.

The client should not use this class. Instead the client should use TPositionQuality class.


Public Types

enum   TResult { EIsBetter, EIsEqual, EIsWorse }
  Enumerator for the comparison of position quality items. More...
enum   TValuePreference { EPreferSmallerValues, EPreferGreaterValues }
enum   TDataType {
  EUndefined, ETInt8, ETInt16, ETInt32,
  ETInt64, ETUint8, ETUint16, ETUint32,
  ETReal32, ETReal64, ETTime, ETTimeIntervalMicroSeconds
}
  Defines the data type of the position quality item. More...

Public Member Functions

  TPositionQualityItem ()
TInt  Compare (const TPositionQualityItem &aItem, TResult &aComparison) const
void  Set (TDataType aDataType, TValuePreference aValuePreference, const TAny *aData, TUint aSizeOfData)
TInt  Get (TDataType aDataType, TAny *aData, TUint aSizeOfData) const
TBool  IsDefined () const

Member Enumeration Documentation

enum TPositionQualityItem::TDataType
 

Defines the data type of the position quality item.

Enumerator:
EUndefined 
ETInt8  Undefined data type. This value should not be used.
ETInt16  TInt8 datatype.
ETInt32  TInt16 datatype.
ETInt64  TInt32 datatype.
ETUint8  TInt64 datatype.
ETUint16  TUint8 datatype.
ETUint32  TUint16 datatype.
ETReal32  TUint32 datatype.
ETReal64  TReal32 datatype.
ETTime  TReal64 datatype.
ETTimeIntervalMicroSeconds  Time in micro seconds.
enum TPositionQualityItem::TResult
 

Enumerator for the comparison of position quality items.

Enumerator:
EIsBetter  The value in this quality class object is of better quality.
EIsEqual  Both the items that are being compared are of the same quality.
EIsWorse  The value in this quality class object is of worse quality.
enum TPositionQualityItem::TValuePreference
 
Enumerator:
EPreferSmallerValues 
EPreferGreaterValues 

Constructor & Destructor Documentation

TPositionQualityItem::TPositionQualityItem  ) 
 

Member Function Documentation

TInt TPositionQualityItem::Compare const TPositionQualityItem aItem,
TResult aComparison
const
 
TInt TPositionQualityItem::Get TDataType  aDataType,
TAny *  aData,
TUint  aSizeOfData
const
 
TBool TPositionQualityItem::IsDefined  )  const
 
void TPositionQualityItem::Set TDataType  aDataType,
TValuePreference  aValuePreference,
const TAny *  aData,
TUint  aSizeOfData
 

The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top