API published in: S60 2nd Ed
Link against: sdpcodec.lib
None
#include <sdpmediafield.h>
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.
Public Member Functions | |
| IMPORT_C | ~CSdpMediaField () |
| Deletes the resources held by the instance. | |
| IMPORT_C void | EncodeL (RWriteStream &aStream, TBool aRecurse=ETrue) const |
| Outputs the field formatted according to SDP syntax and including the terminating CRLF. | |
| IMPORT_C CSdpMediaField * | CloneL (TBool aRecurse=ETrue) const |
| Creates a new instance that is equal to the target. | |
| IMPORT_C TBool | operator== (const CSdpMediaField &aObj) const |
| Compares this instance to another for equality. | |
| IMPORT_C TBool | IsValid () const |
| Checks the consistency between the media field and it's subfields. | |
| IMPORT_C RStringF | Media () const |
| Gets the media type. | |
| IMPORT_C void | SetMediaL (RStringF aMedia) |
| Sets the media type. | |
| IMPORT_C RStringF | Protocol () const |
| Gets the media protocol. | |
| IMPORT_C void | SetProtocolL (RStringF aProtocol) |
| Sets the media protocol. | |
| IMPORT_C TUint | Port () const |
| Gets the port number. | |
| IMPORT_C void | SetPortL (TUint aPort) |
| Sets the port number. | |
| IMPORT_C TUint | PortCount () const |
| Gets the port count. | |
| IMPORT_C void | SetPortCountL (TUint aCount) |
| Sets the port count. | |
| IMPORT_C const TDesC8 & | FormatList () const |
| Gets the format list. | |
| IMPORT_C void | SetFormatListL (const TDesC8 &aValue) |
| Sets the format list. | |
| IMPORT_C const TDesC8 & | Info () const |
| Return the media level info field value. | |
| IMPORT_C void | SetInfoL (const TDesC8 &aValue) |
| Sets the media level info field value. | |
| IMPORT_C CSdpKeyField * | Key () |
| Gets the media level encryption key field. | |
| IMPORT_C const CSdpKeyField * | Key () const |
| Gets the media level encryption key field. | |
| IMPORT_C void | SetKey (CSdpKeyField *aObj) |
| Sets or removes the media level encryption key field. | |
| IMPORT_C RPointerArray< CSdpFmtAttributeField > & | FormatAttributeFields () |
| Gets the set of media format level attributes. | |
| IMPORT_C RPointerArray< CSdpAttributeField > & | AttributeFields () |
| Gets the set of media level, format independent attributes. | |
| IMPORT_C RPointerArray< CSdpBandwidthField > & | BandwidthFields () |
| Gets the set of media level bandwidth fields. | |
| IMPORT_C RPointerArray< CSdpConnectionField > & | ConnectionFields () |
| Gets the set of media level connection fields. | |
| IMPORT_C void | RemoveFormatL (const TDesC8 &aFormat) |
| Removes a specific format from the media description. | |
| IMPORT_C void | KeepFormatL (const TDesC8 &aFormat) |
| Removes all formats except one from the media description. | |
| IMPORT_C void | RejectMedia () |
| Sets this media description into rejected state. | |
| TBool | IsContactPresent () const |
| Shows if contact is present. | |
| void | ExternalizeL (RWriteStream &aStream) const |
| Externalizes the object to stream. | |
Static Public Member Functions | |
| static IMPORT_C CSdpMediaField * | DecodeL (const TDesC8 &aText, TBool aRecurse=ETrue) |
| Constructs a new media description field. | |
| static IMPORT_C CSdpMediaField * | DecodeLC (const TDesC8 &aText, TBool aRecurse=ETrue) |
| Constructs a new media description field and adds the pointer to the cleanup stack. | |
| static IMPORT_C CSdpMediaField * | NewL (RStringF aMedia, TUint aPort, RStringF aProtocol, const TDesC8 &aFormatList) |
| Constructs a new media description field. | |
| static IMPORT_C CSdpMediaField * | NewLC (RStringF aMedia, TUint aPort, RStringF aProtocol, const TDesC8 &aFormatList) |
| Constructs a new media description field and adds the pointer to the cleanup stack. | |
| static CSdpMediaField * | InternalizeL (RReadStream &aStream) |
| Creates object from the stream data. | |
|
|
Deletes the resources held by the instance. |
|
|
Gets the set of media level, format independent attributes. This array is used directly for element insertion and removal. The objects referenced from the array are owned by the media field instance and must not be deleted. An object can be removed from the media description by setting the corresponding element to zero. By doing so, the calling party receives ownership of the removed object.
|
|
|
Gets the set of media level bandwidth fields. This array is used directly for element insertion and removal. The objects referenced from the array are owned by the media field instance and must not be deleted. An object can be removed from the media description by setting the corresponding element to zero. By doing so, the calling party receives ownership of the removed object.
|
|
|
Creates a new instance that is equal to the target. Optionally also related subfields are cloned.
|
|
|
Gets the set of media level connection fields. This array is used directly for element insertion and removal. The objects referenced from the array are owned by the media field instance and must not be deleted. An object can be removed from the media description by setting the corresponding element to zero. By doing so, the calling party receives ownership of the removed object.
|
| ||||||||||||
|
Constructs a new media description field.
|
| ||||||||||||
|
Constructs a new media description field and adds the pointer to the cleanup stack.
|
| ||||||||||||
|
Outputs the field formatted according to SDP syntax and including the terminating CRLF. Optionally output also the related media level fields.
|
|
|
Externalizes the object to stream.
|
|
|
Gets the set of media format level attributes. This array is used directly for element insertion and removal. The objects referenced from the array are owned by the media field instance and must not be deleted. An object can be removed from the media description by setting the corresponding element to zero. By doing so, the calling party receives ownership of the removed object.
|
|
|
Gets the format list.
|
|
|
Return the media level info field value.
|
|
|
Creates object from the stream data.
|
|
|
Shows if contact is present.
|
|
|
Checks the consistency between the media field and it's subfields. In particular, this function checks that each format specific attribute is related to a format in the format list of the media field.
|
|
|
Removes all formats except one from the media description. The function will set the format list to only contain the one format to keep and then delete all format level attributes that are related to the removed formats. If the format is not found from the format list, it is added there. If there are no format level attributes for the specified format, the format level attribute set will be empty.
|
|
|
Gets the media level encryption key field.
|
|
|
Gets the media level encryption key field. Note, that the ownership is not transferred and the instance must not be deleted by the caller.
|
|
|
Gets the media type.
|
| ||||||||||||||||||||
|
Constructs a new media description field. The optional portcount component of the field is initialized to 1.
|
| ||||||||||||||||||||
|
Constructs a new media description field and adds the pointer to the cleanup stack. The optional portcount component of the field is initialized to 1.
|
|
|
Compares this instance to another for equality. Subfields are included in the comparison if present.
|
|
|
Gets the port number.
|
|
|
Gets the port count.
|
|
|
Gets the media protocol.
|
|
|
Sets this media description into rejected state. The rejected state is defined by the offer/answer model in RFC3264. The function sets the port number to 0 and removes all formats except one. The remaining format is determined by the implementation. |
|
|
Removes a specific format from the media description. The function will remove the named format from the format list if found and then delete all format level attributes of type CSdpFmtAttributeField related to the removed format.
|
|
|
Sets the format list. The format list should contain one or more format tokens separated by a single whitespace character.
|
|
|
Sets the media level info field value.
|
|
|
Sets or removes the media level encryption key field.
|
|
|
Sets the media type.
|
|
|
Sets the port count.
|
|
|
Sets the port number.
|
|
|
Sets the media protocol.
|