imagehandlingutilities/thumbnailmanager/thumbnailclient/src/thumbnailrequestactive.cpp
branchRCL_3
changeset 10 ee674526fac5
parent 9 dea39715fc05
child 11 85a88bc05e45
equal deleted inserted replaced
9:dea39715fc05 10:ee674526fac5
   184             else
   184             else
   185                 {
   185                 {
   186                 iSession.DeleteThumbnails( iParams.iThumbnailId, iParamsPckg, iStatus );
   186                 iSession.DeleteThumbnails( iParams.iThumbnailId, iParamsPckg, iStatus );
   187                 }
   187                 }
   188             break;
   188             break;
   189             } 
   189             }
       
   190         case EReqRenameThumbnails:
       
   191             {
       
   192             iSession.RenameThumbnails( iParamsPckg, iStatus );
       
   193             break;
       
   194             }  
   190         default:
   195         default:
   191             {
   196             {
   192             break;
   197             break;
   193             }
   198             }
   194         }
   199         }
   218         iRequestCompleted = ETrue;
   223         iRequestCompleted = ETrue;
   219         }
   224         }
   220     
   225     
   221     iTimer->Cancel();
   226     iTimer->Cancel();
   222     
   227     
   223     if (iRequestType == EReqDeleteThumbnails || iCanceled)
   228     if (iRequestType == EReqDeleteThumbnails || iCanceled ||
   224         {
   229         iRequestType == EReqRenameThumbnails)
       
   230         {
       
   231         TN_DEBUG1( "CThumbnailRequestActive::RunL() - rename/delete/canceled" );
       
   232     
   225         iFile.Close();
   233         iFile.Close();
   226         iMyFileHandle.Close();
   234         iMyFileHandle.Close();
   227     
   235     
   228         // no action for delete or canceled request
   236         // no action for delete/rename or canceled request
   229         iRequestQueue->RequestComplete(this);
   237         iRequestQueue->RequestComplete(this);
   230         
   238         
   231 #ifdef _DEBUG
   239 #ifdef _DEBUG
   232     TTime stop;
   240     TTime stop;
   233     stop.UniversalTime();
   241     stop.UniversalTime();
   745     
   753     
   746     iPath = aPath;
   754     iPath = aPath;
   747     }
   755     }
   748 
   756 
   749 // ---------------------------------------------------------------------------
   757 // ---------------------------------------------------------------------------
       
   758 // CThumbnailRequestActive::RenameThumbnails()
       
   759 // Rename thumbnails.
       
   760 // ---------------------------------------------------------------------------
       
   761 //
       
   762 void CThumbnailRequestActive::RenameThumbnails( const TDesC& aCurrentPath, 
       
   763         const TDesC& aNewPath, const TInt aPriority )
       
   764     {
       
   765     iRequestType = EReqRenameThumbnails;
       
   766     
       
   767     iParams.iRequestId = iRequestId;
       
   768     iParams.iPriority = aPriority;
       
   769     iParams.iFileName = aCurrentPath;
       
   770     iParams.iTargetUri = aNewPath;
       
   771     }
       
   772 
       
   773 // ---------------------------------------------------------------------------
   750 // Request 2nd phase thumbnail
   774 // Request 2nd phase thumbnail
   751 // ---------------------------------------------------------------------------
   775 // ---------------------------------------------------------------------------
   752 //
   776 //
   753 void CThumbnailRequestActive::Get2ndPhaseThumbnailL()
   777 void CThumbnailRequestActive::Get2ndPhaseThumbnailL()
   754     {
   778     {