CSuplPos Class Reference
class CSuplPos : public CSuplMessageBase |
Encapsulation for outgoing/received SUPL POS messages.
Inherited Functions |
---|
| CBase::CBase() |
| CBase::Delete(CBase *) |
| CBase::Extension_(TUint,TAny *&,TAny *) |
| CBase::operator new(TUint) |
| CBase::operator new(TUint,TAny *) |
| CBase::operator new(TUint,TLeave) |
| CBase::operator new(TUint,TLeave,TUint) |
| CBase::operator new(TUint,TUint) |
| CBase::~CBase() |
| CSuplMessageBase::CSuplMessageBase(TSuplMessageType,TBool) |
| CSuplMessageBase::EncodeAltitude(const TReal32 &) |
| CSuplMessageBase::EncodeToL(TPtr8 &) |
| CSuplMessageBase::GetSessionId(CSuplSessionId &) |
| CSuplMessageBase::GetVersion(CSuplVersion &) |
| CSuplMessageBase::LeaveIfAllocErrorL() |
| CSuplMessageBase::LogMessageContent() |
| CSuplMessageBase::MessageType() |
| CSuplMessageBase::PopulateLocationId(const CSuplLocationId &,ASN1T_LocationId &) |
| CSuplMessageBase::PopulatePosition(const TPositionInfoBase &,ASN1T_Position &) |
| CSuplMessageBase::PopulateSetCapabilities(const TLbsNetPosCapabilities &,ASN1T_SETCapabilities &) |
| CSuplMessageBase::PopulateVelocity(const TCourse &,ASN1T_Velocity &) |
| CSuplMessageBase::ProcessAsn1Error(TInt) |
| CSuplMessageBase::SetDecodedData(ASN1T_ULP_PDU *,ASN1C_ULP_PDU *) |
| CSuplMessageBase::SetSessionId(CSuplSessionId &) |
| CSuplMessageBase::SetVersion(CSuplVersion &) |
| CSuplMessageBase::Uncertainty(const TReal32 &) |
| CSuplMessageBase::UncertaintyAltitude(const TReal32 &) |
| CSuplMessageBase::~CSuplMessageBase() |
Constructor & Destructor Documentation
CSuplPos(TBool)
CSuplPos | ( | TBool | aIsOutgoingMessage | ) | [private] |
CSuplPos(const CSuplPos &)
Prohibit copy constructor
Member Functions Documentation
ConstructL()
void | ConstructL | ( | ) | [private] |
second stage constructor
Second stage constructor
ConvertHorSpeedAccuracyToMetersPerSecond(TUint)
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
Parameters
TUint aSpeedAccuracy | - the received, encoded uncertainty speed N. |
ConvertHorSpeedToMetersPerSecond(TUint)
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
Parameters
TUint aSpeed | - the received, encoded speed N. |
DecodePosPayloadL(TInt &)
void | DecodePosPayloadL | ( | TInt & | aError | ) | |
Decodes the content of the positioning payload (for received messages) Called by CSuplAsn1DecoderImpl::DecodeL() and not intended for DLL export
DecodePosPayloadL()
Decodes the content of received positioning payload. Must be called before content of the payload may be accessed
GetVelocity(TPositionInfoBase &)
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.
LogPayload()
Prints the content payload data structure to the logger
NewL(TBool)
Static factory constructor
PosPayload()
Returns the positioning payload (for received messages). The calling method becomes responsible for destruction of the pos payload.
PosPayload()
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.
SetPosPayload(CSuplPosPayload *)
Assigns the payload RRLP message (for outgoing messages)
SetPosPayload()
Assigns the payload RRLP message for outgoing messages. CSuplPos instance takes immediate ownership of the CSuplPosPayload object.
SetVelocity(const TPositionInfoBase &)
VelocityPresent()
IMPORT_C TBool | VelocityPresent | ( | ) | |
Returns ETrue if the position parameter is present (for received messages)
VelocityPresent()
operator=(const CSuplPos &)
Prohibit assigment operator
Member Data Documentation
ASN1PERDecodeBuffer * iDecodeBuffer
Objects used in decoding of the positioning payload
CSuplPosPayload * iPosPayload
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.