browserutilities/downloadmgr/DownloadMgrUiLib/Src/UserInteractionsEventHandler.cpp
branchRCL_3
changeset 44 800203832575
parent 38 4917f9bf7995
child 48 79859ed3eea9
equal deleted inserted replaced
42:a1a5d4e727e8 44:800203832575
  1100                             }
  1100                             }
  1101                         }
  1101                         }
  1102                     }
  1102                     }
  1103 
  1103 
  1104 
  1104 
  1105                 // update EDlAttrDestFilename with new path
  1105                 TBool isProg(EFalse);
  1106                 User::LeaveIfError
  1106                 User::LeaveIfError( iDownload.GetBoolAttribute( EDlAttrProgressive, isProg ) );
  1107 		                ( iDownload.SetStringAttribute( EDlAttrDestFilename, *fileName ) );
  1107 
  1108                 // move file
  1108                 // Move operation should be invoked by DL Manger if its not a progressive download. 
  1109                 User::LeaveIfError( iDownload.Move() );
  1109                 if( !isProg )
       
  1110                     {
       
  1111                     // update EDlAttrDestFilename with new path
       
  1112                     User::LeaveIfError
       
  1113                             ( iDownload.SetStringAttribute( EDlAttrDestFilename, *fileName ) );
       
  1114                     User::LeaveIfError( iDownload.Move() );
       
  1115                     }
  1110           	    CleanupStack::PopAndDestroy( fileName ); // fileName
  1116           	    CleanupStack::PopAndDestroy( fileName ); // fileName
  1111                 }
  1117                 }
  1112             }
  1118             }
  1113         else if ( action & EPdLaunch )
  1119         else if ( action & EPdLaunch )
  1114         {
  1120         {