diff -r 000000000000 -r 33413c0669b9 vpnengine/dmadengine/src/dmadcommand.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vpnengine/dmadengine/src/dmadcommand.cpp Thu Dec 17 09:14:51 2009 +0200 @@ -0,0 +1,66 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Implementation of CDmAdCommand. +* +*/ + + +#include "dmadcommand.h" +#include "vpnlogger.h" + + +CDmAdCommand* CDmAdCommand::NewL(const TDesC8& aUri, const TInt aStatusRef, TBool aLeaf) + { + TRACE("CDmAdCommand::NewL"); + + CDmAdCommand *self = NewLC(aUri, aStatusRef, aLeaf); + CleanupStack::Pop(); // self + return self; + } + +CDmAdCommand* CDmAdCommand::NewLC(const TDesC8& aUri, const TInt aStatusRef, TBool aLeaf) + { + CDmAdCommand *self = new (ELeave) CDmAdCommand(aStatusRef, aLeaf); + CleanupStack::PushL(self); + self->ConstructL(aUri); + return self; + } + +void CDmAdCommand::ConstructL(const TDesC8& /*aUri*/) + { + TRACE("CDmAdCommand::ConstructL"); + } + +CDmAdCommand::CDmAdCommand(const TInt aStatusRef, TBool aLeaf) : + iStatusRef(aStatusRef), iStatus(KErrNone), iLeaf(aLeaf) + { + TRACE("CDmAdCommand::CDmAdCommand"); + } + +CDmAdCommand::~CDmAdCommand() + { + TRACE("CDmAdCommand::~CDmAdCommand"); + } + +void CDmAdCommand::CleanupOperationDeleteCArrayPtr(TAny* aPtr) + { + if (aPtr == NULL) + { + return; + } + CArrayPtr* array = REINTERPRET_CAST(CArrayPtr*,aPtr); + array->ResetAndDestroy(); + delete array; + } +