1724 tableView->WriteBoolL(TPtrC(SERVICE_DISABLE_PLAIN_TEXT_AUTH), |
1724 tableView->WriteBoolL(TPtrC(SERVICE_DISABLE_PLAIN_TEXT_AUTH), |
1725 tObject); |
1725 tObject); |
1726 tableView->PutRecordChanges(); |
1726 tableView->PutRecordChanges(); |
1727 if (serviceReLock) |
1727 if (serviceReLock) |
1728 { |
1728 { |
1729 DoProtectIAPRecordL(iapID4, ETrue); |
1729 TInt reclockerriap = DoProtectIAPRecordL(iapID4, ETrue); |
1730 TInt reclockerr = DoProtectServiceRecordL(iISPId, ETrue); |
1730 TInt reclockerr = DoProtectServiceRecordL(iISPId, ETrue); |
|
1731 DBG_ARGS8( |
|
1732 _S8( |
|
1733 "CNSmlInternetAdapter::AddLeafObjectL ,UnProtecting IAP returned code = %d"), |
|
1734 reclockerriap); |
1731 DBG_ARGS8( |
1735 DBG_ARGS8( |
1732 _S8( |
1736 _S8( |
1733 "CNSmlInternetAdapter::AddLeafObjectL ,UnProtecting ServiceRecord returned code = %d"), |
1737 "CNSmlInternetAdapter::AddLeafObjectL ,UnProtecting ServiceRecord returned code = %d"), |
1734 reclockerr); |
1738 reclockerr); |
1735 if (reclockerr == KErrNone) |
1739 if ((reclockerr == KErrNone) && (reclockerriap == KErrNone)) |
1736 serviceReLock = EFalse; |
1740 serviceReLock = EFalse; |
1737 } |
1741 } |
1738 CleanupStack::PopAndDestroy(); // tableView |
1742 CleanupStack::PopAndDestroy(); // tableView |
1739 } |
1743 } |
1740 else |
1744 else |
3036 |
3040 |
3037 // IAP-table NetworkId Fetch |
3041 // IAP-table NetworkId Fetch |
3038 CCommsDbTableView* networkView = |
3042 CCommsDbTableView* networkView = |
3039 iDatabase->OpenViewMatchingUintLC(TPtrC(IAP), TPtrC( |
3043 iDatabase->OpenViewMatchingUintLC(TPtrC(IAP), TPtrC( |
3040 COMMDB_ID), iapID); |
3044 COMMDB_ID), iapID); |
3041 networkView->GotoFirstRecord(); |
3045 errorCode = networkView->GotoFirstRecord(); |
3042 TRAPD(leavecode, networkView->ReadUintL(TPtrC(IAP_NETWORK), |
3046 if (errorCode == KErrNone) |
|
3047 { |
|
3048 TRAPD(leavecode, networkView->ReadUintL(TPtrC(IAP_NETWORK), |
3043 iISPId)); |
3049 iISPId)); |
3044 CleanupStack::PopAndDestroy(); // networkView |
3050 CleanupStack::PopAndDestroy(); // networkView |
3045 if (leavecode != 0) |
3051 if (leavecode != 0) |
3046 { |
3052 { |
3047 _DBG_FILE( |
3053 _DBG_FILE( |
3048 "CNSmlInternetAdapter::FetchLeafObjectL(internal)()(): ENotFound end"); |
3054 "CNSmlInternetAdapter::FetchLeafObjectL(internal)()(): ENotFound end"); |
3049 CleanupStack::PopAndDestroy(pushed); |
3055 CleanupStack::PopAndDestroy(pushed); |
3050 return CSmlDmAdapter::ENotFound; |
3056 return CSmlDmAdapter::ENotFound; |
3051 } |
3057 } |
|
3058 } |
|
3059 else |
|
3060 { |
|
3061 CleanupStack::PopAndDestroy(); // networkView |
|
3062 _DBG_FILE( |
|
3063 "CNSmlInternetAdapter::FetchLeafObjectL(internal)()(): ENotFound end"); |
|
3064 CleanupStack::PopAndDestroy(pushed); |
|
3065 return CSmlDmAdapter::ENotFound; |
|
3066 } |
3052 |
3067 |
3053 CCommsDbTableView* tableView = iDatabase->OpenViewMatchingUintLC( |
3068 CCommsDbTableView* tableView = iDatabase->OpenViewMatchingUintLC( |
3054 TPtrC(NETWORK), TPtrC(COMMDB_ID), iISPId); |
3069 TPtrC(NETWORK), TPtrC(COMMDB_ID), iISPId); |
3055 |
3070 |
3056 errorCode = tableView->GotoFirstRecord(); |
3071 errorCode = tableView->GotoFirstRecord(); |
3321 |
3336 |
3322 iISPId = IntLUID(aLUID); |
3337 iISPId = IntLUID(aLUID); |
3323 |
3338 |
3324 CCommsDbTableView* nwidView = iDatabase->OpenViewMatchingUintLC( |
3339 CCommsDbTableView* nwidView = iDatabase->OpenViewMatchingUintLC( |
3325 TPtrC(IAP), TPtrC(COMMDB_ID), iISPId); |
3340 TPtrC(IAP), TPtrC(COMMDB_ID), iISPId); |
3326 nwidView->GotoFirstRecord(); |
3341 if (nwidView->GotoFirstRecord() == KErrNone) |
3327 nwidView->ReadUintL(TPtrC(IAP_NETWORK), iISPId); |
3342 { |
|
3343 nwidView->ReadUintL(TPtrC(IAP_NETWORK), iISPId); |
|
3344 aObject.InsertL(aObject.Size(), SetIntObjectLC(iISPId)); |
|
3345 pushed++; |
|
3346 } |
3328 CleanupStack::PopAndDestroy(); // nwidView |
3347 CleanupStack::PopAndDestroy(); // nwidView |
3329 |
3348 } |
3330 aObject.InsertL(aObject.Size(), SetIntObjectLC(iISPId)); |
|
3331 pushed++; |
|
3332 } |
|
3333 else if (aURI.Match(_L8("AP/*/Px/*/PortNbr")) != KErrNotFound) |
3349 else if (aURI.Match(_L8("AP/*/Px/*/PortNbr")) != KErrNotFound) |
3334 { |
3350 { |
3335 _DBG_FILE( |
3351 _DBG_FILE( |
3336 "CNSmlInternetAdapter::FetchLeafObjectL(internal)()(): PortNbr"); |
3352 "CNSmlInternetAdapter::FetchLeafObjectL(internal)()(): PortNbr"); |
3337 DBG_ARGS8(_S8("iISPId = %d "), iISPId); |
3353 DBG_ARGS8(_S8("iISPId = %d "), iISPId); |