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 "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Name : sipallowheader.h
17 * Interface : SDK API, SIP Codec API
25 #ifndef CSIPALLOWHEADER_H
26 #define CSIPALLOWHEADER_H
29 #include "siptokenheaderbase.h"
36 * Class provides functions for setting and getting parameters
37 * in SIP "Allow" header.
41 class CSIPAllowHeader : public CSIPTokenHeaderBase
43 public: // Constructors and destructor
46 * Constructs a CSIPAllowHeader from textual representation
47 * of the header's value part.
48 * @param aValue a value part of a "Allow"-header
49 * @return an array containing one to many instances of CSIPAllowHeader
51 IMPORT_C static RPointerArray<CSIPAllowHeader>
52 DecodeL(const TDesC8& aValue);
55 * Creates a new instance of CSIPAllowHeader
56 * @param aValue a value
57 * @return a new instance of CSIPAllowHeader
59 IMPORT_C static CSIPAllowHeader* NewL(RStringF aValue);
62 * Creates a new instance of CSIPAllowHeader and puts it to CleanupStack
63 * @param aValue a value
64 * @return a new instance of CSIPAllowHeader
66 IMPORT_C static CSIPAllowHeader* NewLC(RStringF aValue);
69 * Destructor, deletes the resources of CSIPAllowHeader.
71 IMPORT_C ~CSIPAllowHeader();
74 public: // New functions
77 * Constructs an instance of a CSIPAllowHeader from a RReadStream
78 * @param aReadStream a stream containing the value of the
79 * externalized object (header name not included).
80 * @return an instance of a CSIPAllowHeader
82 IMPORT_C static CSIPHeaderBase*
83 InternalizeValueL(RReadStream& aReadStream);
86 public: // From CSIPHeaderBase
89 * From CSIPHeaderBase CloneL
91 IMPORT_C CSIPHeaderBase* CloneL() const;
94 * From CSIPHeaderBase Name
96 IMPORT_C RStringF Name() const;
99 public: // From CSIPHeaderBase, for internal use
104 TPreferredPlace PreferredPlaceInMessage() const;
106 public: // New functions, for internal use
108 static RPointerArray<CSIPHeaderBase> BaseDecodeL(const TDesC8& aValue);
110 private: // Constructors
113 CSIPAllowHeader(const CSIPAllowHeader& aHeader);
116 #endif // CSIPALLOWHEADER_H