applayerpluginsandutils/httpprotocolplugins/WspProtocolHandler/CWspHeaderCodePages.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 __CWSPHEADERCODEPAGES_H__
       
    17 #define __CWSPHEADERCODEPAGES_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <wsp/mwspheadercodepages.h>
       
    21 
       
    22 class CHeaderCodePage;
       
    23 
       
    24 /**	The CWspHeaderCodePages class represents a set of Extended Methods 
       
    25 	capabilities. It implements the MWspHeaderCodePages interface.
       
    26 	@see			MWspHeaderCodePages
       
    27 */
       
    28 //##ModelId=3C4C41B201CD
       
    29 class CWspHeaderCodePages : public CBase, public MWspHeaderCodePages
       
    30 	{
       
    31 public:	// Methods
       
    32 
       
    33 /**	@fn				NewL()
       
    34 	Static factory constructor.
       
    35 	@since			7.0
       
    36 */
       
    37 	//##ModelId=3C4C41B20232
       
    38 	static CWspHeaderCodePages* NewL();
       
    39 
       
    40 /**	@fn				~CWspHeaderCodePages()
       
    41 	Standard destructor.
       
    42 	@since			7.0
       
    43 */
       
    44 	//##ModelId=3C4C41B20231
       
    45 	~CWspHeaderCodePages();
       
    46 
       
    47 public:	// Methods from MWspHeaderCodePages
       
    48 
       
    49 /** @fn				Start() const
       
    50 	@see			MWspHeaderCodePages
       
    51 */
       
    52 	//##ModelId=3C4C41B2022A
       
    53 	virtual TInt Start() const;
       
    54 
       
    55 /** @fn				GetNext(TUint8& aPageCode, TPtrC8& aPageName) const
       
    56 	@see			MWspHeaderCodePages
       
    57 */
       
    58 	//##ModelId=3C4C41B20227
       
    59 	virtual TInt GetNext(TUint8& aPageCode, TPtrC8& aPageName) const;
       
    60 
       
    61 /** @fn				Reset()
       
    62 	@see			MWspHeaderCodePages
       
    63 */
       
    64 	//##ModelId=3C4C41B2021F
       
    65 	virtual void Reset();
       
    66 
       
    67 /** @fn				AddHeaderCodePageL(TUint8 aPageCode, const TDesC8& aPageName)
       
    68 	@see			MWspHeaderCodePages
       
    69 */
       
    70 	//##ModelId=3C4C41B20215
       
    71 	virtual void AddHeaderCodePageL(TUint8 aPageCode, const TDesC8& aPageName);
       
    72 
       
    73 private:	// Methods
       
    74 
       
    75 /**	@fn				CWspHeaderCodePages()
       
    76 	First phase constructor.
       
    77 	@since			7.0
       
    78 */
       
    79 	//##ModelId=3C4C41B20214
       
    80 	CWspHeaderCodePages();
       
    81 
       
    82 private:	// Attributes
       
    83 
       
    84 	/** An array of header code pages.
       
    85 	*/
       
    86 	//##ModelId=3C4C41B2020B
       
    87 	RPointerArray<CHeaderCodePage>		iCodePages;
       
    88 
       
    89 	/** An index with the current position in the array. Is mutable to maintain
       
    90 		logical const-ness.
       
    91 	*/
       
    92 	//##ModelId=3C4C41B201EB
       
    93 	mutable TInt						iIndex;
       
    94 
       
    95 	};
       
    96 
       
    97 #endif	// __CWSPHEADERCODEPAGES_H__