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 : sipreplytoheader.h
17 * Interface : SDK API, SIP Codec API
25 #ifndef CSIPREPLYTOHEADER_H
26 #define CSIPREPLYTOHEADER_H
29 #include "sipaddressheaderbase.h"
30 #include "_sipcodecdefs.h"
32 // FORWARD DECLARATIONS
34 class CSIPHeaderGenericParams;
41 * Class provides functions for setting and getting parameters in SIP
46 class CSIPReplyToHeader : public CSIPAddressHeaderBase
48 public: // Constructors and destructor
51 * Constructs a CSIPReplyToHeader from textual representation
52 * of the header's value part.
53 * @param aValue a value part of a "Refer-To"-header
54 * (e.g. "User <user@host>")
55 * @return a new instance of CSIPReplyToHeader
57 IMPORT_C static CSIPReplyToHeader* DecodeL(const TDesC8& aValue);
60 * Creates a new instance of CSIPReplyToHeader
61 * @pre aSIPAddress != 0
62 * @param aSIPAddress a name-address, the ownership is transferred.
63 * @return a new instance of CSIPReplyToHeader
65 IMPORT_C static CSIPReplyToHeader* NewL(CSIPAddress* aSIPAddress);
68 * Creates a new instance of CSIPReplyToHeader and puts it to CleanupStack
69 * @pre aSIPAddress != 0
70 * @param aSIPAddress a name-address, the ownership is transferred,
71 * @return a new instance of CSIPReplyToHeader
73 IMPORT_C static CSIPReplyToHeader* NewLC(CSIPAddress* aSIPAddress);
76 * Destructor, deletes the resources of CSIPReplyToHeader.
78 IMPORT_C virtual ~CSIPReplyToHeader();
81 public: // New functions
84 * Constructs an instance of a CSIPReplyToHeader from a RReadStream
85 * @param aReadStream a stream containing the value of the
86 * externalized object (header name not included).
87 * @return an instance of a CSIPReplyToHeader
89 IMPORT_C static CSIPHeaderBase*
90 InternalizeValueL(RReadStream& aReadStream);
93 public: // From CSIPHeaderBase
96 * From CSIPHeaderBase CloneL
98 IMPORT_C CSIPHeaderBase* CloneL() const;
101 * From CSIPHeaderBase Name
103 IMPORT_C RStringF Name() const;
106 public: // From CSIPHeaderBase, for internal use
111 TPreferredPlace PreferredPlaceInMessage() const;
113 public: // New functions, for internal use
115 static RPointerArray<CSIPHeaderBase> BaseDecodeL(const TDesC8& aValue);
117 private: // Constructors
121 private: // For testing purposes
123 UNIT_TEST(CSIPReplyToHeaderTest)
126 #endif // end of CSIPREPLYTOHEADER_H