applayerpluginsandutils/httpprotocolplugins/httpheadercodec/chttpdefaultheaderwriter.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 __CHTTPDEFAULTHEADERWRITER_H__
       
    17 #define __CHTTPDEFAULTHEADERWRITER_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <http/framework/cheadercodec.h>
       
    21 
       
    22 /** A default header writer that just copies single part string header fields directly into
       
    23 	raw data.  NB would this be better placed in the Codec base class, by making EncodeL and
       
    24 	DecodeL non-pure virtual? Could therefore eliminate these three 'default' classes.
       
    25 	@todo
       
    26 */
       
    27 class CHttpDefaultHeaderWriter : public CHeaderWriter
       
    28 	{
       
    29 public: // methods
       
    30 
       
    31 	static CHttpDefaultHeaderWriter* NewL(RStringPool aStringPool);
       
    32 
       
    33 	virtual ~CHttpDefaultHeaderWriter();
       
    34 
       
    35 private:	// methods from CHeaderWriter
       
    36 
       
    37 	virtual void EncodeHeaderL(RHeaderField& aHeader);
       
    38 
       
    39 private:	// methods
       
    40 
       
    41 	CHttpDefaultHeaderWriter(RStringPool aStrignPool);
       
    42 
       
    43 private:	// attributes
       
    44 
       
    45 	RStringPool		iStringPool;
       
    46 
       
    47 	};
       
    48 
       
    49 #endif	// __CHTTPDEFAULTHEADERWRITER_H__