CSIPContentTypeHeader Class Reference

class CSIPContentTypeHeader : public CSIPParameterHeaderBase

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

sipcodec.lib

Inherits from

Public Member Functions
~CSIPContentTypeHeader ()
RPointerArray < CSIPHeaderBase > BaseDecodeL (const TDesC8 &)
IMPORT_C CSIPHeaderBase * CloneL ()
RStringF CompactName ()
IMPORT_C CSIPContentTypeHeader * DecodeL (const TDesC8 &)
TBool HasCompactName ()
IMPORT_C CSIPHeaderBase * InternalizeValueL ( RReadStream &)
IMPORT_C const TDesC8 & MediaSubtype ()
IMPORT_C const TDesC8 & MediaType ()
IMPORT_C RStringF Name ()
IMPORT_C CSIPContentTypeHeader * NewL (const TDesC8 &, const TDesC8 &)
IMPORT_C CSIPContentTypeHeader * NewLC (const TDesC8 &, const TDesC8 &)
TPreferredPlace PreferredPlaceInMessage ()
IMPORT_C void SetMediaSubtypeL (const TDesC8 &)
IMPORT_C void SetMediaTypeL (const TDesC8 &)
Private Member Functions
CSIPContentTypeHeader ()
void ConstructL ()
void ConstructL (const TDesC8 &, const TDesC8 &)
void ConstructL (const CSIPContentTypeHeader &)
void DoInternalizeValueL ( RReadStream &)
void ExternalizeValueL ( RWriteStream &)
const CSIPParamContainerBase & Params ()
CSIPParamContainerBase & Params ()
void ParseMandatoryPartL (const TDesC8 &)
HBufC8 * ToTextMandatoryPartLC ()
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()
Inherited Enumerations
CSIPHeaderBase:TPreferredPlace
Private Attributes
HBufC8 * iMediaSubtype
HBufC8 * iMediaType
CSIPContentTypeHeaderParams * iParams
Inherited Attributes
CSIPHeaderBase::iLink

Constructor & Destructor Documentation

CSIPContentTypeHeader()

CSIPContentTypeHeader ( ) [private]

~CSIPContentTypeHeader()

IMPORT_C ~CSIPContentTypeHeader ( )

Destructor, deletes the resources of CSIPContentTypeHeader .

Member Functions Documentation

BaseDecodeL(const TDesC8 &)

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

Parameters

const TDesC8 & aValue

CloneL()

IMPORT_C CSIPHeaderBase * CloneL ( ) const [virtual]

From CSIPHeaderBase CloneL

CompactName()

RStringF CompactName ( ) const [virtual]

ConstructL()

void ConstructL ( ) [private]

ConstructL(const TDesC8 &, const TDesC8 &)

void ConstructL ( const TDesC8 & aMediaType,
const TDesC8 & aMediaSubtype
) [private]

Parameters

const TDesC8 & aMediaType
const TDesC8 & aMediaSubtype

ConstructL(const CSIPContentTypeHeader &)

void ConstructL ( const CSIPContentTypeHeader & aContentTypeHeader ) [private]

Parameters

const CSIPContentTypeHeader & aContentTypeHeader

DecodeL(const TDesC8 &)

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

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

Parameters

const TDesC8 & aValue a value part of a "Content-Type"-header

DoInternalizeValueL(RReadStream &)

void DoInternalizeValueL ( RReadStream & aReadStream ) [private]

Parameters

RReadStream & aReadStream

ExternalizeValueL(RWriteStream &)

void ExternalizeValueL ( RWriteStream & aWriteStream ) const [private, virtual]

Parameters

RWriteStream & aWriteStream

HasCompactName()

TBool HasCompactName ( ) const [virtual]

InternalizeValueL(RReadStream &)

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

Constructs an instance of a CSIPContentTypeHeader from a RReadStream

Parameters

RReadStream & aReadStream a stream containing the value of the externalized header object (header name not included).

MediaSubtype()

IMPORT_C const TDesC8 & MediaSubtype ( ) const

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

MediaType()

IMPORT_C const TDesC8 & MediaType ( ) const

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

Name()

IMPORT_C RStringF Name ( ) const [virtual]

NewL(const TDesC8 &, const TDesC8 &)

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

Creates a new instance of CSIPContentTypeHeader

Parameters

const TDesC8 & aMediaType a media type to set. For example "application"
const TDesC8 & aMediaSubtype a media subtype to set. For example "sdp"

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

Parameters

const TDesC8 & aMediaType a media type to set. For example "application"
const TDesC8 & aMediaSubtype a media subtype to set. For example "sdp"

Params()

const CSIPParamContainerBase & Params ( ) const [private, virtual]

Params()

CSIPParamContainerBase & Params ( ) [private, virtual]

ParseMandatoryPartL(const TDesC8 &)

void ParseMandatoryPartL ( const TDesC8 & aMandatoryPart ) [private, virtual]

Parameters

const TDesC8 & aMandatoryPart

PreferredPlaceInMessage()

TPreferredPlace PreferredPlaceInMessage ( ) const [virtual]

SetMediaSubtypeL(const TDesC8 &)

IMPORT_C void SetMediaSubtypeL ( const TDesC8 & aMediaSubtype )

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

Parameters

const TDesC8 & aMediaSubtype a media subtype

SetMediaTypeL(const TDesC8 &)

IMPORT_C void SetMediaTypeL ( const TDesC8 & aMediaType )

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

Parameters

const TDesC8 & aMediaType a media type

ToTextMandatoryPartLC()

HBufC8 * ToTextMandatoryPartLC ( ) const [private, virtual]

Member Data Documentation

HBufC8 * iMediaSubtype

HBufC8 * iMediaSubtype [private]

HBufC8 * iMediaType

HBufC8 * iMediaType [private]

CSIPContentTypeHeaderParams * iParams

CSIPContentTypeHeaderParams * iParams [private]