#include <rlbslocmonitorareapositioner.h>
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 () |
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().
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.
aPosInfo | the position object to be sent to the server (only the TPositionInfo portion will be sent) |