RLbsLocMonitorAreaPositioner Class Reference

#include <rlbslocmonitorareapositioner.h>

List of all members.

Public Member Functions

IMPORT_C void OpenL (RLbsLocMonitorSession &aLocMonSession)
IMPORT_C void Close ()
IMPORT_C TInt SetLastKnownPosition (const TPositionInfoBase &aPosInfo) const
IMPORT_C void GetLastKnownPosition (TPositionInfoBase &aPosInfo, TRequestStatus &aStatus) const
IMPORT_C TInt CancelGetLastKnownPosition () const
IMPORT_C void GetLastKnownPositionArea (TPositionInfoBase &aPosInfo, TPositionAreaInfoBase &aAreaInfo, TPosAreaReqParams &aParameters, TRequestStatus &aStatus) const
IMPORT_C TInt CancelGetLastKnownPositionArea () const

Protected Member Functions

virtual IMPORT_C void ConstructL ()
virtual IMPORT_C void Destruct ()

Detailed Description

This class is used by clients of the Location Monitor server to create a sub-session with the server.

Before using the class, a primary connection must have already been established with the server with RLbsLocMonitorSession::Connect().

See also:
RLbsLocMonitorSession

Member Function Documentation

EXPORT_C void RLbsLocMonitorAreaPositioner::GetLastKnownPositionArea ( TPositionInfoBase &  aPosInfo,
TPositionAreaInfoBase &  aAreaInfo,
TPosAreaReqParams &  aParameters,
TRequestStatus &  aStatus 
) const

Returns in aPosInfo a position which had been previously stored in association with "context information" that is bound to a geographical area (e.g. Global Cell Id).

Current context information will be sensed by the server and used to search for a position in the database. If found, the position will be an approximation of the current position of the handset. If no position is found in the database for the current context information, the position last stored in the database is returned.

The method returns in aAreaInfo a rough indication of how accurate the returned position is based on an estimation of the size of the geographical area covered by the sensed context information.

EXPORT_C TInt RLbsLocMonitorAreaPositioner::SetLastKnownPosition ( const TPositionInfoBase &  aPosInfo  )  const

Method called by the Location Server to send the Last Known Position to the Location Monitor for storing together with Local Area information if possible.

Parameters:
aPosInfo the position object to be sent to the server (only the TPositionInfo portion will be sent)
Returns:
KErrNone if position is succesfully sent to server KErrArgument if aPosInfo is not a TPositionInfo class or derived class. Any of the error codes returned by RSessionBase::SendReceive

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

Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved. These materials are provided under the terms of the Eclipse Public License v1.0.