diff -r 92f864ef0288 -r ae54820ef82c iaupdate/IAD/firmwareupdate/src/iaupdatefwsynchandler.cpp --- a/iaupdate/IAD/firmwareupdate/src/iaupdatefwsynchandler.cpp Wed Jun 23 18:20:02 2010 +0300 +++ b/iaupdate/IAD/firmwareupdate/src/iaupdatefwsynchandler.cpp Tue Jul 06 14:23:31 2010 +0300 @@ -28,13 +28,15 @@ #include #include -#include +#include #include #include -#include +#include #include +#include + #include "iaupdateconnectionmethod.h" #include "iaupdateprivatecrkeys.h" #include "iaupdatefwfotamodel.h" @@ -424,16 +426,16 @@ CleanupStack::PopAndDestroy( cenrep ); cenrep = NULL; - RCmManagerExt cmManagerExt; - cmManagerExt.OpenL(); - CleanupClosePushL( cmManagerExt ); + RCmManager cmManager; + cmManager.OpenL(); + CleanupClosePushL( cmManager ); if ( connMethodId == -1 ) { //check what is the default connection by users TCmDefConnValue DCSetting; - cmManagerExt.ReadDefConnL( DCSetting ); + cmManager.ReadDefConnL( DCSetting ); switch ( DCSetting.iType ) @@ -442,13 +444,13 @@ case ECmDefConnAskOnce: { //go with the best IAP under internet snap - connectionMethodId = GetBestIAPInInternetSNAPL( cmManagerExt ); + connectionMethodId = GetBestIAPInInternetSNAPL( cmManager ); break; } case ECmDefConnDestination: { //go with the best IAP under this snap - connectionMethodId = GetBestIAPInThisSNAPL( cmManagerExt, DCSetting.iId ); + connectionMethodId = GetBestIAPInThisSNAPL( cmManager, DCSetting.iId ); break; } case ECmDefConnConnectionMethod: @@ -462,16 +464,16 @@ else if ( connMethodId == 0 ) { //no choice from user, we go with the best IAP under Internent SNAP - connectionMethodId = GetBestIAPInInternetSNAPL( cmManagerExt ); + connectionMethodId = GetBestIAPInInternetSNAPL( cmManager ); } else { // It was some SNAP value - connectionMethodId = GetBestIAPInThisSNAPL( cmManagerExt, connMethodId ); + connectionMethodId = GetBestIAPInThisSNAPL( cmManager, connMethodId ); } - CleanupStack::PopAndDestroy( &cmManagerExt ); + CleanupStack::PopAndDestroy( &cmManager ); return connectionMethodId; @@ -482,15 +484,15 @@ // CIAUpdateFWSyncHandler::GetBestIAPInInternetSNAPL // ----------------------------------------------------------------------------- // -TUint32 CIAUpdateFWSyncHandler::GetBestIAPInInternetSNAPL( RCmManagerExt& aCmManagerExt ) +TUint32 CIAUpdateFWSyncHandler::GetBestIAPInInternetSNAPL( RCmManager& aCmManager ) { //select IAP from Internet SNAP RArray destIdArray; - aCmManagerExt.AllDestinationsL( destIdArray ); + aCmManager.AllDestinationsL( destIdArray ); TUint32 InternetSNAPID = 0; for ( TInt i = 0; i< destIdArray.Count(); i++ ) { - RCmDestinationExt dest = aCmManagerExt.DestinationL( destIdArray[i] ); + RCmDestination dest = aCmManager.DestinationL( destIdArray[i] ); CleanupClosePushL( dest ); if ( dest.MetadataL( CMManager::ESnapMetadataInternet ) ) @@ -503,7 +505,7 @@ } destIdArray.Reset(); - return GetBestIAPInThisSNAPL( aCmManagerExt, InternetSNAPID ); + return GetBestIAPInThisSNAPL( aCmManager, InternetSNAPID ); } @@ -512,7 +514,7 @@ // CIAUpdateFWSyncHandler::GetBestIAPInThisSNAPL // ----------------------------------------------------------------------------- // -TUint32 CIAUpdateFWSyncHandler::GetBestIAPInThisSNAPL( RCmManagerExt& aCmManagerExt, TUint32 aSNAPID ) +TUint32 CIAUpdateFWSyncHandler::GetBestIAPInThisSNAPL( RCmManager& aCmManager, TUint32 aSNAPID ) { //get all usable IAPs TConnMonIapInfoBuf iapInfo; @@ -528,13 +530,13 @@ CleanupStack::PopAndDestroy( &connMon ); - RCmDestinationExt dest = aCmManagerExt.DestinationL( aSNAPID ); + RCmDestination dest = aCmManager.DestinationL( aSNAPID ); CleanupClosePushL( dest ); // Check whether the SNAP contains any IAP. for (TInt i = 0; i < dest.ConnectionMethodCount(); i++ ) { - RCmConnectionMethodExt cm = dest.ConnectionMethodL( i ); + RCmConnectionMethod cm = dest.ConnectionMethodL( i ); CleanupClosePushL( cm ); TUint32 iapid= cm.GetIntAttributeL( CMManager::ECmIapId );