API published in: S60 2nd Ed FP 2
Link against: lbs.lib
Location
#include <lbspositioninfo.h>
Inherits TPositionInfo.
The client can set upto KPositionMaxRequestedFields as the number of requested fields. The definitions of the fields are given in the enum _TPositionFieldId. The client must know what data type will be returned for each of the fields. The server will make a best attempt to fill in the requested fields.
The client needs to allocate a big enough buffer to store the information it is requesting. In order to be sure of getting back all the information the client must know and allocate memory considering the return value for each requested field.
Public Member Functions | |
| IMPORT_C void | ClearRequestedFields () |
| Clears all the requested fields. | |
| IMPORT_C TInt | SetRequestedField (TPositionFieldId aFieldId) |
| Method sets a field as requested. | |
| IMPORT_C TInt | SetRequestedFields (const TPositionFieldIdList aFieldIdList) |
| Sets multiple TPositionFieldId objects as requested. | |
| IMPORT_C TInt | IsRequestedField (TPositionFieldId aFieldId) const |
| Returns whether a field has been set as requested. | |
| IMPORT_C TPositionFieldId | FirstRequestedFieldId () const |
| Looks through the list of requested fields for the lowest valued field Id. | |
| IMPORT_C TPositionFieldId | NextRequestedFieldId (TPositionFieldId aFieldId) const |
| Looks for the next field Id in the list greater than aFieldId. | |
| IMPORT_C TBool | IsFieldAvailable (TPositionFieldId aFieldId) const |
| Looks through the available fields and returns whether aFieldId is in the list. | |
| IMPORT_C void | ClearPositionData () |
| Resets the object to clear all info to that as it was on construction except the requested fields. | |
| IMPORT_C TInt | BufferSize () const |
| Method returns the size of the buffer set in the constructor. | |
| IMPORT_C TInt | MaxFields () const |
| template<class TType> | |
| TInt | SetValue (TPositionFieldId aFieldId, const TType &aValue) |
| Used to store position information. | |
| template<class TType> | |
| TInt | GetValue (TPositionFieldId aFieldId, TType &aValue) const |
| Used to retrieve position information. | |
Static Public Member Functions | |
| static IMPORT_C HPositionGenericInfo * | New (TInt aBufferSize=KPositionGenericInfoDefaultBufferSize, TInt aMaxFields=KPositionGenericInfoDefaultMaxFields) |
| Non-leaving constructor that allocs a HPositionGenericInfo on the heap. | |
| static IMPORT_C HPositionGenericInfo * | NewL (TInt aBufferSize=KPositionGenericInfoDefaultBufferSize, TInt aMaxFields=KPositionGenericInfoDefaultMaxFields) |
| Leaving constructor that allocs a HPositionGenericInfo on the heap. | |
| static IMPORT_C HPositionGenericInfo * | NewLC (TInt aBufferSize=KPositionGenericInfoDefaultBufferSize, TInt aMaxFields=KPositionGenericInfoDefaultMaxFields) |
| Leaving constructor that allocs a HPositionGenericInfo on the heap and leaves a pointer to the object on the cleanup stack. | |
Friends | |
| class | TPositionFieldSetter |
| class | TPositionFieldGetter |
|
|
Method returns the size of the buffer set in the constructor.
|
|
|
Resets the object to clear all info to that as it was on construction except the requested fields. Use in the server to clear the info before putting together a new location fix and passing it back to the client. |
|
|
Clears all the requested fields. |
|
|
Looks through the list of requested fields for the lowest valued field Id.
|
| ||||||||||||||||
|
Used to retrieve position information.
|
|
|
Looks through the available fields and returns whether aFieldId is in the list.
|
|
|
Returns whether a field has been set as requested.
|
|
|
| ||||||||||||
|
Non-leaving constructor that allocs a HPositionGenericInfo on the heap.
|
| ||||||||||||
|
Leaving constructor that allocs a HPositionGenericInfo on the heap.
|
| ||||||||||||
|
Leaving constructor that allocs a HPositionGenericInfo on the heap and leaves a pointer to the object on the cleanup stack.
|
|
|
Looks for the next field Id in the list greater than aFieldId.
|
|
|
Method sets a field as requested.
|
|
|
Sets multiple TPositionFieldId objects as requested.
|
| ||||||||||||||||
|
Used to store position information.
|
|
|