#include <mw/sipcontenttypeheader.h>
| class CSIPContentTypeHeader : public CSIPParameterHeaderBase |
| Public Member Functions | |
|---|---|
| ~CSIPContentTypeHeader() | |
| RPointerArray< CSIPHeaderBase > | BaseDecodeL(const TDesC8 &) |
| virtual IMPORT_C CSIPHeaderBase * | CloneL() |
| virtual RStringF | CompactName() |
| IMPORT_C CSIPContentTypeHeader * | DecodeL(const TDesC8 &) |
| virtual TBool | HasCompactName() |
| IMPORT_C CSIPHeaderBase * | InternalizeValueL(RReadStream &) |
| IMPORT_C const TDesC8 & | MediaSubtype() |
| IMPORT_C const TDesC8 & | MediaType() |
| virtual IMPORT_C RStringF | Name() |
| IMPORT_C CSIPContentTypeHeader * | NewL(const TDesC8 &, const TDesC8 &) |
| IMPORT_C CSIPContentTypeHeader * | NewLC(const TDesC8 &, const TDesC8 &) |
| virtual TPreferredPlace | PreferredPlaceInMessage() |
| IMPORT_C void | SetMediaSubtypeL(const TDesC8 &) |
| IMPORT_C void | SetMediaTypeL(const TDesC8 &) |
| Inherited Attributes | |
|---|---|
| CSIPHeaderBase::iLink | |
| Inherited Enumerations | |
|---|---|
| CSIPHeaderBase:TPreferredPlace | |
Class provides functions for setting and getting media types and parameters in SIP "Content-Type" header.
| IMPORT_C | ~CSIPContentTypeHeader | ( | ) |
Destructor, deletes the resources of CSIPContentTypeHeader.
| RPointerArray< CSIPHeaderBase > | BaseDecodeL | ( | const TDesC8 & | aValue | ) | [static] |
| IMPORT_C CSIPHeaderBase * | CloneL | ( | ) | const [virtual] |
Reimplemented from CSIPHeaderBase::CloneL()const
From CSIPHeaderBase CloneL
| RStringF | CompactName | ( | ) | const [virtual] |
Reimplemented from CSIPHeaderBase::CompactName()const
| IMPORT_C CSIPContentTypeHeader * | DecodeL | ( | const TDesC8 & | aValue | ) | [static] |
Constructs a CSIPContentTypeHeader from textual representation of the header's value part.
| Parameter | Description |
|---|---|
| aValue | a value part of a "Content-Type"-header |
Returns: a new instance of CSIPContentTypeHeader
| TBool | HasCompactName | ( | ) | const [virtual] |
Reimplemented from CSIPHeaderBase::HasCompactName()const
| IMPORT_C CSIPHeaderBase * | InternalizeValueL | ( | RReadStream & | aReadStream | ) | [static] |
Constructs an instance of a CSIPContentTypeHeader from a RReadStream
| Parameter | Description |
|---|---|
| aReadStream | a stream containing the value of the externalized header object (header name not included). |
Returns: an instance of a CSIPContentTypeHeader
| IMPORT_C const TDesC8 & | MediaSubtype | ( | ) | const |
Gets the media subtype from the "Content-Type" header
Returns: a media subtype
| IMPORT_C const TDesC8 & | MediaType | ( | ) | const |
Gets the media type from the "Content-Type" header
Returns: a media type
| IMPORT_C RStringF | Name | ( | ) | const [virtual] |
Reimplemented from CSIPHeaderBase::Name()const
From CSIPHeaderBase Name
| IMPORT_C CSIPContentTypeHeader * | NewL | ( | const TDesC8 & | aMediaType, |
| const TDesC8 & | aMediaSubtype | |||
| ) | [static] | |||
Creates a new instance of CSIPContentTypeHeader
| Parameter | Description |
|---|---|
| aMediaType | a media type to set. For example "application" |
| aMediaSubtype | a media subtype to set. For example "sdp" |
Returns: a new instance of CSIPContentTypeHeader
| IMPORT_C CSIPContentTypeHeader * | NewLC | ( | const TDesC8 & | aMediaType, |
| const TDesC8 & | aMediaSubtype | |||
| ) | [static] | |||
Creates a new instance of CSIPContentTypeHeader and puts it onto the cleanup stack
| Parameter | Description |
|---|---|
| aMediaType | a media type to set. For example "application" |
| aMediaSubtype | a media subtype to set. For example "sdp" |
Returns: a new instance of CSIPContentTypeHeader
| TPreferredPlace | PreferredPlaceInMessage | ( | ) | const [virtual] |
Reimplemented from CSIPHeaderBase::PreferredPlaceInMessage()const
| IMPORT_C void | SetMediaSubtypeL | ( | const TDesC8 & | aMediaSubtype | ) |
Sets the media subtype in the "Content-Type" header
| Parameter | Description |
|---|---|
| aMediaSubtype | a media subtype |
| IMPORT_C void | SetMediaTypeL | ( | const TDesC8 & | aMediaType | ) |
Sets the media type in the "Content-Type" header
| Parameter | Description |
|---|---|
| aMediaType | a media type |