CSIPContentTypeHeader Class Reference

#include <mw/sipcontenttypeheader.h>

Link against: sipcodec.lib

class CSIPContentTypeHeader : public CSIPParameterHeaderBase

Inherits from

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 RStringFName()
IMPORT_C CSIPContentTypeHeader *NewL(const TDesC8 &, const TDesC8 &)
IMPORT_C CSIPContentTypeHeader *NewLC(const TDesC8 &, const TDesC8 &)
virtual TPreferredPlace PreferredPlaceInMessage()
IMPORT_C voidSetMediaSubtypeL(const TDesC8 &)
IMPORT_C voidSetMediaTypeL(const TDesC8 &)
Inherited Attributes
CSIPHeaderBase::iLink
Inherited Enumerations
CSIPHeaderBase:TPreferredPlace
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CSIPHeaderBase::CSIPHeaderBase()
CSIPHeaderBase::EncodeMultipleToOneLine()const
CSIPHeaderBase::ExternalizeL(RWriteStream &,TBool)const
CSIPHeaderBase::ExternalizeNameL(RWriteStream &)const
CSIPHeaderBase::ExternalizeSupported()const
CSIPHeaderBase::IsExtensionHeader()const
CSIPHeaderBase::MoreThanOneAllowed()const
CSIPHeaderBase::PushLC(RPointerArray< CSIPHeaderBase > *)
CSIPHeaderBase::ResetAndDestroy(TAny *)
CSIPHeaderBase::ToTextL()const
CSIPHeaderBase::ToTextLC()const
CSIPHeaderBase::ToTextValueLC()const
CSIPHeaderBase::~CSIPHeaderBase()
CSIPParameterHeaderBase::CSIPParameterHeaderBase(const TChar &)
CSIPParameterHeaderBase::DeleteParam(RStringF)
CSIPParameterHeaderBase::HasParam(RStringF)const
CSIPParameterHeaderBase::Param(TInt,RStringF &)const
CSIPParameterHeaderBase::ParamCount()const
CSIPParameterHeaderBase::ParamInsertionAllowed()const
CSIPParameterHeaderBase::ParamValue(RStringF)const
CSIPParameterHeaderBase::ParseL(const TDesC8 &,TBool,TBool)
CSIPParameterHeaderBase::SetParamL(RStringF)
CSIPParameterHeaderBase::SetParamL(RStringF,RStringF)
CSIPParameterHeaderBase::ToTextValueL()const
CSIPParameterHeaderBase::~CSIPParameterHeaderBase()

Detailed Description

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

Constructor & Destructor Documentation

~CSIPContentTypeHeader ( )

IMPORT_C~CSIPContentTypeHeader()

Destructor, deletes the resources of CSIPContentTypeHeader.

Member Function Documentation

BaseDecodeL ( const TDesC8 & )

RPointerArray< CSIPHeaderBase >BaseDecodeL(const TDesC8 &aValue)[static]

CloneL ( )

IMPORT_C CSIPHeaderBase *CloneL()const [virtual]

From CSIPHeaderBase CloneL

CompactName ( )

RStringF CompactName()const [virtual]

DecodeL ( const TDesC8 & )

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

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

ParameterDescription
aValuea value part of a "Content-Type"-header

Returns: a new instance of CSIPContentTypeHeader

HasCompactName ( )

TBool HasCompactName()const [virtual]

InternalizeValueL ( RReadStream & )

IMPORT_C CSIPHeaderBase *InternalizeValueL(RReadStream &aReadStream)[static]

Constructs an instance of a CSIPContentTypeHeader from a RReadStream

ParameterDescription
aReadStreama stream containing the value of the externalized header object (header name not included).

Returns: an instance of a CSIPContentTypeHeader

MediaSubtype ( )

IMPORT_C const TDesC8 &MediaSubtype()const

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

Returns: a media subtype

MediaType ( )

IMPORT_C const TDesC8 &MediaType()const

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

Returns: a media type

Name ( )

IMPORT_C RStringFName()const [virtual]

Reimplemented from CSIPHeaderBase::Name()const

From CSIPHeaderBase Name

NewL ( const TDesC8 &, const TDesC8 & )

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

Creates a new instance of CSIPContentTypeHeader

ParameterDescription
aMediaTypea media type to set. For example "application"
aMediaSubtypea media subtype to set. For example "sdp"

Returns: a new instance of CSIPContentTypeHeader

NewLC ( const TDesC8 &, const TDesC8 & )

IMPORT_C CSIPContentTypeHeader *NewLC(const TDesC8 &aMediaType,
const TDesC8 &aMediaSubtype
)[static]

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

ParameterDescription
aMediaTypea media type to set. For example "application"
aMediaSubtypea media subtype to set. For example "sdp"

Returns: a new instance of CSIPContentTypeHeader

PreferredPlaceInMessage ( )

TPreferredPlace PreferredPlaceInMessage()const [virtual]

SetMediaSubtypeL ( const TDesC8 & )

IMPORT_C voidSetMediaSubtypeL(const TDesC8 &aMediaSubtype)

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

ParameterDescription
aMediaSubtypea media subtype

SetMediaTypeL ( const TDesC8 & )

IMPORT_C voidSetMediaTypeL(const TDesC8 &aMediaType)

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

ParameterDescription
aMediaTypea media type