engine/src/HttpEventHandler.cpp
branchRCL_3
changeset 285 4d42a5e09930
parent 256 572d166c9421
child 305 dc1c3d779802
equal deleted inserted replaced
283:08a3356e8364 285:4d42a5e09930
    59 	return me;
    59 	return me;
    60 	}
    60 	}
    61 
    61 
    62 void CHttpEventHandler::MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent)
    62 void CHttpEventHandler::MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent)
    63 	{
    63 	{
       
    64 	DP1("CHttpEventHandler::MHFRunL, aEvent.iStatus=%d", aEvent.iStatus);
    64 	switch (aEvent.iStatus)
    65 	switch (aEvent.iStatus)
    65 		{
    66 		{
    66 		case THTTPEvent::EGotResponseHeaders:
    67 		case THTTPEvent::EGotResponseHeaders:
    67 			{
    68 			{
    68 			// HTTP response headers have been received. We can determine now if there is
    69 			// HTTP response headers have been received. We can determine now if there is
   429 	iSilent = aSilent;
   430 	iSilent = aSilent;
   430 	}
   431 	}
   431 
   432 
   432 void CHttpEventHandler::CloseSaveFile()
   433 void CHttpEventHandler::CloseSaveFile()
   433 {
   434 {
       
   435 	DP("CHttpEventHandler::CloseSaveFile BEGIN");
   434 	if(iRespBody != NULL)
   436 	if(iRespBody != NULL)
   435 	{		
   437 	{		
   436 		if(iRespBodyFile.SubSessionHandle() != 0)
   438 		if(iRespBodyFile.SubSessionHandle() != 0)
   437 			{
   439 			{
   438 			TInt size;
   440 			TInt size;
   439 			iRespBodyFile.Size(size);
   441 			iRespBodyFile.Size(size);
   440 			DP2("Closing file at size %d, bytes downloaded %d", size, iBytesDownloaded);
   442 			DP2("Closing file at size %d, bytes downloaded %d", size, iBytesDownloaded);
   441 			iRespBodyFile.Close();
   443 			iRespBodyFile.Close();
   442 			}
   444 			}
   443 	}
   445 	}
       
   446 	DP("CHttpEventHandler::CloseSaveFile BEGIN");
   444 }
   447 }
   445 
   448