messagingfw/biomsgfw/wappsrc/IpBearerData.cpp
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 // Copyright (c) 2003-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 "IpBearerData.h"
       
    17 #include <ipaddr.h>
       
    18 
       
    19 CWapIpBearerData*  CWapIpBearerData::NewLC()
       
    20 	{	
       
    21 	CWapIpBearerData*  self = new (ELeave) CWapIpBearerData;
       
    22 	CleanupStack::PushL(self);
       
    23 	self->ConstructL();
       
    24 	return self;
       
    25 	}
       
    26 
       
    27 CWapIpBearerData*  CWapIpBearerData::NewL()
       
    28 	{
       
    29 	CWapIpBearerData*  self;
       
    30 	self = CWapIpBearerData::NewLC();
       
    31 	CleanupStack::Pop();
       
    32 	return self;
       
    33 	}
       
    34 
       
    35 void CWapIpBearerData::ConstructL()
       
    36 	{
       
    37 	iIapId = 0;
       
    38 	iGatewayAddr = CIpAddress::NewL();
       
    39 	}
       
    40 
       
    41 CWapIpBearerData::~CWapIpBearerData()
       
    42 	{
       
    43 	delete iGatewayAddr;
       
    44 	}