|
1 /* |
|
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Name : sipmaxforwardsheader.h |
|
16 * Part of : SIP Codec |
|
17 * Version : SIP/4.0 |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 /** |
|
25 @internalComponent |
|
26 */ |
|
27 |
|
28 |
|
29 #ifndef CSIPMAXFORWARDSHEADER_H |
|
30 #define CSIPMAXFORWARDSHEADER_H |
|
31 |
|
32 // INCLUDES |
|
33 #include "sipunsignedintheaderbase.h" |
|
34 #include "_sipcodecdefs.h" |
|
35 |
|
36 // CLASS DECLARATION |
|
37 /** |
|
38 * Class for a SIP Max-Forwards header. |
|
39 * |
|
40 * @lib sipcodec.lib |
|
41 */ |
|
42 class CSIPMaxForwardsHeader : public CSIPUnsignedIntHeaderBase |
|
43 { |
|
44 public: // Constructors and destructor |
|
45 |
|
46 /** |
|
47 * Constructs a CSIPMaxForwardsHeader from textual representation |
|
48 * of the header's value part. |
|
49 * @param aValue a value part of a "Max-Forwards"-header (e.g. "70") |
|
50 * @returns a new instance of CSIPMaxForwardsHeader |
|
51 */ |
|
52 IMPORT_C static CSIPMaxForwardsHeader* DecodeL(const TDesC8& aValue); |
|
53 |
|
54 /** |
|
55 * Constructor |
|
56 * @param aValue the value to set |
|
57 */ |
|
58 IMPORT_C CSIPMaxForwardsHeader(TUint aValue); |
|
59 |
|
60 /** |
|
61 * Destructor |
|
62 */ |
|
63 IMPORT_C ~CSIPMaxForwardsHeader(); |
|
64 |
|
65 |
|
66 public: // From CSIPHeaderBase |
|
67 |
|
68 /** |
|
69 * From CSIPHeaderBase CloneL |
|
70 */ |
|
71 IMPORT_C CSIPHeaderBase* CloneL() const; |
|
72 |
|
73 /** |
|
74 * From CSIPHeaderBase Name |
|
75 */ |
|
76 IMPORT_C RStringF Name() const; |
|
77 |
|
78 /** |
|
79 * From CSIPHeaderBase ExternalizeSupported |
|
80 */ |
|
81 IMPORT_C TBool ExternalizeSupported() const; |
|
82 |
|
83 |
|
84 public: // From CSIPHeaderBase, for internal use |
|
85 |
|
86 TPreferredPlace PreferredPlaceInMessage() const; |
|
87 |
|
88 public: // New functions, for internal use |
|
89 |
|
90 static RPointerArray<CSIPHeaderBase> BaseDecodeL(const TDesC8& aValue); |
|
91 }; |
|
92 |
|
93 #endif // end of CSIPMAXFORWARDSHEADER_H |
|
94 |
|
95 // End of File |