Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: siptimestampheader.h
Link against: sipcodec.lib

Class CSIPTimestampHeader

class CSIPTimestampHeader : public CSIPHeaderBase;

Description

Class for a SIP Timestamp header.

sipcodec.lib

Derivation

Members

Defined in CSIPTimestampHeader:
CSIPTimestampHeader(), CloneL(), DecodeL(), Delay(), HasDelay(), InternalizeValueL(), Name(), SetDelay(), SetTimestamp(), Timestamp(), ToTextValueL(), ~CSIPTimestampHeader()

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

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


Construction and destruction


CSIPTimestampHeader()

IMPORT_C CSIPTimestampHeader(TReal aTimestamp);

Description

Constructor

Parameters

TReal aTimestamp

a timestamp value to set.


~CSIPTimestampHeader()

IMPORT_C ~CSIPTimestampHeader();

Description

Destructor

[Top]


Member functions


DecodeL()

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

Description

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

Parameters

const TDesC8 &aValue

a value part of a "Timestamp"-header (e.g. "12 3.4")

Return value

CSIPTimestampHeader *

a new instance of CSIPTimestampHeader


SetTimestamp()

IMPORT_C void SetTimestamp(TReal aTimestamp);

Description

Set the timestamp from the "Timestamp" header.

Parameters

TReal aTimestamp

a timestamp to set.


Timestamp()

IMPORT_C TReal Timestamp() const;

Description

Gets the timestamp from the "Timestamp" header.

Return value

TReal

a timestamp value.


HasDelay()

IMPORT_C TBool HasDelay() const;

Description

Check if the delay-part is present

Return value

TBool

a delay value.


SetDelay()

IMPORT_C void SetDelay(TReal aDelay);

Description

Set the delay-part of the "Timestamp" header.

Parameters

TReal aDelay

a delay to set.


Delay()

IMPORT_C TReal Delay() const;

Description

Gets the delay-part of the "Timestamp" header, if delay-part is present

Return value

TReal

a delay value or zero if HasDelay() == EFalse


InternalizeValueL()

static IMPORT_C CSIPHeaderBase *InternalizeValueL(RReadStream &aReadStream);

Description

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


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


ToTextValueL()

virtual IMPORT_C HBufC8 *ToTextValueL() const;

Description

From CSIPHeaderBase ToTextValueL

Return value

HBufC8 *