mmfenh/enhancedmediaclient/Client/src/Components/ClientProgDLSource/ClientProgDLSource.cpp
branchRCL_3
changeset 41 a36789189b53
parent 0 71ca22bcf22a
equal deleted inserted replaced
40:60e492b28869 41:a36789189b53
   175     }
   175     }
   176 
   176 
   177 TInt CClientProgDLSource::MoveFile(const TDesC& aDestFileName )
   177 TInt CClientProgDLSource::MoveFile(const TDesC& aDestFileName )
   178     {
   178     {
   179     TInt status(KErrNone);
   179     TInt status(KErrNone);
       
   180     
       
   181     if (iServerSourceExists)
       
   182         iCustomCommand->CustomCommandSync( iSourceHandle, ESetFileMoving, KNullDesC8, KNullDesC8 );
       
   183 
   180     iDestFileName.Copy(aDestFileName);
   184     iDestFileName.Copy(aDestFileName);
   181     status = iDownloadGateway->MoveFile(iDownloadId,aDestFileName);
   185     status = iDownloadGateway->MoveFile(iDownloadId,aDestFileName);
   182     return status;
   186     return status;
   183     }
   187     }
   184 
   188 
   412         TPtr des = iFileName->Des();
   416         TPtr des = iFileName->Des();
   413         if(aError == KErrNone)
   417         if(aError == KErrNone)
   414             {
   418             {
   415     	    des.Copy(iDestFileName);
   419     	    des.Copy(iDestFileName);
   416             }
   420             }
   417 	    else
   421 	    else if (aError == KErrAlreadyExists)
   418             {
   422             {
   419             iDownloadGateway->GetLocalFileName(iDownloadId,des);
   423             iDownloadGateway->GetLocalFileName(iDownloadId,des);
   420             }
   424             }
       
   425 	    iDestFileName.Copy(des);
   421         TPckgBuf<TFileName> pckg(iDestFileName);
   426         TPckgBuf<TFileName> pckg(iDestFileName);
   422         iCustomCommand->CustomCommandSync( iSourceHandle, ESetUpdateFileName, pckg, KNullDesC8 );
   427         iCustomCommand->CustomCommandSync( iSourceHandle, ESetUpdateFileName, pckg, KNullDesC8 );
   423         }
   428         }
   424     
   429     
   425     CErrorCode* event1 = new CErrorCode( aError );       
   430     CErrorCode* event1 = new CErrorCode( aError );