applayerpluginsandutils/httpprotocolplugins/httpheadercodec/chttpdefaultheaderreader.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2001-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 __CHTTPDEFAULTHEADERREADER_H__
       
    17 #define __CHTTPDEFAULTHEADERREADER_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <http/framework/cheadercodec.h>
       
    21 
       
    22 /** A default header reader that just copies received raw data directly into single part
       
    23 	string header fields. NB would this be better placed in the Codec base class, by making
       
    24 	EncodeL and DecodeL non-pure virtual? Could therefore eliminate these three 'default'
       
    25 	classes.
       
    26 	@todo
       
    27 */
       
    28 class CHttpDefaultHeaderReader : public CHeaderReader
       
    29 	{
       
    30 public: // methods
       
    31 
       
    32 	static CHttpDefaultHeaderReader* NewL(RStringPool aStrPool);
       
    33 
       
    34 	virtual ~CHttpDefaultHeaderReader();
       
    35 
       
    36 private:	// methods from CHeaderReader
       
    37 
       
    38 	virtual void DecodeHeaderL(RHeaderField& aHeader);
       
    39 
       
    40 private: // methods
       
    41 
       
    42 	/** Constructor - stores a copy of the string pool handle
       
    43 	*/
       
    44 	CHttpDefaultHeaderReader(RStringPool aStringPool);
       
    45 
       
    46 private:	// attributes
       
    47 
       
    48 	RStringPool		iStringPool;
       
    49 
       
    50 	};
       
    51 
       
    52 #endif	// __CHTTPDEFAULTHEADERREADER_H__