HPositionGenericInfo Class Reference
class HPositionGenericInfo : public TPositionInfo
|
Class for getting arbitrary positioning related information back from the location server. 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.
Constructor & Destructor Documentation
HPositionGenericInfo(TInt, TInt, TUint, TUint, TBool)
HPositionGenericInfo
|
(
|
TInt
|
aDataBufferSize,
|
|
TInt
|
aMaxFields,
|
|
TUint
|
aFieldIndexStartPoint,
|
|
TUint
|
aDataStartPoint,
|
|
TBool
|
aResetRequestedFields
|
|
)
|
[private]
|
private constructor. To be used within the class
HPositionGenericInfo(const HPositionGenericInfo &)
Member Functions Documentation
BufferSize()
IMPORT_C
TInt
|
BufferSize
|
(
|
)
|
const
|
Method returns the size of the buffer set in the constructor
ClearPositionData()
IMPORT_C void
|
ClearPositionData
|
(
|
)
|
|
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.
ClearRequestedFields()
IMPORT_C void
|
ClearRequestedFields
|
(
|
)
|
|
Clears all the requested fields.
FieldIndexPtr()
Helper method. For internal usage only
FieldIndexPtr()
Helper method. For internal usage only
FindEmptyRequestedFieldOffset(TInt &)
TInt
|
FindEmptyRequestedFieldOffset
|
(
|
TInt
&
|
aEmptyFieldOffset
|
)
|
const [private]
|
Helper method. For internal usage only
FirstRequestedFieldId()
Looks through the list of requested fields for the lowest valued field Id.
GetValue(TPositionFieldId, TType &)
Used to retrieve position information.
Parameters
TPositionFieldId
aFieldId
|
Standard position field identifier. See _TPositionFieldId
|
TType & aValue
|
The parameter aValue can be of the type TInt8, TInt16, TInt32, TInt64, TUint8, TUint16, TUint32, TReal32, TReal64, TTime, TTimeIntervalMicroSeconds, Des8, or Des16. Panics with EPositionGenericInfoMismatchDataType if there is a mismatch in the data type of a field.
|
IsFieldAvailable(TPositionFieldId)
Looks through the available fields and returns whether aFieldId is in the list.
IsRequestedField(TPositionFieldId)
Returns whether a field has been set as requested.
MaxFields()
IMPORT_C
TInt
|
MaxFields
|
(
|
)
|
const
|
NewLC(TInt, TInt)
Leaving constructor that allocs a
HPositionGenericInfo
on the heap and leaves a pointer to the object on the cleanup stack.
NextRequestedFieldId(TPositionFieldId)
Looks for the next field Id in the list greater than aFieldId.
Parameters
TPositionFieldId
aFieldId
|
Function will return next field Id in the list greater than this Id.
|
RequestedFieldPtr()
Helper method. For internal usage only
RequestedFieldPtr()
Helper method. For internal usage only
SetRequestedField(TPositionFieldId)
Method sets a field as requested.
SetRequestedFields(const TPositionFieldIdList)
Sets multiple TPositionFieldId objects as requested.
Parameters
const
TPositionFieldIdList
aFieldIdList
|
List of field Id's to be set as requested. The list is terminated with a EPositionFieldNone entry.
|
SetValue(TPositionFieldId, const TType &)
Used to store position information.
Parameters
TPositionFieldId
aFieldId
|
Standard position field identifier. See _TPositionFieldId
|
const TType & aValue
|
The parameter aValue can be of the type TInt8, TInt16, TInt32, TInt64, TUint8, TUint16, TUint32, TReal32, TReal64, TTime, TTimeIntervalMicroSeconds, Des8, or Des16.
|
operator=(const HPositionGenericInfo &)
Member Data Documentation
TUint8
iBuffer
Start of the buffer. The heap cell allocated for an instance of this class has space for information up to iBuffer[iTotalBufferSize-1]
const TUint iDataStartPoint
const
TUint
|
iDataStartPoint
|
[private]
|
Offset into iBuffer of the actual location data.
const TUint iFieldIndexStartPoint
const
TUint
|
iFieldIndexStartPoint
|
[private]
|
Offset into iBuffer of the field index.
const TInt iMaxFields
const
TInt
|
iMaxFields
|
[private]
|
Max number of requesable/returnable fields.
const TInt iTotalBufferSize
const
TInt
|
iTotalBufferSize
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.