CSdpRepeatField Class Reference

class CSdpRepeatField : public CBase

This class encapsulates the repeat times field 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

Inherits from

Constructor & Destructor Documentation

CSdpRepeatField(const TSdpTypedTime, const TSdpTypedTime)

CSdpRepeatField(const TSdpTypedTimeaRepeatInterval,
const TSdpTypedTimeaActiveDuration
)[private]

Parameters

const TSdpTypedTime aRepeatInterval
const TSdpTypedTime aActiveDuration

CSdpRepeatField()

CSdpRepeatField()[private]

~CSdpRepeatField()

IMPORT_C~CSdpRepeatField()

Deletes the resources held by the instance.

Member Functions Documentation

ActiveDuration()

IMPORT_C const TSdpTypedTimeActiveDuration()const

Gets the active duration..

CloneL()

IMPORT_C CSdpRepeatField *CloneL()const

Creates a new instance that is equal to the target.

ConstructL(const TDesC8 &)

voidConstructL(const TDesC8 &aText)[private]

Parameters

const TDesC8 & aText

ConstructL(const RArray< TSdpTypedTime > &)

voidConstructL(const RArray< TSdpTypedTime > &aOffsets)[private]

Parameters

const RArray< TSdpTypedTime > & aOffsets

DecodeL(const TDesC8 &)

IMPORT_C CSdpRepeatField *DecodeL(const TDesC8 &aText)[static]

Constructs a new repeat times field.

Parameters

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

DecodeLC(const TDesC8 &)

IMPORT_C CSdpRepeatField *DecodeLC(const TDesC8 &aText)[static]

Constructs a new repeat times field and adds the pointer to the cleanup stack.

Parameters

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

EncodeL(RWriteStream &)

IMPORT_C voidEncodeL(RWriteStream &aStream)const

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

Parameters

RWriteStream & aStreamStream used for output. On return the stream includes correctly formatted repeat field.

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aStream)const

Externalizes the object to stream

Parameters

RWriteStream & aStreamStream where the object's state will be stored

InternalizeL(RReadStream &)

CSdpRepeatField *InternalizeL(RReadStream &aStream)[static]

Creates object from the stream data

Parameters

RReadStream & aStreamStream where the object's state will be read

NewL(const TSdpTypedTime, const TSdpTypedTime, const RArray< TSdpTypedTime > &)

IMPORT_C CSdpRepeatField *NewL(const TSdpTypedTimeaRepeatInterval,
const TSdpTypedTimeaActiveDuration,
const RArray< TSdpTypedTime > &aOffsets
)[static]

Constructs a new repeat times field.

Parameters

const TSdpTypedTime aRepeatIntervalRepeat interval value greater than zero.
const TSdpTypedTime aActiveDurationActive duration.
const RArray< TSdpTypedTime > & aOffsetsAt least one time offset.

NewLC(const TSdpTypedTime, const TSdpTypedTime, const RArray< TSdpTypedTime > &)

IMPORT_C CSdpRepeatField *NewLC(const TSdpTypedTimeaRepeatInterval,
const TSdpTypedTimeaActiveDuration,
const RArray< TSdpTypedTime > &aOffsets
)[static]

Constructs a new repeat times field and adds the pointer to the cleanup stack.

Parameters

const TSdpTypedTime aRepeatIntervalRepeat interval value greater than zero.
const TSdpTypedTime aActiveDurationActive duration.
const RArray< TSdpTypedTime > & aOffsetsAt least one time offset.

RepeatInterval()

IMPORT_C const TSdpTypedTimeRepeatInterval()const

Gets the repeat interval.

SetActiveDuration(const TSdpTypedTime)

IMPORT_C voidSetActiveDuration(const TSdpTypedTimeaValue)

Sets the active duration.

Parameters

const TSdpTypedTime aValue

SetRepeatIntervalL(const TSdpTypedTime)

IMPORT_C voidSetRepeatIntervalL(const TSdpTypedTimeaValue)

Sets the repeat interval.

leave
KErrSdpCodecRepeatField if aValue is not positive integer value.

Parameters

const TSdpTypedTime aValueRepeat interval value greater than zero.

SetTimeOffsetsL(const RArray< TSdpTypedTime > &)

IMPORT_C voidSetTimeOffsetsL(const RArray< TSdpTypedTime > &aValue)

Sets the time offsets.

Parameters

const RArray< TSdpTypedTime > & aValue

TimeOffsets()

IMPORT_C const RArray< TSdpTypedTime > &TimeOffsets()const

Gets the array of time offsets. This array is used directly for element insertion and removal.

__DbgTestInvariant()

void__DbgTestInvariant()const [private]

operator==(const CSdpRepeatField &)

IMPORT_C TBooloperator==(const CSdpRepeatField &aObj)const

Compares this instance to another for equality.

Parameters

const CSdpRepeatField & aObjThe instance to compare to.

Member Data Documentation

TSdpTypedTime iActiveDuration

TSdpTypedTime iActiveDuration[private]

RStringPool iPool

RStringPool iPool[private]

TSdpTypedTime iRepeatInterval

TSdpTypedTime iRepeatInterval[private]

RArray< TSdpTypedTime > iTimeOffsets

RArray< TSdpTypedTime >iTimeOffsets[private]