| 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
| Public Member Functions | |
|---|---|
| TSdpTypedTime () | |
| TSdpTypedTime ( TInt64 , TUnit ) | |
| TSdpTypedTime | DecodeL (const TDesC8 &) |
| void | EncodeL ( RWriteStream &) |
| void | ExternalizeL ( RWriteStream &) |
| TSdpTypedTime | InternalizeL ( RReadStream &) |
| IMPORT_C void | SetValue ( TInt64 , TUnit ) |
| IMPORT_C TBool | operator== (const TSdpTypedTime &) |
| Public Member Enumerations | |
|---|---|
| enum | TUnit { ETimeUnitDays , ETimeUnitHours , ETimeUnitMinutes , ETimeUnitSeconds , ETimeUnitNone } |
| Public Attributes | |
|---|---|
| TInt | iUnit |
| TInt64 | iValue |
| IMPORT_C | TSdpTypedTime | ( | ) |
Constructs a typed time equal to zero and with no time unit set.
| IMPORT_C | TSdpTypedTime | ( | TInt64 | aValue, |
| TUnit | aUnit | |||
| ) | ||||
Constructs a typed time equal to specified value and time unit.
| TSdpTypedTime | DecodeL | ( | const TDesC8 & | aText | ) | [static] |
Construct a new origin field.
| const TDesC8 & aText | A string containing a correctly formatted field value terminated by a CRLF. |
| void | EncodeL | ( | RWriteStream & | aStream | ) | const |
Output the field formatted according to SDP syntax and including the terminating CRLF.
| RWriteStream & aStream | Stream used for output. |
| void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Externalizes the object to stream
| RWriteStream & aStream | Stream where the object's state will be stored |
| TSdpTypedTime | InternalizeL | ( | RReadStream & | aStream | ) | [static] |
Creates object from the stream data
| RReadStream & aStream | Stream where the object's state will be read |
| IMPORT_C void | SetValue | ( | TInt64 | aValue, |
| TUnit | aUnit | |||
| ) | ||||
Sets the typed time value.
| IMPORT_C TBool | operator== | ( | const TSdpTypedTime & | aObj | ) | const |
Compares this instance to another for equality.
| const TSdpTypedTime & aObj | Another instance to compare with. |
Time units.
| ETimeUnitDays | |
| ETimeUnitHours |
d |
| ETimeUnitMinutes |
h |
| ETimeUnitSeconds |
m |
| ETimeUnitNone |
s |
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.