applayerpluginsandutils/httpprotocolplugins/WspProtocolHandler/CExtendedMethod.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 __CEXTENDEDMETHOD_H__
       
    17 #define __CEXTENDEDMETHOD_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 /**	The CExtendedMethod class represents the Extended Method capability as 
       
    22 	defined by the WSP Specification, July 2001.
       
    23 */
       
    24 //##ModelId=3C4C41A0005F
       
    25 class CExtendedMethod : public CBase
       
    26 	{
       
    27 public:	// Methods
       
    28 
       
    29 /**	
       
    30 	Static factory constructor.
       
    31 	@since			7.0
       
    32 	@leave		This function will leave if the object cannot be constructed.
       
    33 	@param			aPDUType		The PDU type assigned to the method name.
       
    34 	@param			aMethodName		A reference to a buffer with the method name.
       
    35 */
       
    36 	//##ModelId=3C4C41A0009D
       
    37 	static CExtendedMethod* NewL(TUint8 aPDUType, const TDesC8& aMethodName);
       
    38 
       
    39 /**	
       
    40 	Standard destrcutor.
       
    41 	@since			7.0
       
    42 */
       
    43 	//##ModelId=3C4C41A0009C
       
    44 	~CExtendedMethod();
       
    45 
       
    46 /**	
       
    47 	Returns the PDU type for this method.
       
    48 	@since			7.0
       
    49 	@return			A byte containing the PDU type assigned to the method name.
       
    50 */
       
    51 	//##ModelId=3C4C41A0009B
       
    52 	inline TUint8 GetPDUType() const;
       
    53 
       
    54 /**	
       
    55 	Returns the method name.
       
    56 	@since			7.0
       
    57 	@return			A const reference to the buffer containg the method name.
       
    58 */
       
    59 	//##ModelId=3C4C41A00095
       
    60 	inline const TDesC8& GetMethodName() const;
       
    61 
       
    62 private:	// Methods
       
    63 
       
    64 /**	
       
    65 	First phase constuctor.
       
    66 	@since			7.0
       
    67 	@param			aPDUType		The PDU type assigned to the method name.
       
    68 */
       
    69 	//##ModelId=3C4C41A00093
       
    70 	CExtendedMethod(TUint8 aPDUType);
       
    71 
       
    72 /**	
       
    73 	Second phase constructor. Does any necessary allocations.
       
    74 	@since			7.0
       
    75 	@param			aMethodName		A reference to a buffer with the method name.
       
    76 */
       
    77 	//##ModelId=3C4C41A00091
       
    78 	void ConstructL(const TDesC8& aMethodName);
       
    79 
       
    80 private:	// Attributes
       
    81 
       
    82 	/** The PDU type assigned to the method specified by iMethodName.
       
    83 	*/
       
    84 	//##ModelId=3C4C41A00089
       
    85 	TUint8		iType;
       
    86 
       
    87 	/**	A buffer containing the method name.
       
    88 	*/
       
    89 	//##ModelId=3C4C41A0007F
       
    90 	HBufC8*		iName;
       
    91 
       
    92 	};
       
    93 
       
    94 #include "CExtendedMethod.inl"
       
    95 
       
    96 #endif	// __CEXTENDEDMETHOD_H__