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 : sipcontentencodingheader.h
17 * Interface : SDK API, SIP Codec API
25 #ifndef CSIPCONTENTENCODINGHEADER_H
26 #define CSIPCONTENTENCODINGHEADER_H
29 #include "siptokenheaderbase.h"
30 #include "_sipcodecdefs.h"
37 * Class provides functions for setting and getting parameters
38 * in SIP "Content-Encoding" header.
42 class CSIPContentEncodingHeader : public CSIPTokenHeaderBase
44 public: // Constructors and destructor
47 * Constructs a CSIPContentEncodingHeader from textual representation
48 * of the header's value part.
49 * @param aValue a value part of a "Content-Encoding"-header
50 * @return an array containing 1..n instances of
51 * CSIPContentEncodingHeader
53 IMPORT_C static RPointerArray<CSIPContentEncodingHeader>
54 DecodeL(const TDesC8& aValue);
57 * Creates a new instance of CSIPContentEncodingHeader
58 * @param aValue a content-coding value
59 * @return a new instance of CSIPContentEncodingHeader
61 IMPORT_C static CSIPContentEncodingHeader* NewL(RStringF aValue);
64 * Creates a new instance of CSIPContentEncodingHeader
65 * and puts it to CleanupStack
66 * @param aValue a content-coding value
67 * @return a new instance of CSIPContentEncodingHeader
69 IMPORT_C static CSIPContentEncodingHeader* NewLC(RStringF aValue);
72 * Destructor, deletes the resources of CSIPContentEncodingHeader.
74 IMPORT_C ~CSIPContentEncodingHeader();
77 public: // New functions
80 * Constructs an instance of a CSIPContentEncodingHeader
82 * @param aReadStream a stream containing the value of the
83 * externalized object (header name not included).
84 * @return an instance of a CSIPContentEncodingHeader
87 IMPORT_C static CSIPHeaderBase*
88 InternalizeValueL(RReadStream& aReadStream);
91 public: // From CSIPHeaderBase
94 * From CSIPHeaderBase CloneL
96 IMPORT_C CSIPHeaderBase* CloneL() const;
99 * From CSIPHeaderBase Name
101 IMPORT_C RStringF Name() const;
104 public: // From CSIPHeaderBase, for internal use
109 TBool HasCompactName() const;
114 RStringF CompactName() const;
119 TPreferredPlace PreferredPlaceInMessage() const;
121 public: // New functions, for internal use
123 static RPointerArray<CSIPHeaderBase> BaseDecodeL(const TDesC8& aValue);
125 private: // Constructors
127 CSIPContentEncodingHeader();
128 CSIPContentEncodingHeader(const CSIPContentEncodingHeader& aHeader);
131 #endif // CSIPCONTENTENCODINGHEADER_H