|
1 // Copyright (c) 2006-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 // networkconfigextensionprovision.cpp |
|
15 // |
|
16 // |
|
17 // |
|
18 |
|
19 #include "netcfgextprov.h" |
|
20 #include <commsdattypeinfov1_1.h> |
|
21 |
|
22 |
|
23 #ifdef _DEBUG |
|
24 // Panic category for "absolutely impossible!" vanilla ASSERT()-type panics from this module |
|
25 // (if it could happen through user error then you should give it an explicit, documented, category + code) |
|
26 _LIT(KSpecAssert_NifManNetCfgExtn, "NifManNetCfgExtP"); |
|
27 #endif |
|
28 |
|
29 EXPORT_C CNetCfgExtProvision* CNetCfgExtProvision::NewL() |
|
30 { |
|
31 return new(ELeave) CNetCfgExtProvision; |
|
32 } |
|
33 |
|
34 EXPORT_C void CNetCfgExtProvision::InitialiseConfigL(ESock::CCommsDatIapView* aIapView) |
|
35 { |
|
36 __ASSERT_DEBUG(aIapView, User::Panic(KSpecAssert_NifManNetCfgExtn, 1)); |
|
37 |
|
38 HBufC* name; |
|
39 |
|
40 iIap = aIapView->IapId(); |
|
41 aIapView->GetIntL(CommsDat::KCDTIdIAPNetwork, iNetworkId); |
|
42 |
|
43 aIapView->GetTableCommonTextFieldL(ESock::CCommsDatIapView::EConfigDaemonName, name); |
|
44 iConfigDaemonName.Copy(name->Des()); |
|
45 delete name; |
|
46 name = NULL; |
|
47 |
|
48 aIapView->GetTableCommonTextFieldL(ESock::CCommsDatIapView::EConfigDaemonManagerName, name); |
|
49 iConfigDaemonManagerName.Copy(name->Des()); |
|
50 delete name; |
|
51 name = NULL; |
|
52 } |
|
53 |
|
54 EXPORT_C CNetCfgExtProvision::~CNetCfgExtProvision() |
|
55 { |
|
56 } |
|
57 |
|
58 |
|
59 START_ATTRIBUTE_TABLE( CNetCfgExtProvision, CNetCfgExtProvision::EUid, CNetCfgExtProvision::ETypeId ) |
|
60 END_ATTRIBUTE_TABLE() |
|
61 |