Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: sipcontenttypeheader.h
Link against: sipcodec.lib

Class CSIPContentTypeHeader

class CSIPContentTypeHeader : public CSIPParameterHeaderBase;

Description

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

sipcodec.lib

Derivation

Members

Defined in CSIPContentTypeHeader:
CloneL(), DecodeL(), InternalizeValueL(), MediaSubtype(), MediaType(), Name(), NewL(), NewLC(), SetMediaSubtypeL(), SetMediaTypeL(), ~CSIPContentTypeHeader()

Inherited from CBase:
Delete(), Extension_(), operator new()

Inherited from CSIPHeaderBase:
ExternalizeL(), ExternalizeSupported(), PushLC(), ToTextL(), ToTextLC(), ToTextValueLC()

Inherited from CSIPParameterHeaderBase:
DeleteParam(), HasParam(), Param(), ParamCount(), ParamValue(), SetParamL(), ToTextValueL()


Construction and destruction


NewL()

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

Description

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"

Return value

CSIPContentTypeHeader *

a new instance of CSIPContentTypeHeader


NewLC()

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

Description

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"

Return value

CSIPContentTypeHeader *

a new instance of CSIPContentTypeHeader


~CSIPContentTypeHeader()

IMPORT_C ~CSIPContentTypeHeader();

Description

Destructor, deletes the resources of CSIPContentTypeHeader.

[Top]


Member functions


DecodeL()

static IMPORT_C CSIPContentTypeHeader *DecodeL(const TDesC8 &aValue);

Description

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

Parameters

const TDesC8 &aValue

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

Return value

CSIPContentTypeHeader *

a new instance of CSIPContentTypeHeader


MediaType()

IMPORT_C const TDesC8 &MediaType() const;

Description

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

Return value

const TDesC8 &

a media type


SetMediaTypeL()

IMPORT_C void SetMediaTypeL(const TDesC8 &aMediaType);

Description

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

Parameters

const TDesC8 &aMediaType

a media type


MediaSubtype()

IMPORT_C const TDesC8 &MediaSubtype() const;

Description

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

Return value

const TDesC8 &

a media subtype


SetMediaSubtypeL()

IMPORT_C void SetMediaSubtypeL(const TDesC8 &aMediaSubtype);

Description

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

Parameters

const TDesC8 &aMediaSubtype

a media subtype


InternalizeValueL()

static IMPORT_C CSIPHeaderBase *InternalizeValueL(RReadStream &aReadStream);

Description

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).

Return value

CSIPHeaderBase *

an instance of a CSIPContentTypeHeader


CloneL()

virtual IMPORT_C CSIPHeaderBase *CloneL() const;

Description

From CSIPHeaderBase CloneL

Return value

CSIPHeaderBase *


Name()

virtual IMPORT_C RStringF Name() const;

Description

From CSIPHeaderBase Name

Return value

RStringF