| 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
| Public Member Functions | |
|---|---|
| ~CSdpFmtAttributeField () | |
| IMPORT_C RStringF | Attribute () |
| const CSdpAttributeField * | AttributeField () |
| IMPORT_C CSdpFmtAttributeField * | CloneL () |
| IMPORT_C CSdpFmtAttributeField * | DecodeL (const TDesC8 &) |
| IMPORT_C CSdpFmtAttributeField * | DecodeLC (const TDesC8 &) |
| IMPORT_C void | EncodeL ( RWriteStream &) |
| void | ExternalizeL ( RWriteStream &) |
| IMPORT_C const TDesC8 & | Format () |
| CSdpFmtAttributeField * | InternalizeL ( RReadStream &) |
| IMPORT_C CSdpFmtAttributeField * | NewL ( RStringF , const TDesC8 &, const TDesC8 &) |
| IMPORT_C CSdpFmtAttributeField * | NewLC ( RStringF , const TDesC8 &, const TDesC8 &) |
| IMPORT_C void | SetL ( RStringF , const TDesC8 &, const TDesC8 &) |
| IMPORT_C const TDesC8 & | Value () |
| IMPORT_C TBool | operator== (const CSdpFmtAttributeField &) |
| Private Member Functions | |
|---|---|
| CSdpFmtAttributeField () | |
| void | ConstructL (const TDesC8 &) |
| void | ConstructL ( RStringF , const TDesC8 &, const TDesC8 &) |
| void | DecodeFormatL (const TDesC8 &) |
| void | DoInternalizeL ( RReadStream &) |
| void | FormatValueParamsL ( CSdpAttributeField *) |
| void | __DbgTestInvariant () |
| Private Attributes | |
|---|---|
| CSdpAttributeField * | iAttributeField |
| TPtrC8 | iFormat |
| RStringPool | iPool |
| TPtrC8 | iValuePart |
| IMPORT_C | ~CSdpFmtAttributeField | ( | ) |
Deletes the resources held by the instance.
| IMPORT_C CSdpFmtAttributeField * | CloneL | ( | ) | const |
Creates a new instance that is equal to the target.
| void | ConstructL | ( | const TDesC8 & | aText | ) | [private] |
Second phase construction
| const TDesC8 & aText | A string containing a correctly formatted field value terminated by a CRLF. |
| void | ConstructL | ( | RStringF | aAttribute, |
| const TDesC8 & | aFormat, | |||
| const TDesC8 & | aValue | |||
| ) | [private] | |||
Second phase construction
| 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. |
| void | DecodeFormatL | ( | const TDesC8 & | aText | ) | [private] |
Decode format parameter from string
| const TDesC8 & aText | A text includeing format parameter. |
| IMPORT_C CSdpFmtAttributeField * | DecodeL | ( | const TDesC8 & | aText | ) | [static] |
Constructs a new media format level attribute field.
| const TDesC8 & aText | A string containing a correctly formatted field value terminated by a CRLF. |
| IMPORT_C CSdpFmtAttributeField * | DecodeLC | ( | const TDesC8 & | aText | ) | [static] |
Constructs a new media format level attribute field and adds the pointer to the cleanup stack.
| const TDesC8 & aText | A string containing a correctly formatted field value terminated by a CRLF. |
| void | DoInternalizeL | ( | RReadStream & | aStream | ) | [private] |
Creates object from the stream data. Does the "2nd phase construction" of internalization.
| RReadStream & aStream | Stream where the object's state will be read |
| IMPORT_C void | EncodeL | ( | RWriteStream & | aStream | ) | const |
Outputs the field formatted according to SDP syntax and including the terminating CRLF.
| RWriteStream & aStream | Stream used for output. On return the stream includes correctly formatted attribute field. |
| void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Externalizes the object to stream
| RWriteStream & aStream | Stream where the object's state will be stored |
| void | FormatValueParamsL | ( | CSdpAttributeField * | aField | ) | [private] |
Formats value parameters
| CSdpAttributeField * aField | Attribute field object |
| CSdpFmtAttributeField * | InternalizeL | ( | RReadStream & | aStream | ) | [static] |
Creates object from the stream data
| RReadStream & aStream | Stream where the object's state will be read |
| IMPORT_C CSdpFmtAttributeField * | NewL | ( | RStringF | aAttribute, |
| const TDesC8 & | aFormat, | |||
| const TDesC8 & | aValue | |||
| ) | [static] | |||
Constructs a new media level format attribute field.
| 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. |
| IMPORT_C CSdpFmtAttributeField * | NewLC | ( | RStringF | aAttribute, |
| const TDesC8 & | aFormat, | |||
| const TDesC8 & | aValue | |||
| ) | [static] | |||
Constructs a new media format level attribute field and adds the pointer to the cleanup stack.
| 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. |
| IMPORT_C void | SetL | ( | RStringF | aAttribute, |
| const TDesC8 & | aFormat, | |||
| const TDesC8 & | aValue | |||
| ) | ||||
Sets the attribute, format/payload type and attribute value.
| 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. |
| IMPORT_C TBool | operator== | ( | const CSdpFmtAttributeField & | aObj | ) | const |
Compares this instance to another for equality.
| const CSdpFmtAttributeField & aObj | The instance to compare to. |
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.