browserutilities/downloadmgr/DownloadMgrUiLib/Src/CDownloadMgrUiDownloadsList.cpp
equal
deleted
inserted
replaced
1865 User::LeaveIfError(fs.Connect()); |
1865 User::LeaveIfError(fs.Connect()); |
1866 CleanupClosePushL(fs); |
1866 CleanupClosePushL(fs); |
1867 TFindFile file(fs); |
1867 TFindFile file(fs); |
1868 TPtrC ptr(KNullDesC); |
1868 TPtrC ptr(KNullDesC); |
1869 TInt found = file.FindByPath(fileNamePtr1,&ptr); //when second parameter to the API is Null then the it searches for the file in the Dir specified in the first parameter |
1869 TInt found = file.FindByPath(fileNamePtr1,&ptr); //when second parameter to the API is Null then the it searches for the file in the Dir specified in the first parameter |
|
1870 TBool isFileOpen(EFalse); |
|
1871 TInt fileopenstatus = fs.IsFileOpen(fileNamePtr1,isFileOpen); |
1870 CleanupStack::PopAndDestroy(&fs); |
1872 CleanupStack::PopAndDestroy(&fs); |
1871 CleanupStack::PopAndDestroy(fileName1); |
1873 CleanupStack::PopAndDestroy(fileName1); |
|
1874 if(fileopenstatus ==KErrNone && isFileOpen) |
|
1875 User::Leave(KErrInUse); |
1872 // Delete in DMgr |
1876 // Delete in DMgr |
1873 TBool deleted = iUiUtils->DeleteWithUserConfirmL( currDownload ); |
1877 TBool deleted = iUiUtils->DeleteWithUserConfirmL( currDownload ); |
1874 if ( deleted ) |
1878 if ( deleted ) |
1875 { |
1879 { |
1876 if(!iUiUtils->IsCodDownload()) |
1880 if(!iUiUtils->IsCodDownload()) |