API published in: S60 2nd Ed FP 2
Link against: lbs.lib
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>
Inherits TPositionClassTypeBase.
Inherited by TPositionUpdateOptions.
It enables the client application to request periodic updates. It can also be used to inform the positioning module that the client application will accept partial (i.e. incomplete) position information
Public Member Functions |
|
IMPORT_C void | SetUpdateInterval (TTimeIntervalMicroSeconds aInterval) |
This method allows the client application to specify if it wants to receive updates at regular intervals. |
|
IMPORT_C void | SetUpdateTimeOut (TTimeIntervalMicroSeconds aTimeOut) |
This method allows the client application to specify the timeout for RPositioner::NotifyPositionUpdate() request. |
|
IMPORT_C void | SetMaxUpdateAge (TTimeIntervalMicroSeconds aMaxAge) |
This method allows the client application to specify the maximum age for the position information returned from RPositioner::NotifyPositionUpdate() request. |
|
IMPORT_C TTimeIntervalMicroSeconds | UpdateInterval () const |
Get the current update interval value. |
|
IMPORT_C TTimeIntervalMicroSeconds | UpdateTimeOut () const |
Get the current timeout interval value. |
|
IMPORT_C TTimeIntervalMicroSeconds | MaxUpdateAge () const |
Get the current maximum age value. |
|
Protected Member Functions |
|
IMPORT_C | TPositionUpdateOptionsBase () |
IMPORT_C | TPositionUpdateOptionsBase (TTimeIntervalMicroSeconds aInterval, TTimeIntervalMicroSeconds aTimeOut=TTimeIntervalMicroSeconds(0), TTimeIntervalMicroSeconds aMaxAge=TTimeIntervalMicroSeconds(0)) |
Protected Attributes |
|
TTimeIntervalMicroSeconds | iUpdateInterval |
The update interval. |
|
TTimeIntervalMicroSeconds | iUpdateTimeOut |
The update timeout. |
|
TTimeIntervalMicroSeconds | iMaxUpdateAge |
The maximum update age. |
|
|
|
Get the current maximum age value.
|
|
This method allows the client application to specify the maximum age for the position information returned from RPositioner::NotifyPositionUpdate() request. This means that position information can be returned from cache as long as the position is not older than the specified maximum age value.
|
|
This method allows the client application to specify if it wants to receive updates at regular intervals. This means that as long as the client re-issues the position request when the previous request is completed, the client receives position updates at the specified update interval periodicity.
|
|
This method allows the client application to specify the timeout for RPositioner::NotifyPositionUpdate() request. If the positioning module is unable to return a position fix within the specified timeout interval then the request is cancelled.
|
|
Get the current update interval value.
|
|
Get the current timeout interval value.
|
|
The maximum update age. |
|
The update interval. |
|
The update timeout. |