applayerpluginsandutils/httpprotocolplugins/WspProtocolHandler/CExtendedMethod.cpp
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 #include "CExtendedMethod.h"
       
    17 
       
    18 CExtendedMethod* CExtendedMethod::NewL(TUint8 aPDUType, const TDesC8& aMethodName)
       
    19 	{
       
    20 	CExtendedMethod* self = new (ELeave) CExtendedMethod(aPDUType);
       
    21 	CleanupStack::PushL(self);
       
    22 	self->ConstructL(aMethodName);
       
    23 	CleanupStack::Pop(self);
       
    24 	return self;
       
    25 	}
       
    26 
       
    27 CExtendedMethod::~CExtendedMethod()
       
    28 	{
       
    29 	delete iName;
       
    30 	}
       
    31 
       
    32 CExtendedMethod::CExtendedMethod(TUint8 aPDUType)
       
    33 : CBase(), iType(aPDUType)
       
    34 	{
       
    35 	}
       
    36 
       
    37 void CExtendedMethod::ConstructL(const TDesC8& aMethodName)
       
    38 	{
       
    39 	iName = aMethodName.AllocL();
       
    40 	}