applayerpluginsandutils/httpprotocolplugins/WspProtocolHandler/CWspUnknownCapabilities.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 __CWSPUNKNOWNCAPABILITIES_H__
       
    17 #define __CWSPUNKNOWNCAPABILITIES_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <wsp/mwspunknowncapabilities.h>
       
    21 
       
    22 class CUnknownCapability;
       
    23 
       
    24 /**	The CWspUnknownCapabilities class represents a set of Extended Methods 
       
    25 	capabilities. It implements the MWspUnknownCapabilities interface.
       
    26 	@see			MWspHeaderCoMWspUnknownCapabilitiesdePages
       
    27 */
       
    28 //##ModelId=3C4C41AC02B5
       
    29 class CWspUnknownCapabilities : public CBase, public MWspUnknownCapabilities
       
    30 	{
       
    31 public:	// Methods
       
    32 
       
    33 /**	@fn				NewL()
       
    34 	Static factory constructor.
       
    35 	@since			7.0
       
    36 */
       
    37 	//##ModelId=3C4C41AC031A
       
    38 	static CWspUnknownCapabilities* NewL();
       
    39 
       
    40 /**	@fn				~CWspUnknownCapabilities()
       
    41 	Standard destructor.
       
    42 	@since			7.0
       
    43 */
       
    44 	//##ModelId=3C4C41AC0319
       
    45 	~CWspUnknownCapabilities();
       
    46 
       
    47 public:	// Methods from MWspUnknownCapabilities
       
    48 
       
    49 /** @fn				Start() const
       
    50 	@see			MWspUnknownCapabilities
       
    51 */
       
    52 	//##ModelId=3C4C41AC0311
       
    53 	virtual TInt Start() const;
       
    54 
       
    55 /** @fn				GetNext(TPtrC8& aIdentifier, TPtrC8& aValue) const
       
    56 	@see			MWspUnknownCapabilities
       
    57 */
       
    58 	//##ModelId=3C4C41AC0308
       
    59 	virtual TInt GetNext(TPtrC8& aIdentifier, TPtrC8& aValue) const;
       
    60 
       
    61 /** @fn				Reset()
       
    62 	@see			MWspUnknownCapabilities
       
    63 */
       
    64 	//##ModelId=3C4C41AC0307
       
    65 	virtual void Reset();
       
    66 
       
    67 /** @fn				AddUnknownCapabilityL(const TDesC8& aIdentifier, const TDesC8& aValue)
       
    68 	@see			MWspUnknownCapabilities
       
    69 */
       
    70 	//##ModelId=3C4C41AC02FC
       
    71 	virtual void AddUnknownCapabilityL(const TDesC8& aIdentifier, const TDesC8& aValue);
       
    72 
       
    73 private:	// Methods
       
    74 
       
    75 /**	@fn				CWspUnknownCapabilities()
       
    76 	First phase constructor.
       
    77 	@since			7.0
       
    78 */
       
    79 	//##ModelId=3C4C41AC02FB
       
    80 	CWspUnknownCapabilities();
       
    81 
       
    82 private:	// Attributes
       
    83 
       
    84 	/** An array of unknown capabilities.
       
    85 	*/
       
    86 	//##ModelId=3C4C41AC02F1
       
    87 	RPointerArray<CUnknownCapability>		iUnknownCapabilities;
       
    88 
       
    89 	/** An index with the current position in the array. Is mutable to maintain
       
    90 		logical const-ness.
       
    91 	*/
       
    92 	//##ModelId=3C4C41AC02CD
       
    93 	mutable TInt							iIndex;
       
    94 
       
    95 	};
       
    96 
       
    97 #endif	// __CWSPUNKNOWNCAPABILITIES_H__