diff -r 6b1d113cdff3 -r 6638e7f4bd8f telephonyserver/etelpacketdata/cetel/pckt_hold.cpp --- a/telephonyserver/etelpacketdata/cetel/pckt_hold.cpp Mon May 03 13:37:20 2010 +0300 +++ b/telephonyserver/etelpacketdata/cetel/pckt_hold.cpp Thu May 06 15:10:38 2010 +0100 @@ -1,146 +1,146 @@ -// Copyright (c) 2002-2009 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: -// Packet_HOLD.CPP -// ETel Multimode Packet Data API -// GPRS Rel97/98, CDMAOne, CDMA2000, Rel99 and Rel4. -// -// - -#include - -// ETel Packet data header files -#include "pcktptr.h" - -CEtelPacketPtrHolder::CEtelPacketPtrHolder() - {} - -CEtelPacketPtrHolder::~CEtelPacketPtrHolder() -/** - * Destructor - */ - { - iPtrArray.Close(); - iPtrCArray.Close(); - } - -void CEtelPacketPtrHolder::ConstructL(const TInt aSizeOfPtrArray,TInt aSizeOfPtrCArray) -/** - * ConstructL() method - Initializes the array of pointers. - */ - { - TPtr8 ptr(NULL,0); - TInt i; - for (i=0;iConstructL(aSizeOfPtrArray,aSizeOfPtrCArray); - CleanupStack::Pop(); - return p; - } - -CPacketPtrHolder::CPacketPtrHolder() - :CEtelPacketPtrHolder(), - iStoreMbmsPtr(NULL,0,0) - {} - -CPacketPtrHolder::~CPacketPtrHolder() - { - delete iStoreMbmsBuf; - } - -CPacketContextPtrHolder* CPacketContextPtrHolder::NewL(const TInt aSizeOfPtrArray,TInt aSizeOfPtrCArray) -/** - * Two phase constructor. - * - * @param aSizeOfPtrArray Size of the array containing the pointers. - */ - { - CPacketContextPtrHolder* p = new (ELeave) CPacketContextPtrHolder(); - CleanupStack::PushL(p); - p->ConstructL(aSizeOfPtrArray,aSizeOfPtrCArray); - CleanupStack::Pop(); - return p; - } - -CPacketContextPtrHolder::CPacketContextPtrHolder() - :CEtelPacketPtrHolder(), - iStoreNetworkPtr(NULL,0,0) - {} - -CPacketContextPtrHolder::~CPacketContextPtrHolder() - { - delete iStoreNetworkBuf; - } - -CPacketQoSPtrHolder* CPacketQoSPtrHolder::NewL(const TInt aSizeOfPtrArray, TInt aSizeOfPtrCArray) -/** - * Two phase constructor. - * - * @param aSizeOfPtrArray Size of the array containing the pointers. - */ - { - CPacketQoSPtrHolder* p = new (ELeave) CPacketQoSPtrHolder(); - CleanupStack::PushL(p); - p->ConstructL(aSizeOfPtrArray,aSizeOfPtrCArray); - CleanupStack::Pop(); - return p; - } - -CPacketQoSPtrHolder::CPacketQoSPtrHolder() - :CEtelPacketPtrHolder() - {} - -CPacketQoSPtrHolder::~CPacketQoSPtrHolder() - {} - - +// Copyright (c) 2002-2009 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: +// Packet_HOLD.CPP +// ETel Multimode Packet Data API +// GPRS Rel97/98, CDMAOne, CDMA2000, Rel99 and Rel4. +// +// + +#include + +// ETel Packet data header files +#include "pcktptr.h" + +CEtelPacketPtrHolder::CEtelPacketPtrHolder() + {} + +CEtelPacketPtrHolder::~CEtelPacketPtrHolder() +/** + * Destructor + */ + { + iPtrArray.Close(); + iPtrCArray.Close(); + } + +void CEtelPacketPtrHolder::ConstructL(const TInt aSizeOfPtrArray,TInt aSizeOfPtrCArray) +/** + * ConstructL() method - Initializes the array of pointers. + */ + { + TPtr8 ptr(NULL,0); + TInt i; + for (i=0;iConstructL(aSizeOfPtrArray,aSizeOfPtrCArray); + CleanupStack::Pop(); + return p; + } + +CPacketPtrHolder::CPacketPtrHolder() + :CEtelPacketPtrHolder(), + iStoreMbmsPtr(NULL,0,0) + {} + +CPacketPtrHolder::~CPacketPtrHolder() + { + delete iStoreMbmsBuf; + } + +CPacketContextPtrHolder* CPacketContextPtrHolder::NewL(const TInt aSizeOfPtrArray,TInt aSizeOfPtrCArray) +/** + * Two phase constructor. + * + * @param aSizeOfPtrArray Size of the array containing the pointers. + */ + { + CPacketContextPtrHolder* p = new (ELeave) CPacketContextPtrHolder(); + CleanupStack::PushL(p); + p->ConstructL(aSizeOfPtrArray,aSizeOfPtrCArray); + CleanupStack::Pop(); + return p; + } + +CPacketContextPtrHolder::CPacketContextPtrHolder() + :CEtelPacketPtrHolder(), + iStoreNetworkPtr(NULL,0,0) + {} + +CPacketContextPtrHolder::~CPacketContextPtrHolder() + { + delete iStoreNetworkBuf; + } + +CPacketQoSPtrHolder* CPacketQoSPtrHolder::NewL(const TInt aSizeOfPtrArray, TInt aSizeOfPtrCArray) +/** + * Two phase constructor. + * + * @param aSizeOfPtrArray Size of the array containing the pointers. + */ + { + CPacketQoSPtrHolder* p = new (ELeave) CPacketQoSPtrHolder(); + CleanupStack::PushL(p); + p->ConstructL(aSizeOfPtrArray,aSizeOfPtrCArray); + CleanupStack::Pop(); + return p; + } + +CPacketQoSPtrHolder::CPacketQoSPtrHolder() + :CEtelPacketPtrHolder() + {} + +CPacketQoSPtrHolder::~CPacketQoSPtrHolder() + {} + +