class CSuplPos : public CSuplMessageBase |
Encapsulation for outgoing/received SUPL POS messages.
Public Member Functions | |
---|---|
~CSuplPos () | |
void | DecodePosPayloadL ( TInt &) |
TInt | EncodePosPayloadL () |
IMPORT_C TInt | GetVelocity ( TPositionInfoBase &) |
void | LogPayload () |
IMPORT_C CSuplPos * | NewL ( TBool ) |
IMPORT_C CSuplPos * | NewLC ( TBool ) |
IMPORT_C CSuplPosPayload * | PosPayload () |
IMPORT_C void | SetPosPayload ( CSuplPosPayload *) |
IMPORT_C TInt | SetVelocity (const TPositionInfoBase &) |
IMPORT_C TBool | VelocityPresent () |
Private Member Functions | |
---|---|
CSuplPos ( TBool ) | |
CSuplPos (const CSuplPos &) | |
void | ConstructL () |
TReal32 | ConvertHorSpeedAccuracyToMetersPerSecond ( TUint ) |
TReal32 | ConvertHorSpeedToMetersPerSecond ( TUint ) |
CSuplPos & | operator= (const CSuplPos &) |
Inherited Enumerations | |
---|---|
CSuplMessageBase:_TSuplMessageType |
Private Attributes | |
---|---|
ASN1PERDecodeBuffer * | iDecodeBuffer |
ASN1T_PDU * | iPayloadData |
ASN1C_PDU * | iPayloadPdu |
CSuplPosPayload * | iPosPayload |
CSuplPos | ( | TBool | aIsOutgoingMessage | ) | [private] |
Constructor
TBool aIsOutgoingMessage |
CSuplPos | ( | const CSuplPos & | ) | [private] |
Prohibit copy constructor
const CSuplPos & |
TReal32 | ConvertHorSpeedAccuracyToMetersPerSecond | ( | TUint | aSpeedAccuracy | ) | [private] |
ConvertHorSpeedAccuracyToMetersPerSecond()
Converts received speed uncertainty value N to meters per second, according to 3GPP GAD:
Uncertainty is encoded in increments of 1 kilometer per hour using an 8bit encoded number N. N is therefore the uncertainty speed in kmph, except for N=255 which indicates that the uncertainty is not specified
TUint aSpeedAccuracy | - the received, encoded uncertainty speed N. |
TReal32 | ConvertHorSpeedToMetersPerSecond | ( | TUint | aSpeed | ) | [private] |
ConvertHorSpeedToMetersPerSecond()
Converts received speed value N to meters per second, according to 3GPP GAD:
for N = 0 N <= h < N+0.5 for 0 < N < 2^16-1 N-0.5 <= h < N+0.5 for N=2^16-1 N-0.5 <= h
where h = speed in km/hour
TUint aSpeed | - the received, encoded speed N. |
void | DecodePosPayloadL | ( | TInt & | aError | ) |
Decodes the content of the positioning payload (for received messages) Called by CSuplAsn1DecoderImpl::DecodeL() and not intended for DLL export
Decodes the content of received positioning payload. Must be called before content of the payload may be accessed
TInt & aError |
TInt | EncodePosPayloadL | ( | ) |
Encodes the SUPL POS message to the passed buffer Called by CSuplMessageBase::EncodeToL() and not intended for DLL export
Encodes the positioning payload.
IMPORT_C TInt | GetVelocity | ( | TPositionInfoBase & | aPosInfo | ) |
Populates aPosInfo according to the velocity parameter (for received messages)
Velocity()
Populates aPosInfo according to the velocity parameter The parameter TPositionInfoBase must be able to store course information (eg be TPositionCourseInfo or derived) for the velocity parameter to be set.
Note that the LBS course API currently does not support vertical velocity, so vertical speed information is ignored.
TPositionInfoBase & aPosInfo |
IMPORT_C CSuplPos * | NewL | ( | TBool | aIsOutgoingMessage | ) | [static] |
Static factory constructor
TBool aIsOutgoingMessage |
IMPORT_C CSuplPos * | NewLC | ( | TBool | aIsOutgoingMessage | ) | [static] |
TBool aIsOutgoingMessage |
IMPORT_C CSuplPosPayload * | PosPayload | ( | ) |
Returns the positioning payload (for received messages). The calling method becomes responsible for destruction of the pos payload.
Returns the decoded positioning payload for received SUPL POS messages. Note that ownership of the position payload is returned - the calling entity becomes responsible for the destruction of the positioning payload.
IMPORT_C void | SetPosPayload | ( | CSuplPosPayload * | aPayload | ) |
Assigns the payload RRLP message (for outgoing messages)
Assigns the payload RRLP message for outgoing messages. CSuplPos instance takes immediate ownership of the CSuplPosPayload object.
CSuplPosPayload * aPayload |
IMPORT_C TInt | SetVelocity | ( | const TPositionInfoBase & | aPosInfo | ) |
Set the velocity parameter (for outgoing messages)
Set the velocity parameter. The parameter TPositionInfoBase must contain course information (eg be TPositionCourseInfo or derived) for the velocity parameter to be set.
const TPositionInfoBase & aPosInfo |
CSuplPos & | operator= | ( | const CSuplPos & | ) | [private] |
Prohibit assigment operator
const CSuplPos & |
ASN1PERDecodeBuffer * | iDecodeBuffer | [private] |
Objects used in decoding of the positioning payload
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.