S60 3rd Edition API Reference: CSIPContentTypeHeader Class Reference

CSIPContentTypeHeader Class Reference

API published in: S60 2nd Ed

Link against: sipcodec.lib

Capability Information

Required Capabilities

None


#include <sipcontenttypeheader.h>

Inherits CSIPParameterHeaderBase.


Detailed Description

PublishedAll
Released
Class provides functions for setting and getting media types and parameters in SIP "Content-Type" header.

Public Member Functions

IMPORT_C ~CSIPContentTypeHeader ()
 Destructor, deletes the resources of CSIPContentTypeHeader.
IMPORT_C const TDesC8 & MediaType () const
 Gets the media type from the "Content-Type" header.
IMPORT_C void SetMediaTypeL (const TDesC8 &aMediaType)
 Sets the media type in the "Content-Type" header.
IMPORT_C const TDesC8 & MediaSubtype () const
 Gets the media subtype from the "Content-Type" header.
IMPORT_C void SetMediaSubtypeL (const TDesC8 &aMediaSubtype)
 Sets the media subtype in the "Content-Type" header.
IMPORT_C CSIPHeaderBaseCloneL () const
 From CSIPHeaderBase CloneL.
IMPORT_C RStringF Name () const
 From CSIPHeaderBase Name.
TBool HasCompactName () const
RStringF CompactName () const
TPreferredPlace PreferredPlaceInMessage () const

Static Public Member Functions

static IMPORT_C CSIPContentTypeHeaderDecodeL (const TDesC8 &aValue)
 Constructs a CSIPContentTypeHeader from textual representation of the header's value part.
static IMPORT_C CSIPContentTypeHeaderNewL (const TDesC8 &aMediaType, const TDesC8 &aMediaSubtype)
 Creates a new instance of CSIPContentTypeHeader.
static IMPORT_C CSIPContentTypeHeaderNewLC (const TDesC8 &aMediaType, const TDesC8 &aMediaSubtype)
 Creates a new instance of CSIPContentTypeHeader and puts it onto the cleanup stack.
static IMPORT_C CSIPHeaderBaseInternalizeValueL (RReadStream &aReadStream)
 Constructs an instance of a CSIPContentTypeHeader from a RReadStream.
static RPointerArray< CSIPHeaderBaseBaseDecodeL (const TDesC8 &aValue)

Constructor & Destructor Documentation

IMPORT_C CSIPContentTypeHeader::~CSIPContentTypeHeader  ) 
 

Destructor, deletes the resources of CSIPContentTypeHeader.


Member Function Documentation

static RPointerArray<CSIPHeaderBase> CSIPContentTypeHeader::BaseDecodeL const TDesC8 &  aValue  )  [static]
 
IMPORT_C CSIPHeaderBase* CSIPContentTypeHeader::CloneL  )  const [virtual]
 

From CSIPHeaderBase CloneL.

Implements CSIPHeaderBase.

RStringF CSIPContentTypeHeader::CompactName  )  const [virtual]
 

Reimplemented from CSIPHeaderBase.

static IMPORT_C CSIPContentTypeHeader* CSIPContentTypeHeader::DecodeL const TDesC8 &  aValue  )  [static]
 

Constructs a CSIPContentTypeHeader from textual representation of the header's value part.

Parameters:
aValue a value part of a "Content-Type"-header
Returns:
a new instance of CSIPContentTypeHeader
TBool CSIPContentTypeHeader::HasCompactName  )  const [virtual]
 

Reimplemented from CSIPHeaderBase.

static IMPORT_C CSIPHeaderBase* CSIPContentTypeHeader::InternalizeValueL RReadStream &  aReadStream  )  [static]
 

Constructs an instance of a CSIPContentTypeHeader from a RReadStream.

Parameters:
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& CSIPContentTypeHeader::MediaSubtype  )  const
 

Gets the media subtype from the "Content-Type" header.

Returns:
a media subtype
IMPORT_C const TDesC8& CSIPContentTypeHeader::MediaType  )  const
 

Gets the media type from the "Content-Type" header.

Returns:
a media type
IMPORT_C RStringF CSIPContentTypeHeader::Name  )  const [virtual]
 

From CSIPHeaderBase Name.

Implements CSIPHeaderBase.

static IMPORT_C CSIPContentTypeHeader* CSIPContentTypeHeader::NewL const TDesC8 &  aMediaType,
const TDesC8 &  aMediaSubtype
[static]
 

Creates a new instance of CSIPContentTypeHeader.

Parameters:
aMediaType a media type to set. For example "application"
aMediaSubtype a media subtype to set. For example "sdp"
Returns:
a new instance of CSIPContentTypeHeader
static IMPORT_C CSIPContentTypeHeader* CSIPContentTypeHeader::NewLC const TDesC8 &  aMediaType,
const TDesC8 &  aMediaSubtype
[static]
 

Creates a new instance of CSIPContentTypeHeader and puts it onto the cleanup stack.

Parameters:
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 CSIPContentTypeHeader::PreferredPlaceInMessage  )  const [virtual]
 

Implements CSIPHeaderBase.

IMPORT_C void CSIPContentTypeHeader::SetMediaSubtypeL const TDesC8 &  aMediaSubtype  ) 
 

Sets the media subtype in the "Content-Type" header.

Parameters:
aMediaSubtype a media subtype
IMPORT_C void CSIPContentTypeHeader::SetMediaTypeL const TDesC8 &  aMediaType  ) 
 

Sets the media type in the "Content-Type" header.

Parameters:
aMediaType a media type

The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2007
Back to top