Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: sipacceptlanguageheader.h
Link against: sipcodec.lib

Class CSIPAcceptLanguageHeader

class CSIPAcceptLanguageHeader : public CSIPParameterHeaderBase;

Description

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

sipcodec.lib

Derivation

Members

Defined in CSIPAcceptLanguageHeader:
CloneL(), DecodeL(), InternalizeValueL(), LanguageRange(), Name(), NewL(), NewLC(), QParameter(), SetLanguageRangeL(), SetQParameterL(), ~CSIPAcceptLanguageHeader()

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 CSIPAcceptLanguageHeader *NewL(const TDesC8 &aLanguageRange);

Description

Creates a new instance of CSIPAcceptLanguageHeader

Parameters

const TDesC8 &aLanguageRange

a language-range to set

Return value

CSIPAcceptLanguageHeader *

a new instance of CSIPAcceptLanguageHeader


NewLC()

static IMPORT_C CSIPAcceptLanguageHeader *NewLC(const TDesC8 &aLanguageRange);

Description

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

Parameters

const TDesC8 &aLanguageRange

a language-range to set

Return value

CSIPAcceptLanguageHeader *

a new instance of CSIPAcceptLanguageHeader


~CSIPAcceptLanguageHeader()

IMPORT_C ~CSIPAcceptLanguageHeader();

Description

Destructor, deletes the resources of CSIPAcceptLanguageHeader.

[Top]


Member functions


DecodeL()

static IMPORT_C RPointerArray< CSIPAcceptLanguageHeader > DecodeL(const TDesC8 &aValue);

Description

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

Parameters

const TDesC8 &aValue

a value part of a "Accept-Language"-header

Return value

RPointerArray< CSIPAcceptLanguageHeader >

an array containing one to many instances of CSIPAcceptLanguageHeader.


LanguageRange()

IMPORT_C const TDesC8 &LanguageRange() const;

Description

Gets the language-range from the "Accept-Language" header

Return value

const TDesC8 &

a language-range


SetLanguageRangeL()

IMPORT_C void SetLanguageRangeL(const TDesC8 &aLanguageRange);

Description

Sets the language-range in the "Accept-Language" header

Parameters

const TDesC8 &aLanguageRange

a language-range


QParameter()

IMPORT_C TReal QParameter() const;

Description

Gets the value of "q"-parameter

Return value

TReal

the "q"-parameter value


SetQParameterL()

IMPORT_C void SetQParameterL(TReal aQValue);

Description

Sets the "q"-parameter value

Parameters

TReal aQValue

a "q"-parameter value to set


InternalizeValueL()

static IMPORT_C CSIPHeaderBase *InternalizeValueL(RReadStream &aReadStream);

Description

Constructs an instance of a CSIPAcceptLanguageHeader 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 CSIPAcceptLanguageHeader


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