browserutilities/downloadmgr/DownloadMgrServEng/Src/HttpClientAppInstance.cpp
branchRCL_3
changeset 36 c711bdda59f4
parent 26 cb62a4f66ebe
child 48 79859ed3eea9
equal deleted inserted replaced
35:1f3c3f2f5b0a 36:c711bdda59f4
   558     switch( aAttribute )
   558     switch( aAttribute )
   559         {
   559         {
   560         case EDlMgrConnectionName:
   560         case EDlMgrConnectionName:
   561             {
   561             {
   562             iConnHandler->SetConnectionNameL( aValue );
   562             iConnHandler->SetConnectionNameL( aValue );
       
   563             //resume Download if paused by OCC
       
   564             CArrayPtrFlat<CHttpDownload>* downloads = iClientApp->Downloads();
       
   565 
       
   566             for( TInt i = 0; i < downloads->Count()  ; ++i )
       
   567                 {
       
   568                 if( (*downloads)[i]->ClientAppInstance() == this )
       
   569                     {
       
   570                     // this won't surely leave on this call
       
   571                     if((*downloads)[i]->GetRetryFlag())
       
   572                         {
       
   573                         TRAP_IGNORE( (*downloads)[i]->StartL() );                      
       
   574                         (*downloads)[i]->SetRetryFlag(EFalse);
       
   575                         }
       
   576                     
       
   577                     }
       
   578                 }
       
   579 
   563             }
   580             }
   564             break;
   581             break;
   565 
   582 
   566         default:
   583         default:
   567             {
   584             {