Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Name : SdpTypedTime.h
17 * Interface : SDK API, SDP Codec API
24 #ifndef TSDPTYPEDTIME_H
25 #define TSDPTYPEDTIME_H
31 // FORWARD DECLARATIONS
40 * This class implements the typed time element of the Session
41 * Description Protocol.
43 * The normative reference for correct formatting and values is
44 * draft-ietf-mmusic-sdp-new-14 unless specified otherwise in
45 * member documentation. The implementation supports this normative
46 * reference, but does not enforce it fully.
57 ETimeUnitDays, /** d */
58 ETimeUnitHours, /** h */
59 ETimeUnitMinutes, /** m */
60 ETimeUnitSeconds, /** s */
64 public: // Constructors and destructor
66 * Constructs a typed time equal to zero and with no time unit set.
68 IMPORT_C TSdpTypedTime();
71 * Constructs a typed time equal to specified value and time unit.
73 * @param aValue Time value.
74 * @param aUnit Time unit.
76 IMPORT_C TSdpTypedTime(TInt64 aValue, TUnit aUnit);
78 public: // New functions
80 * Compares this instance to another for equality.
82 * @param aObj Another instance to compare with.
83 * @return ETrue if equal, EFalse if not.
85 IMPORT_C TBool operator == (const TSdpTypedTime& aObj) const;
88 * Sets the typed time value.
90 * @param aValue Time value.
91 * @param aUnit Time unit.
93 IMPORT_C void SetValue(TInt64 aValue, TUnit aUnit);
98 * Externalizes the object to stream
100 * @param aStream Stream where the object's state will be stored
102 void ExternalizeL(RWriteStream& aStream) const;
105 * Creates object from the stream data
107 * @param aStream Stream where the object's state will be read
108 * @return Initialized object
110 static TSdpTypedTime InternalizeL(RReadStream& aStream);
113 * Output the field formatted according to SDP syntax and including
114 * the terminating CRLF.
116 * @param aStream Stream used for output.
118 void EncodeL(RWriteStream& aStream) const;
121 * Construct a new origin field.
123 * @param aText A string containing a correctly formatted field value
124 * terminated by a CRLF.
125 * @return The new instance.
127 static TSdpTypedTime DecodeL(const TDesC8& aText);
143 #endif // TSDPTYPEDTIME_H