Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
2 * Copyright (c) 2004-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 : siptokenheaderbase.h
17 * Interface : SDK API, SIP Codec API
25 #ifndef CSIPTOKENHEADERBASE_H
26 #define CSIPTOKENHEADERBASE_H
29 #include "sipheaderbase.h"
30 #include "_sipcodecdefs.h"
37 * A base class for SIP headers having form "Name: token *(COMMA token)"
41 class CSIPTokenHeaderBase : public CSIPHeaderBase
43 public: // Constructors and destructor
46 * Destructor, deletes the resources of CSIPTokenHeaderBase.
48 IMPORT_C virtual ~CSIPTokenHeaderBase();
51 public: // New functions
54 * Sets the header value as a token
55 * @param aValue a value to set
57 IMPORT_C void SetValueL(RStringF aValue);
60 * Gets the header value as a token
61 * @return the header value
63 IMPORT_C RStringF Value() const;
66 public: // From CSIPHeaderBase
69 * From CSIPHeaderBase ToTextValueL
71 IMPORT_C HBufC8* ToTextValueL() const;
74 public: // From CSIPHeaderBase, for internal use
79 virtual TBool MoreThanOneAllowed() const;
81 protected: // Constructors
83 CSIPTokenHeaderBase();
84 CSIPTokenHeaderBase(const CSIPTokenHeaderBase& aHeader);
85 void ConstructL(const TDesC8& aValue, TBool aEmptyValueAllowed=EFalse);
86 void ConstructL(RStringF aValue, TBool aEmptyValueAllowed=EFalse);
88 protected: // New functions
90 void DoInternalizeValueL(RReadStream& aReadStream);
99 private: // From CSIPHeaderBase
101 void ExternalizeValueL(RWriteStream& aWriteStream) const;
103 private: // New functions
105 void SetValueL(const TDesC8& aValue);
107 private: // For testing purposes
109 UNIT_TEST(CSIPTokenHeaderBaseTest)
112 #endif // CSIPTOKENHEADERBASE_H