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 : siprseqheader.h
17 * Interface : SDK API, SIP Codec API
25 #ifndef CSIPRSEQHEADER_H
26 #define CSIPRSEQHEADER_H
29 #include "sipunsignedintheaderbase.h"
30 #include "_sipcodecdefs.h"
37 * Class encapsulates a "RSeq"-header value.
41 class CSIPRSeqHeader : public CSIPUnsignedIntHeaderBase
43 public: // Constructors and destructor
46 * Constructs a CSIPRSeqHeader from textual representation
47 * of the header's value part.
48 * @param aValue a value part of a "RSeq"-header (e.g. "123")
49 * @return a new instance of CSIPRSeqHeader
51 IMPORT_C static CSIPRSeqHeader* DecodeL(const TDesC8& aValue);
55 * @param aValue the value to set
57 IMPORT_C CSIPRSeqHeader(TUint aValue);
60 * Destructor, deletes the resources of CSIPRSeqHeader.
62 IMPORT_C ~CSIPRSeqHeader();
65 public: // New functions
68 * Constructs an instance of a CSIPRSeqHeader from a RReadStream
69 * @param aReadStream a stream containing the value of the
70 * externalized header object (header name not included).
71 * @return an instance of a CSIPRSeqHeader
73 IMPORT_C static CSIPHeaderBase*
74 InternalizeValueL(RReadStream& aReadStream);
77 public: // From CSIPHeaderBase
80 * From CSIPHeaderBase CloneL
82 IMPORT_C CSIPHeaderBase* CloneL() const;
85 * From CSIPHeaderBase Name
87 IMPORT_C RStringF Name() const;
90 public: // From CSIPHeaderBase, for internal use
95 TPreferredPlace PreferredPlaceInMessage() const;
97 public: // New functions, for internal use
99 static RPointerArray<CSIPHeaderBase> BaseDecodeL(const TDesC8& aValue);
101 private: // For testing purposes
103 UNIT_TEST(CSIPRSeqHeaderTest)
106 #endif // CSIPRSEQHEADER_H