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
Constructor & Destructor Documentation
CSdpFmtAttributeField()
CSdpFmtAttributeField | ( | ) | [private] |
~CSdpFmtAttributeField()
IMPORT_C | ~CSdpFmtAttributeField | ( | ) | |
Deletes the resources held by the instance.
Member Functions Documentation
CloneL()
Creates a new instance that is equal to the target.
ConstructL(const TDesC8 &)
void | ConstructL | ( | const TDesC8 & | aText | ) | [private] |
Second phase construction
Parameters
const TDesC8 & aText | A string containing a correctly formatted field value terminated by a CRLF. |
ConstructL(RStringF, const TDesC8 &, const TDesC8 &)
Second phase construction
Parameters
RStringF aAttribute | The attribute from the pre-defined SDP string table or defined by the user |
const TDesC8 & aFormat | A valid format/payload identifier used in the format list of the media description. |
const TDesC8 & aValue | A valid attribute value or an empty descriptor to omit the value part. |
DecodeFormatL(const TDesC8 &)
void | DecodeFormatL | ( | const TDesC8 & | aText | ) | [private] |
Decode format parameter from string
Parameters
const TDesC8 & aText | A text includeing format parameter. |
DecodeL(const TDesC8 &)
Constructs a new media format level attribute field.
Parameters
const TDesC8 & aText | A string containing a correctly formatted field value terminated by a CRLF. |
DecodeLC(const TDesC8 &)
Constructs a new media format level attribute field and adds the pointer to the cleanup stack.
Parameters
const TDesC8 & aText | A string containing a correctly formatted field value terminated by a CRLF. |
DoInternalizeL(RReadStream &)
Creates object from the stream data. Does the "2nd phase construction" of internalization.
Parameters
RReadStream & aStream | Stream where the object's state will be read |
EncodeL(RWriteStream &)
Outputs the field formatted according to SDP syntax and including the terminating CRLF.
Parameters
RWriteStream & aStream | Stream used for output. On return the stream includes correctly formatted attribute field. |
ExternalizeL(RWriteStream &)
Externalizes the object to stream
Parameters
RWriteStream & aStream | Stream where the object's state will be stored |
Format()
IMPORT_C const TDesC8 & | Format | ( | ) | const |
FormatValueParamsL(CSdpAttributeField *)
InternalizeL(RReadStream &)
Creates object from the stream data
Parameters
RReadStream & aStream | Stream where the object's state will be read |
NewL(RStringF, const TDesC8 &, const TDesC8 &)
Constructs a new media level format attribute field.
Parameters
RStringF aAttribute | The attribute name. It can be a pre-defined name in the SDP string pool or defined by the client. |
const TDesC8 & aFormat | A valid format/payload identifier used in the format list of the media description. |
const TDesC8 & aValue | A valid attribute value or an empty descriptor to omit the value part. |
NewLC(RStringF, const TDesC8 &, const TDesC8 &)
Constructs a new media format level attribute field and adds the pointer to the cleanup stack.
Parameters
RStringF aAttribute | The attribute name. It can be a pre-defined name in the SDP string pool or defined by the client. |
const TDesC8 & aFormat | A valid format/payload identifier used in the format list of the media description. |
const TDesC8 & aValue | A valid attribute value or an empty descriptor to omit the value part. |
SetL(RStringF, const TDesC8 &, const TDesC8 &)
Sets the attribute, format/payload type and attribute value.
-
leave
- KErrSdpCodecMediaAttributeField if aAttribute is not rtpmap or fmtp attribute.
Parameters
RStringF aAttribute | A valid attribute name. It can be a pre-defined name in the SDP string pool or defined by the client. |
const TDesC8 & aFormat | A valid format/payload identifier used in the formatlist of the media description. |
const TDesC8 & aValue | A 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 &)
Compares this instance to another for equality.
Member Data Documentation
CSdpAttributeField * iAttributeField
TPtrC8
iFormat
Pointer to the format part
TPtrC8
iValuePart
Pointer to the format parameters
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.