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
Public Member Functions | |
---|---|
~CSdpTimeField () | |
IMPORT_C CSdpTimeField * | CloneL ( TBool ) |
IMPORT_C CSdpTimeField * | DecodeL (const TDesC8 &, TBool ) |
IMPORT_C CSdpTimeField * | DecodeLC (const TDesC8 &, TBool ) |
void | DoInternalizeL ( RReadStream &) |
IMPORT_C void | EncodeL ( RWriteStream &, TBool ) |
void | ExternalizeL ( RWriteStream &) |
CSdpTimeField * | InternalizeL ( RReadStream &) |
IMPORT_C TBool | IsValid () |
IMPORT_C CSdpTimeField * | NewL (const TDesC8 &, const TDesC8 &) |
IMPORT_C CSdpTimeField * | NewLC (const TDesC8 &, const TDesC8 &) |
IMPORT_C RPointerArray < CSdpRepeatField > & | RepeatFields () |
IMPORT_C void | SetTimesL (const TDesC8 &, const TDesC8 &) |
IMPORT_C const TDesC8 & | StartTime () |
IMPORT_C const TDesC8 & | StopTime () |
IMPORT_C TBool | operator== (const CSdpTimeField &) |
Private Member Functions | |
---|---|
CSdpTimeField () | |
void | ConstructL (const TDesC8 &, TBool ) |
void | ConstructL (const TDesC8 &, const TDesC8 &) |
TBool | RepeatFieldsCompare (const CSdpTimeField &) |
void | __DbgTestInvariant () |
Private Attributes | |
---|---|
RPointerArray < CSdpRepeatField > | iRFields |
HBufC8 * | iStartTime |
HBufC8 * | iStopTime |
RStringPool | iStringPool |
IMPORT_C CSdpTimeField * | CloneL | ( | TBool | aRecurse = ETrue | ) | const |
Creates a new instance that is equal to the target. Optionally also related repeat times are cloned.
TBool aRecurse = ETrue | Flag to specify whether to clone subfields also (ETrue) or only the time field (EFalse). |
void | ConstructL | ( | const TDesC8 & | aText, |
TBool | aRecurse = ETrue | |||
) | [private] |
void | ConstructL | ( | const TDesC8 & | aStartTime, |
const TDesC8 & | aStopTime | |||
) | [private] |
IMPORT_C CSdpTimeField * | DecodeL | ( | const TDesC8 & | aText, |
TBool | aRecurse = ETrue | |||
) | [static] |
Constructs a time field.
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). |
IMPORT_C CSdpTimeField * | DecodeLC | ( | const TDesC8 & | aText, |
TBool | aRecurse = ETrue | |||
) | [static] |
Constructs a time field and adds the pointer to the cleanup stack.
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). |
void | DoInternalizeL | ( | RReadStream & | aStream | ) |
Creates object from the stream data. Does the "2nd phase construction" of internalization.
RReadStream & aStream | Stream where the object's state will be read |
IMPORT_C void | EncodeL | ( | RWriteStream & | aStream, |
TBool | aRecurse = ETrue | |||
) | const |
Outputs the field formatted according to SDP syntax and including the terminating CRLF. Optionally output also the related repeat times.
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). |
void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Externalizes the object to stream
RWriteStream & aStream | Stream where the object's state will be stored |
CSdpTimeField * | InternalizeL | ( | RReadStream & | aStream | ) | [static] |
Creates object from the stream data
RReadStream & aStream | Stream where the object's state will be read |
IMPORT_C TBool | IsValid | ( | ) | const |
Checks the consistency of the time description and it's subfields.
IMPORT_C CSdpTimeField * | NewL | ( | const TDesC8 & | aStartTime, |
const TDesC8 & | aStopTime | |||
) | [static] |
Constructs a time field.
IMPORT_C CSdpTimeField * | NewLC | ( | const TDesC8 & | aStartTime, |
const TDesC8 & | aStopTime | |||
) | [static] |
Constructs a time field and adds the pointer to the cleanup stack.
IMPORT_C RPointerArray < CSdpRepeatField > & | 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.
TBool | RepeatFieldsCompare | ( | const CSdpTimeField & | aObj | ) | const [private] |
const CSdpTimeField & aObj |
IMPORT_C void | SetTimesL | ( | const TDesC8 & | aStartTime, |
const TDesC8 & | aStopTime | |||
) |
Sets the session start and stop times.
IMPORT_C TBool | operator== | ( | const CSdpTimeField & | aObj | ) | const |
Compares this instance to another for equality. Subfields are included in comparison if present.
const CSdpTimeField & aObj | The instance to compare to. |
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.