browserutilities/downloadmgr/DownloadMgrServEng/Src/HttpClientAppInstance.cpp
branchRCL_3
changeset 48 79859ed3eea9
parent 36 c711bdda59f4
child 49 919f36ff910f
equal deleted inserted replaced
47:e1bea15f9a39 48:79859ed3eea9
    13 *
    13 *
    14 * Description:  ?Description
    14 * Description:  ?Description
    15 *
    15 *
    16 */
    16 */
    17 
    17 
       
    18 
       
    19 
    18 // INCLUDE FILES
    20 // INCLUDE FILES
    19 #include    "HttpClientAppInstance.h"
    21 #include    "HttpClientAppInstance.h"
    20 #include    "HttpClientApp.h"
    22 #include    "HttpClientApp.h"
    21 #include    "HttpDownloadManagerServerEngine.h"
    23 #include    "HttpDownloadManagerServerEngine.h"
    22 #include    "HttpDownloadMgrLogger.h"
    24 #include "HttpDownloadMgrLogger.h"
    23 
    25 
    24 // EXTERNAL DATA STRUCTURES
    26 // EXTERNAL DATA STRUCTURES
    25 //extern  ?external_data;
    27 //extern  ?external_data;
    26 
    28 
    27 // EXTERNAL FUNCTION PROTOTYPES  
    29 // EXTERNAL FUNCTION PROTOTYPES  
   558     switch( aAttribute )
   560     switch( aAttribute )
   559         {
   561         {
   560         case EDlMgrConnectionName:
   562         case EDlMgrConnectionName:
   561             {
   563             {
   562             iConnHandler->SetConnectionNameL( aValue );
   564             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 
       
   580             }
   565             }
   581             break;
   566             break;
   582 
   567 
   583         default:
   568         default:
   584             {
   569             {