TSdpTypedTime Class Reference

class TSdpTypedTime

This class implements the typed time element of the Session Description Protocol.

The normative reference for correct formatting and values is draft-ietf-mmusic-sdp-new-14 unless specified otherwise in member documentation. The implementation supports this normative reference, but does not enforce it fully.

sdpcodec.lib

Constructor & Destructor Documentation

TSdpTypedTime()

IMPORT_C TSdpTypedTime ( )

Constructs a typed time equal to zero and with no time unit set.

TSdpTypedTime(TInt64, TUnit)

IMPORT_C TSdpTypedTime ( TInt64 aValue,
TUnit aUnit
)

Constructs a typed time equal to specified value and time unit.

Parameters

TInt64 aValue Time value.
TUnit aUnit Time unit.

Member Functions Documentation

DecodeL(const TDesC8 &)

TSdpTypedTime DecodeL ( const TDesC8 & aText ) [static]

Construct a new origin field.

Parameters

const TDesC8 & aText A string containing a correctly formatted field value terminated by a CRLF.

EncodeL(RWriteStream &)

void EncodeL ( RWriteStream & aStream ) const

Output the field formatted according to SDP syntax and including the terminating CRLF.

Parameters

RWriteStream & aStream Stream used for output.

ExternalizeL(RWriteStream &)

void ExternalizeL ( RWriteStream & aStream ) const

Externalizes the object to stream

Parameters

RWriteStream & aStream Stream where the object's state will be stored

InternalizeL(RReadStream &)

TSdpTypedTime InternalizeL ( RReadStream & aStream ) [static]

Creates object from the stream data

Parameters

RReadStream & aStream Stream where the object's state will be read

SetValue(TInt64, TUnit)

IMPORT_C void SetValue ( TInt64 aValue,
TUnit aUnit
)

Sets the typed time value.

Parameters

TInt64 aValue Time value.
TUnit aUnit Time unit.

operator==(const TSdpTypedTime &)

IMPORT_C TBool operator== ( const TSdpTypedTime & aObj ) const

Compares this instance to another for equality.

Parameters

const TSdpTypedTime & aObj Another instance to compare with.

Member Enumerations Documentation

Enum TUnit

Time units.

Enumerators

ETimeUnitDays
ETimeUnitHours

d

ETimeUnitMinutes

h

ETimeUnitSeconds

m

ETimeUnitNone

s

Member Data Documentation

TInt iUnit

TInt iUnit

TInt64 iValue

TInt64 iValue