CSuplPosPayload Class Reference

class CSuplPosPayload : public CBase

CSuplPosPayload is an abstract class providing a base definition for SUPL positioning payload messages either received or under construction for sending. SUPL supports positioning using the RRLP, TIA-801 and RRC protocols. This reference SUPL Protocol Manager implementation supports only the RRLP positioning protocol.

Concrete classes derived from this class represent each of the supported positioning protocol message types, and provide methods for accessing and setting their parameters.

Inherits from

Constructor & Destructor Documentation

CSuplPosPayload(TSuplPosPayloadType, TBool)

CSuplPosPayload ( TSuplPosPayloadType aType,
TBool aIsOutgoingMsg
) [protected]

Default Constructor

Parameters

TSuplPosPayloadType aType
TBool aIsOutgoingMsg

CSuplPosPayload(const CSuplPosPayload &)

CSuplPosPayload ( const CSuplPosPayload & ) [private]

Prohibit copy constructor

Parameters

const CSuplPosPayload &

~CSuplPosPayload()

~CSuplPosPayload ( ) [virtual]

Default Constructor

Member Functions Documentation

DecodePosPayloadL(const HBufC8 *, TInt &)

IMPORT_C CSuplPosPayload * DecodePosPayloadL ( const HBufC8 * aPosPayload,
TInt & aError
) [static]

Decodes a pos payload and returns a CSuplPosPayload object containing the decoded payload

DecodePosPayload

decodes a pospayload and returns a CSuplPosPayload* (eg CRrlpMeasurePositionRequest*) containing the decoded rrlp payload

Parameters

const HBufC8 * aPosPayload an asn1-encoded rrlp pos payload. Caller takes ownership.
TInt & aError any error encountered

EncodeToL(TPtr8 &)

TInt EncodeToL ( TPtr8 & aBuf ) [virtual]

Encode a populated outgoing message

EncodeToL()

Encode a populated outgoing message

Parameters

TPtr8 & aBuf the destination buffer to encode to

LogMessageContent()

void LogMessageContent ( ) [virtual]

Prints the content of the data structure to the logger

Prints the content payload data structure to the logger Default implementation logs nothing and should be overridden

MessageType()

IMPORT_C CSuplPosPayload::TSuplPosPayloadType MessageType ( )

Returns the message type

MessageType()

operator=(const CSuplPosPayload &)

CSuplPosPayload & operator= ( const CSuplPosPayload & ) [private]

Prohibit assigment operator

Parameters

const CSuplPosPayload &

Member Enumerations Documentation

Enum _TSuplPosPayloadType

Enumerators

ERrlpAssistanceData = 0
ERrlpAssistanceDataAck
ERrlpMeasurePositionReq
ERrlpMeasurePositionResp
ERrlpProtocolError
EPosPayloadMessageTypeLimit

Member Type Definitions Documentation

Typedef TSuplPosPayloadType

typedef TUint32 TSuplPosPayloadType

Pos Payload identifiers

Member Data Documentation

TBool iIsOutgoingMessage

TBool iIsOutgoingMessage [protected]

TSuplPosPayloadType iMessageType

TSuplPosPayloadType iMessageType [protected]

Message type identifiers