fotaapplication/fotaserver/FotaServer/src/fotaSrvSession.cpp
branchRCL_3
changeset 23 007508d6e57b
parent 0 b497e44ab2fc
equal deleted inserted replaced
21:504e41245867 23:007508d6e57b
   281 		}
   281 		}
   282 		break;
   282 		break;
   283 
   283 
   284 	case EFotaTryResumeDownload:
   284 	case EFotaTryResumeDownload:
   285 		{
   285 		{
   286 		if (client == EOMADMAppUi )
   286 		if ( (client == EOMADMAppUi) || (client == ESoftwareChecker) )
   287 			{
   287 			{
   288 			FotaServer()->TryResumeDownloadL(ETrue); // user initiated
   288 			FotaServer()->TryResumeDownloadL(ETrue); // user initiated
   289 			aMessage.Complete( KErrNone );				
   289 			aMessage.Complete( KErrNone );				
   290 			}
   290 			}
   291 		else if (client == EFMSServer)
   291 		else if (client == EFMSServer)
   337 			aMessage.Complete (KErrArgument);
   337 			aMessage.Complete (KErrArgument);
   338 		//	<-		
   338 		//	<-		
   339 		state = FotaServer()->GetStateL(pkgid);
   339 		state = FotaServer()->GetStateL(pkgid);
   340 		//Protecting state 25. If any client other than DM UI queries for state, 25 should not be sent and 
   340 		//Protecting state 25. If any client other than DM UI queries for state, 25 should not be sent and 
   341 		//20 will be sent instead.
   341 		//20 will be sent instead.
   342 		if (client != EOMADMAppUi && state.iState == RFotaEngineSession::EDownloadProgressingWithResume)
   342 		if ( (client != EOMADMAppUi && client != ESoftwareChecker) && state.iState == RFotaEngineSession::EDownloadProgressingWithResume)
   343 			state.iState = RFotaEngineSession::EDownloadProgressing;
   343 			state.iState = RFotaEngineSession::EDownloadProgressing;
   344 		FLOG(_L( "CFotaSrvSession::ServiceL GETSTATE << %d" )
   344 		FLOG(_L( "CFotaSrvSession::ServiceL GETSTATE << %d" )
   345 				,state.iState);
   345 				,state.iState);
   346 		TPckg<RFotaEngineSession::TState>   pkg2(state.iState);
   346 		TPckg<RFotaEngineSession::TState>   pkg2(state.iState);
   347 		aMessage.Write (1, pkg2);
   347 		aMessage.Write (1, pkg2);