photosgallery/viewframework/dataprovider/src/glxpreviewthumbnailbinding.cpp
changeset 2 7d9067c6fcb1
parent 0 4e91876724a2
child 18 bcb43dc84c44
equal deleted inserted replaced
1:9ba538e329bd 2:7d9067c6fcb1
   332 // ----------------------------------------------------------------------------
   332 // ----------------------------------------------------------------------------
   333 // HandleFocusChanged
   333 // HandleFocusChanged
   334 // This function resets any existing timer and starts a new timer tick
   334 // This function resets any existing timer and starts a new timer tick
   335 // ----------------------------------------------------------------------------
   335 // ----------------------------------------------------------------------------
   336 //    
   336 //    
   337     
   337 CGlxBinding::TResponse CGlxPreviewThumbnailBinding::HandleFocusChanged(
   338 CGlxBinding::TResponse CGlxPreviewThumbnailBinding::HandleFocusChanged( TBool aIsGained )
   338         TBool aIsGained)
   339     {
   339     {
   340     TRACER("CGlxPreviewThumbnailBinding::HandleFocusChanged");
   340     TRACER("CGlxPreviewThumbnailBinding::HandleFocusChanged");
   341 	if(aIsGained)
   341     if (aIsGained && iTimer)
   342 	    {
   342         {
   343 	    if(iTimer)
   343         if (iTimer->IsActive())
   344 	        {
   344             {
   345 	        iTimer->Cancel();
   345             iTimer->Cancel();
   346 	        }
   346             }
   347 	   
   347 
   348 	     if(!iTimer->IsActive() ) 
   348         if (!iTimer->IsActive())
   349 	        {
   349             {
   350 	        iTimer->Start(KThumbnailStartTimeDelay, KThumbnailIntervalTimeDelay,
   350             iTimer->Start(KThumbnailStartTimeDelay,
   351 	            TCallBack(IsTime,this));
   351                     KThumbnailIntervalTimeDelay, TCallBack(IsTime, this));
   352 	      
   352             }
   353 	        }
   353         }
   354 	    }
   354 
   355 	//return EUpdateRequested;
   355     return ENoUpdateNeeded;
   356 	return ENoUpdateNeeded;
   356     }
   357     }
       
   358     
       
   359 
   357 
   360 // ----------------------------------------------------------------------------
   358 // ----------------------------------------------------------------------------
   361 // HandleItemChangedL
   359 // HandleItemChangedL
   362 // This function basically closes the old medialist if any for ex. Tags, 
   360 // This function basically closes the old medialist if any for ex. Tags, 
   363 // Captured.. and then opens a new medialist with teh required filter.
   361 // Captured.. and then opens a new medialist with teh required filter.