|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef CUPNPHEADERREADER_H_ |
|
17 #define CUPNPHEADERREADER_H_ |
|
18 |
|
19 #include <stringpool.h> |
|
20 #include <http/framework/cheadercodec.h> |
|
21 |
|
22 #include "CHeaderField.h" |
|
23 |
|
24 |
|
25 class CUPnPHeaderReader: public CHeaderReader |
|
26 { |
|
27 public: |
|
28 static CUPnPHeaderReader* NewL(RStringPool aStringPool); |
|
29 virtual ~CUPnPHeaderReader(); |
|
30 |
|
31 private: |
|
32 void DecodeHeaderL(RHeaderField& aHeader); |
|
33 |
|
34 private: |
|
35 CUPnPHeaderReader(RStringPool aStringPool); |
|
36 CHeaderFieldPart* SetNewPartL(RHeaderField& aHeader, TInt aPartIndex, THTTPHdrVal& aPartVal) const; |
|
37 CHeaderFieldPart* SetNewFStringPartL(RHeaderField& aHeader, TInt aPartIndex, TPtrC8 aValue) const; |
|
38 CHeaderFieldPart* SetNewIntegerPartL(RHeaderField& aHeader, TInt aPartIndex, TInt aValue) const; |
|
39 void DecodeGenericNumberL(RHeaderField& aHeader) const; |
|
40 CHeaderFieldParam* SetNewFStringParamL(CHeaderFieldPart& aHeaderPart, TPtrC8 aParamName, TPtrC8 aParamValue) const; |
|
41 void DecodeExtL(RHeaderField& aHeader) const; |
|
42 void DecodeGenericUpnpHeadersL(RHeaderField& aHeader) const; |
|
43 void DecodeTimeoutHeaderL(RHeaderField& aHeader) const; |
|
44 void DecodeCallbackL(RHeaderField& aHeader) const; |
|
45 void DecodeManL(RHeaderField& aHeader) const; |
|
46 |
|
47 private: |
|
48 RStringPool iStringPool; |
|
49 }; |
|
50 |
|
51 #endif /*CUPNPHEADERREADER_H_*/ |