|
1 /* |
|
2 * Copyright (c) 2005-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 : TSIPHeaderLookupEntry.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 TSIPHEADERLOOKUPENTRY_H |
|
30 #define TSIPHEADERLOOKUPENTRY_H |
|
31 |
|
32 #include <e32base.h> |
|
33 #include <s32strm.h> |
|
34 #include <stringpool.h> |
|
35 |
|
36 class CSIPHeaderBase; |
|
37 |
|
38 |
|
39 class TSIPHeaderLookupEntry |
|
40 { |
|
41 public: |
|
42 |
|
43 TSIPHeaderLookupEntry(RStringF aName, |
|
44 RPointerArray<CSIPHeaderBase>(*aDecode)(const TDesC8&), |
|
45 CSIPHeaderBase*(*aInternalize)(RReadStream&) = 0); |
|
46 |
|
47 TSIPHeaderLookupEntry(RStringF aName, |
|
48 RStringF aCompactName, |
|
49 RPointerArray<CSIPHeaderBase>(*aDecode)(const TDesC8&), |
|
50 CSIPHeaderBase*(*aInternalize)(RReadStream&) = 0); |
|
51 |
|
52 RStringF Name() const; |
|
53 RStringF CompactName() const; |
|
54 |
|
55 RPointerArray<CSIPHeaderBase> DecodeL(const TDesC8& aHeaderValue) const; |
|
56 |
|
57 CSIPHeaderBase* InternalizeL(RReadStream& aReadStream) const; |
|
58 |
|
59 TBool InternalizeSupported() const; |
|
60 |
|
61 private: // Data |
|
62 |
|
63 RStringF iName; |
|
64 RStringF iCompactName; |
|
65 RPointerArray<CSIPHeaderBase> (*iDecodeFunction)(const TDesC8&); |
|
66 CSIPHeaderBase* (*iInternalizeFunction)(RReadStream&); |
|
67 }; |
|
68 |
|
69 #endif // TSIPHEADERLOOKUPENTRY_H |
|
70 |
|
71 // End of File |