diff -r 000000000000 -r af10295192d8 tcpiputils/networkaddressandporttranslation/inc/naptutil.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tcpiputils/networkaddressandporttranslation/inc/naptutil.h Tue Jan 26 15:23:49 2010 +0200 @@ -0,0 +1,47 @@ +// Copyright (c) 2008-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: +// NAPT utility declaration. +// +// + +/** + @file + @internalTechnology +*/ +#ifndef __NAPTUTIL__ +#define __NAPTUTIL__ +#include +#include +#include +#include +#include +#include + +/** + * + * This calss is used to fectdh DHCP server IP address from commsdb and generates client IP for provisioning. + * @internalTechnology + * + */ +class TNaptUtil + { +public: + static TInt GetClientIp(TInt aIapId, TUint32& aClientIp); +private: + static void GetClientIpFromCommsL(TInt aIapId, TUint32& aClientIp); + static void OpenIAPViewLC(CMDBSession*& aSession, CCDIAPRecord*& aIapRecord, TInt aIapId); + static void InitialServiceLinkL(CMDBSession* aDbSession, CCDIAPRecord* aIapRecord); + }; +#endif //__NAPTUTIL__ + \ No newline at end of file