browserutilities/downloadmgr/DownloadMgrUiLib/Src/CDownloadsListDlg.cpp
branchRCL_3
changeset 92 e1bea15f9a39
parent 67 4917f9bf7995
child 93 79859ed3eea9
equal deleted inserted replaced
91:30342f40acbf 92:e1bea15f9a39
   657             case MEikListBoxObserver::EEventItemDoubleClicked:
   657             case MEikListBoxObserver::EEventItemDoubleClicked:
   658 #ifdef BRDO_SINGLE_CLICK_ENABLED_FF
   658 #ifdef BRDO_SINGLE_CLICK_ENABLED_FF
   659             case MEikListBoxObserver::EEventItemSingleClicked:
   659             case MEikListBoxObserver::EEventItemSingleClicked:
   660 #endif			
   660 #endif			
   661                 {
   661                 {
       
   662                 TDownloadUiData& dlData = iDownloadsListArray->DlUiData( CurrentItemIndex() );
       
   663                 TInt32 state( dlData.iProgressState );
       
   664                 if(state == EHttpProgContentFileMoved)
       
   665                     {
       
   666                       if (!ButtonGroupContainer()->IsCommandVisible(EAknSoftkeyOpen))
       
   667                           {
       
   668                           ButtonGroupContainer()->MakeCommandVisible(EAknSoftkeyOpen,ETrue);
       
   669                           }
       
   670                     }
   662                 // If EAknSoftkeyOpen is visible, then we can activate the selected download
   671                 // If EAknSoftkeyOpen is visible, then we can activate the selected download
   663                 if (ButtonGroupContainer()->IsCommandVisible(EAknSoftkeyOpen))
   672                 if (ButtonGroupContainer()->IsCommandVisible(EAknSoftkeyOpen))
   664                     {
   673                     {
   665                     ProcessCommandL(EAknSoftkeyOpen);
   674                     ProcessCommandL(EAknSoftkeyOpen);
   666                     }
   675                     }
   667                 }
   676                 }
       
   677 #ifdef BRDO_SINGLE_CLICK_ENABLED_FF
       
   678             case MEikListBoxObserver::EEventPenDownOnItem:
       
   679                 {
       
   680                 if ( iPointerEvent.iType == TPointerEvent::EButton1Down)
       
   681                     {
       
   682                     iStylusMenu->HandlePointerEventL(iPointerEvent, this);	
       
   683                     }
       
   684                  break;
       
   685                 }
       
   686 #endif
   668             default:
   687             default:
   669                 {
   688                 {
   670                 break;
   689                 break;
   671                 }
   690                 }
   672             }
   691             }
   726     {
   745     {
   727 #ifdef BRDO_SINGLE_CLICK_ENABLED_FF    	
   746 #ifdef BRDO_SINGLE_CLICK_ENABLED_FF    	
   728     if ( aPointerEvent.iType == TPointerEvent::EButton1Down)
   747     if ( aPointerEvent.iType == TPointerEvent::EButton1Down)
   729         {
   748         {
   730         iPointerEvent =  aPointerEvent;
   749         iPointerEvent =  aPointerEvent;
   731         iStylusMenu->HandlePointerEventL(aPointerEvent, this);
       
   732         }
   750         }
   733     else if ( aPointerEvent.iType == TPointerEvent::EButton1Up )
   751     else if ( aPointerEvent.iType == TPointerEvent::EButton1Up )
   734         {
   752         {
       
   753         iPointerEvent =  aPointerEvent;
   735         iStylusMenu->cancelLongTapL();
   754         iStylusMenu->cancelLongTapL();
   736             if(iStylusMenu->islongtapRunning())
   755             if(iStylusMenu->islongtapRunning())
   737                 {
   756                 {
   738                 iStylusMenu->reSetLongTapFlag();
   757                 iStylusMenu->reSetLongTapFlag();
   739                 return;
   758                 return;