CSdpTimeField Class Reference
class CSdpTimeField : public CBase |
This class encapsulates the time field and the related zero or more repeat times fields and an optional time zone adjustment 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
Constructor & Destructor Documentation
~CSdpTimeField()
Deletes the resources held by the instance.
Member Functions Documentation
CloneL(TBool)
Creates a new instance that is equal to the target. Optionally also related repeat times are cloned.
Parameters
TBool aRecurse = ETrue | Flag to specify whether to clone subfields also (ETrue) or only the time field (EFalse). |
ConstructL(const TDesC8 &, TBool)
void | ConstructL | ( | const TDesC8 & | aText, |
| TBool | aRecurse = ETrue |
| ) | [private] |
ConstructL(const TDesC8 &, const TDesC8 &)
void | ConstructL | ( | const TDesC8 & | aStartTime, |
| const TDesC8 & | aStopTime |
| ) | [private] |
DecodeL(const TDesC8 &, TBool)
Parameters
const TDesC8 & aText | A correctly formatted time field value terminated by a CRLF followed by zero or more repeat times and zero or one time zone adjustment fields separeted by a CRLF. |
TBool aRecurse = ETrue | Flag to specify whether to decode subfields also (ETrue) or only the time field (EFalse). |
DecodeLC(const TDesC8 &, TBool)
Constructs a time field and adds the pointer to the cleanup stack.
Parameters
const TDesC8 & aText | A correctly formatted time field value terminated by a CRLF followed by zero or more repeat times and zero or one time zone adjustment fields separeted by a CRLF. |
TBool aRecurse = ETrue | Flag to specify whether to decode subfields also (ETrue) or only the time field (EFalse). |
DoInternalizeL(RReadStream &)
Creates object from the stream data. Does the "2nd phase construction" of internalization.
Parameters
RReadStream & aStream | Stream where the object's state will be read |
EncodeL(RWriteStream &, TBool)
Outputs the field formatted according to SDP syntax and including the terminating CRLF. Optionally output also the related repeat times.
Parameters
RWriteStream & aStream | Stream used for output. On return the stream includes correctly formatted time field with repeat fields if aRecurse is ETrue. |
TBool aRecurse = ETrue | Flag to specify whether to output subfields also (ETrue) or only the time field (EFalse). |
ExternalizeL(RWriteStream &)
Externalizes the object to stream
Parameters
RWriteStream & aStream | Stream where the object's state will be stored |
InternalizeL(RReadStream &)
Creates object from the stream data
Parameters
RReadStream & aStream | Stream where the object's state will be read |
IsValid()
IMPORT_C TBool | IsValid | ( | ) | const |
Checks the consistency of the time description and it's subfields.
NewL(const TDesC8 &, const TDesC8 &)
Parameters
const TDesC8 & aStartTime | Session start time. |
const TDesC8 & aStopTime | Session end time that must be greater than or equal to the start time. |
NewLC(const TDesC8 &, const TDesC8 &)
Constructs a time field and adds the pointer to the cleanup stack.
Parameters
const TDesC8 & aStartTime | Session start time. |
const TDesC8 & aStopTime | Session end time that must be greater than or equal to the start time. |
RepeatFields()
Gets the set of repeat times fields related to this time field. This array is used directly for element insertion and removal.
The objects referenced from the array are owned by the media field instance and must not be deleted. An object can be removed from the media description by setting the corresponding element to zero. By doing so, the calling party receives ownership of the removed object.
RepeatFieldsCompare(const CSdpTimeField &)
SetTimesL(const TDesC8 &, const TDesC8 &)
IMPORT_C void | SetTimesL | ( | const TDesC8 & | aStartTime, |
| const TDesC8 & | aStopTime |
| ) | |
Sets the session start and stop times.
-
leave
- KErrSdpCodecTimeField if start time and stop time are not correct as defined draft-ietf-mmusic-sdp-new-14.
Parameters
const TDesC8 & aStartTime | Session start time.. |
const TDesC8 & aStopTime | Session end time that must be greater than or equal to the start time. |
StartTime()
IMPORT_C const TDesC8 & | StartTime | ( | ) | const |
Gets the session start time.
StopTime()
IMPORT_C const TDesC8 & | StopTime | ( | ) | const |
Gets the session stop time.
__DbgTestInvariant()
void | __DbgTestInvariant | ( | ) | const [private] |
operator==(const CSdpTimeField &)
Compares this instance to another for equality. Subfields are included in comparison if present.
Member Data Documentation
RPointerArray< CSdpRepeatField > iRFields
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.