Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: sipretryafterheader.h
Link against: sipcodec.lib

Class CSIPRetryAfterHeader

class CSIPRetryAfterHeader : public CSIPParameterHeaderBase;

Description

Class provides functions for setting and getting parameters in SIP "Retry-After" header.

sipcodec.lib

Derivation

Members

Defined in CSIPRetryAfterHeader:
CloneL(), Comment(), DecodeL(), DurationParam(), InternalizeValueL(), Name(), NewL(), NewLC(), RetryAfter(), SetDurationParamL(), SetRetryAfter(), ~CSIPRetryAfterHeader()

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 CSIPRetryAfterHeader *NewL(TUint aRetryAfter);

Description

Creates a new instance of CSIPRetryAfterHeader

Parameters

TUint aRetryAfter

a retry after value.

Return value

CSIPRetryAfterHeader *

a new instance of CSIPRetryAfterHeader


NewLC()

static IMPORT_C CSIPRetryAfterHeader *NewLC(TUint aRetryAfter);

Description

Creates a new instance of CSIPRetryAfterHeader On return the new instance has left to the CleanupStack.

Parameters

TUint aRetryAfter

a retry after value.

Return value

CSIPRetryAfterHeader *

a new instance of CSIPRetryAfterHeader


~CSIPRetryAfterHeader()

virtual IMPORT_C ~CSIPRetryAfterHeader();

Description

Destructor, deletes the resources of CSIPRetryAfterHeader.

[Top]


Member functions


DecodeL()

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

Description

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

Parameters

const TDesC8 &aValue

a value part of a "Retry-After"-header (e.g. "18000;duration=3600")

Return value

CSIPRetryAfterHeader *

a new instance of CSIPRetryAfterHeader


SetRetryAfter()

IMPORT_C void SetRetryAfter(TUint aValue);

Description

Sets the retry after value

Parameters

TUint aValue

a new retry after value to set.


RetryAfter()

IMPORT_C TUint RetryAfter() const;

Description

Gets the retry after value

Return value

TUint

a retry after value


Comment()

IMPORT_C const TDesC8 &Comment() const;

Description

Gets the comment value

Return value

const TDesC8 &

a comment value or KNullDesC8


DurationParam()

IMPORT_C TInt DurationParam() const;

Description

Gets the value of the "duration"-parameter

Return value

TInt

the "duration"-parameter, or KErrNotFound if the parameter is not present.


SetDurationParamL()

IMPORT_C void SetDurationParamL(TInt aDurationParam);

Pre-Condition

aDurationParam >= 0

Description

Sets the "duration"-parameter

Parameters

TInt aDurationParam

a "duration"-parameter value to set


InternalizeValueL()

static IMPORT_C CSIPHeaderBase *InternalizeValueL(RReadStream &aReadStream);

Description

Constructs an instance of a CSIPRetryAfterHeader from a RReadStream

Parameters

RReadStream &aReadStream

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

Return value

CSIPHeaderBase *

an instance of a CSIPRetryAfterHeader


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