CSdpFmtAttributeField Class Reference

class CSdpFmtAttributeField : public CBase

This class encapsulates the attribute field of the Session Description Protocol for media format/payload type level attributes. Media and session level attributes are supported by the CSdpAttributeField class.

The normative reference for correct formatting and values is draft-ietf-mmusic-sdp-new-14 unless specified otherwise in member documentation. The implementation supports this normative reference, but does not enforce it fully.

sdpcodec.lib

Inherits from

  • CSdpFmtAttributeField

Constructor & Destructor Documentation

CSdpFmtAttributeField()

CSdpFmtAttributeField()[private]

Constructor

~CSdpFmtAttributeField()

IMPORT_C~CSdpFmtAttributeField()

Deletes the resources held by the instance.

Member Functions Documentation

Attribute()

IMPORT_C RStringFAttribute()const

Gets the attribute.

AttributeField()

const CSdpAttributeField *AttributeField()const

Returns attribute field

CloneL()

IMPORT_C CSdpFmtAttributeField *CloneL()const

Creates a new instance that is equal to the target.

ConstructL(const TDesC8 &)

voidConstructL(const TDesC8 &aText)[private]

Second phase construction

Parameters

const TDesC8 & aTextA string containing a correctly formatted field value terminated by a CRLF.

ConstructL(RStringF, const TDesC8 &, const TDesC8 &)

voidConstructL(RStringFaAttribute,
const TDesC8 &aFormat,
const TDesC8 &aValue
)[private]

Second phase construction

Parameters

RStringF aAttributeThe attribute from the pre-defined SDP string table or defined by the user
const TDesC8 & aFormatA valid format/payload identifier used in the format list of the media description.
const TDesC8 & aValueA valid attribute value or an empty descriptor to omit the value part.

DecodeFormatL(const TDesC8 &)

voidDecodeFormatL(const TDesC8 &aText)[private]

Decode format parameter from string

Parameters

const TDesC8 & aTextA text includeing format parameter.

DecodeL(const TDesC8 &)

IMPORT_C CSdpFmtAttributeField *DecodeL(const TDesC8 &aText)[static]

Constructs a new media format level attribute field.

Parameters

const TDesC8 & aTextA string containing a correctly formatted field value terminated by a CRLF.

DecodeLC(const TDesC8 &)

IMPORT_C CSdpFmtAttributeField *DecodeLC(const TDesC8 &aText)[static]

Constructs a new media format level attribute field and adds the pointer to the cleanup stack.

Parameters

const TDesC8 & aTextA string containing a correctly formatted field value terminated by a CRLF.

DoInternalizeL(RReadStream &)

voidDoInternalizeL(RReadStream &aStream)[private]

Creates object from the stream data. Does the "2nd phase construction" of internalization.

Parameters

RReadStream & aStreamStream where the object's state will be read

EncodeL(RWriteStream &)

IMPORT_C voidEncodeL(RWriteStream &aStream)const

Outputs the field formatted according to SDP syntax and including the terminating CRLF.

Parameters

RWriteStream & aStreamStream used for output. On return the stream includes correctly formatted attribute field.

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aStream)const

Externalizes the object to stream

Parameters

RWriteStream & aStreamStream where the object's state will be stored

Format()

IMPORT_C const TDesC8 &Format()const

Gets the format.

FormatValueParamsL(CSdpAttributeField *)

voidFormatValueParamsL(CSdpAttributeField *aField)[private]

Formats value parameters

Parameters

CSdpAttributeField * aFieldAttribute field object

InternalizeL(RReadStream &)

CSdpFmtAttributeField *InternalizeL(RReadStream &aStream)[static]

Creates object from the stream data

Parameters

RReadStream & aStreamStream where the object's state will be read

NewL(RStringF, const TDesC8 &, const TDesC8 &)

IMPORT_C CSdpFmtAttributeField *NewL(RStringFaAttribute,
const TDesC8 &aFormat,
const TDesC8 &aValue
)[static]

Constructs a new media level format attribute field.

Parameters

RStringF aAttributeThe attribute name. It can be a pre-defined name in the SDP string pool or defined by the client.
const TDesC8 & aFormatA valid format/payload identifier used in the format list of the media description.
const TDesC8 & aValueA valid attribute value or an empty descriptor to omit the value part.

NewLC(RStringF, const TDesC8 &, const TDesC8 &)

IMPORT_C CSdpFmtAttributeField *NewLC(RStringFaAttribute,
const TDesC8 &aFormat,
const TDesC8 &aValue
)[static]

Constructs a new media format level attribute field and adds the pointer to the cleanup stack.

Parameters

RStringF aAttributeThe attribute name. It can be a pre-defined name in the SDP string pool or defined by the client.
const TDesC8 & aFormatA valid format/payload identifier used in the format list of the media description.
const TDesC8 & aValueA valid attribute value or an empty descriptor to omit the value part.

SetL(RStringF, const TDesC8 &, const TDesC8 &)

IMPORT_C voidSetL(RStringFaAttribute,
const TDesC8 &aFormat,
const TDesC8 &aValue
)

Sets the attribute, format/payload type and attribute value.

leave
KErrSdpCodecMediaAttributeField if aAttribute is not rtpmap or fmtp attribute.

Parameters

RStringF aAttributeA valid attribute name. It can be a pre-defined name in the SDP string pool or defined by the client.
const TDesC8 & aFormatA valid format/payload identifier used in the formatlist of the media description.
const TDesC8 & aValueA valid attribute value or an empty descriptor to omit the value part.

Value()

IMPORT_C const TDesC8 &Value()const

Gets the attribute value.

__DbgTestInvariant()

void__DbgTestInvariant()const [private]

operator==(const CSdpFmtAttributeField &)

IMPORT_C TBooloperator==(const CSdpFmtAttributeField &aObj)const

Compares this instance to another for equality.

Parameters

const CSdpFmtAttributeField & aObjThe instance to compare to.

Member Data Documentation

CSdpAttributeField * iAttributeField

CSdpAttributeField *iAttributeField[private]

TPtrC8 iFormat

TPtrC8 iFormat[private]

Pointer to the format part

RStringPool iPool

RStringPool iPool[private]

TPtrC8 iValuePart

TPtrC8 iValuePart[private]

Pointer to the format parameters