equal
deleted
inserted
replaced
18 #include <apgtask.h> |
18 #include <apgtask.h> |
19 #include <apgwgnam.h> |
19 #include <apgwgnam.h> |
20 #include <schtime.h> |
20 #include <schtime.h> |
21 #include <csch_cli.h> |
21 #include <csch_cli.h> |
22 #include <e32property.h> |
22 #include <e32property.h> |
23 #include <ApUtils.h> |
23 #include <cmmanager.h> |
24 #include <commdb.h> |
24 #include <cmconnectionmethod.h> |
25 #include <DevManInternalCRKeys.h> |
25 #include <DevManInternalCRKeys.h> |
26 #include <nsmlconstants.h> |
26 #include <nsmlconstants.h> |
27 #include <centralrepository.h> |
27 #include <centralrepository.h> |
28 #include <sysversioninfo.h> |
28 #include <sysversioninfo.h> |
29 #include <hbstackedlayout.h> |
29 #include <hbstackedlayout.h> |
2352 // -------------------------------------------------------------------------- |
2352 // -------------------------------------------------------------------------- |
2353 // |
2353 // |
2354 TBool CFotaServer::CheckIapExistsL(TUint32 aIapId) |
2354 TBool CFotaServer::CheckIapExistsL(TUint32 aIapId) |
2355 { |
2355 { |
2356 FLOG(_L("CFotaServer::CheckIapExistsL >>")); |
2356 FLOG(_L("CFotaServer::CheckIapExistsL >>")); |
2357 CCommsDatabase* commDb = CCommsDatabase::NewL(EDatabaseTypeIAP); |
2357 TBool exists = EFalse; |
2358 CleanupStack::PushL(commDb); |
2358 RCmManager cmManager; |
2359 CApUtils* aputils = CApUtils::NewLC(*commDb); |
2359 cmManager.OpenLC(); |
2360 TBool exists = aputils->IAPExistsL(aIapId); |
2360 RCmConnectionMethod conn; |
2361 CleanupStack::PopAndDestroy(aputils); |
2361 TRAPD(err, conn = cmManager.ConnectionMethodL( aIapId )); |
2362 CleanupStack::PopAndDestroy(commDb); |
2362 if(err == KErrNone)//connection method exists |
|
2363 exists = ETrue; |
|
2364 conn.Close(); |
|
2365 CleanupStack::PopAndDestroy();//cmManager |
2363 FLOG(_L("CFotaServer::CheckIapExistsL <<")); |
2366 FLOG(_L("CFotaServer::CheckIapExistsL <<")); |
2364 return exists; |
2367 return exists; |
2365 } |
2368 } |
2366 |
2369 |
2367 // -------------------------------------------------------------------------- |
2370 // -------------------------------------------------------------------------- |