diff -r d2517372cc44 -r ae69c2e8bc34 fotaapplication/fotaserver/src/FotaNetworkRegStatus.cpp --- a/fotaapplication/fotaserver/src/FotaNetworkRegStatus.cpp Tue Sep 28 17:53:08 2010 +0530 +++ b/fotaapplication/fotaserver/src/FotaNetworkRegStatus.cpp Fri Oct 15 11:46:45 2010 +0530 @@ -312,81 +312,5 @@ return status; } -// ----------------------------------------------------------------------------- -// CFotaNetworkRegStatus::IsConnectionPossibleL -// Checks whether the network connection is possible in the given IAP Id -// This method can leave -// ----------------------------------------------------------------------------- -/*TBool CFotaNetworkRegStatus::IsConnectionPossibleL(TInt aIapid) - { - FLOG(_L("CFotaNetworkRegStatus::IsConnectionPossibleL >>")); - TBool status(EFalse); - - TUint32 bearer = FindBearerL(aIapid); - if (bearer == KUidPacketDataBearerType) - { - FLOG(_L("Bearer is Packet data")); - if (CheckGlobalRFState() && CheckNetworkRegStateL()) - { - FLOG(_L("Network is up and connection is possible ")); - status = ETrue; - } - else - { - FLOG(_L("Network is not up and connection is not possible ")); - status = EFalse; - } - } - else if (bearer == KUidWlanBearerType)//for wlan or other bearers - { - FLOG(_L("Bearer is wlan and proceeding for download ")); - //proceed & this else loop to be removed - status = ETrue; - } - else - { - FLOG(_L("Bearer is not packet data or WLAN")); - } - - FLOG(_L("CFotaNetworkRegStatus::IsConnectionPossibleL, status = %d <<"), - status); - return status; - }*/ - -// ---------------------------------------------------------------------------------------- -// CFotaDownload::FindBearerId -// Finds the Bearer Id for a given IAP Id -// ---------------------------------------------------------------------------------------- -/*TUint32 CFotaNetworkRegStatus::FindBearerL(TInt aIapId) - { - FLOG(_L("CFotaNetworkRegStatus::FindBearerL: %d"), aIapId); - TUint32 bearer = 0; - TInt err(KErrNone); - // Query CM Id - TInt cmId(aIapId); - RCmManagerExt CmManagerExt; - TRAP( err, CmManagerExt.OpenL() ); - FLOG(_L("CmManagerExt.OpenL() with error as %d"), err); - if (err == KErrNone) - { - RCmConnectionMethodExt cm; - TRAP( err, cm = CmManagerExt.ConnectionMethodL( cmId ) ); - FLOG(_L("CmManagerExt.ConnectionMethodL with error as %d"), err); - if (err == KErrNone) - { - CleanupClosePushL(cm); - FLOG(_L("cm pushed to cleanupstack ")); - bearer = cm.GetIntAttributeL(CMManager::ECmBearerType); - FLOG(_L("bearer is %d "), bearer); - CleanupStack::PopAndDestroy(); // cm - FLOG(_L("cm poped & destroyed from cleanupstack ")); - } - - CmManagerExt.Close(); - FLOG(_L("CmManagerExt closed ")); - } - FLOG(_L("CFotaNetworkRegStatus::FindBearerL end with bearer: %d"), bearer); - return bearer; - }*/ // End of File