equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-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 // NAPT utility declaration. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalTechnology |
|
21 */ |
|
22 #ifndef __NAPTUTIL__ |
|
23 #define __NAPTUTIL__ |
|
24 #include <e32std.h> |
|
25 #include <e32base.h> |
|
26 #include <nifman.h> |
|
27 #include <metadatabase.h> |
|
28 #include <commsdattypesv1_1.h> |
|
29 #include <in_sock.h> |
|
30 |
|
31 /** |
|
32 * |
|
33 * This calss is used to fectdh DHCP server IP address from commsdb and generates client IP for provisioning. |
|
34 * @internalTechnology |
|
35 * |
|
36 */ |
|
37 class TNaptUtil |
|
38 { |
|
39 public: |
|
40 static TInt GetClientIp(TInt aIapId, TUint32& aClientIp); |
|
41 private: |
|
42 static void GetClientIpFromCommsL(TInt aIapId, TUint32& aClientIp); |
|
43 static void OpenIAPViewLC(CMDBSession*& aSession, CCDIAPRecord*& aIapRecord, TInt aIapId); |
|
44 static void InitialServiceLinkL(CMDBSession* aDbSession, CCDIAPRecord* aIapRecord); |
|
45 }; |
|
46 #endif //__NAPTUTIL__ |
|
47 |