profilesservices/FileList/Src/CFLDPopupList.cpp
changeset 2 051d34a3f367
parent 0 8c5d936e5675
child 16 8fcb49b86877
equal deleted inserted replaced
1:b5888e2aa472 2:051d34a3f367
    35 #include <avkon.mbg>
    35 #include <avkon.mbg>
    36 #include <data_caging_path_literals.hrh>
    36 #include <data_caging_path_literals.hrh>
    37 #include <aknlists.h>
    37 #include <aknlists.h>
    38 #include <commondialogs.mbg>
    38 #include <commondialogs.mbg>
    39 #include <filelist.mbg>
    39 #include <filelist.mbg>
    40 
    40 #ifdef RD_TACTILE_FEEDBACK
       
    41 #include <touchfeedback.h>
       
    42 #endif //RD_TACTILE_FEEDBACK
    41 // CONSTANTS
    43 // CONSTANTS
    42 namespace
    44 namespace
    43 	{
    45 	{
    44     _LIT( KFLDMassStorageBitmapFile, "z:filelist.mbm" );
    46     _LIT( KFLDMassStorageBitmapFile, "z:filelist.mbm" );
    45     _LIT( KFLDMemoryCardUiBitmapFile, "z:aknmemorycardui.mbm" );
    47     _LIT( KFLDMemoryCardUiBitmapFile, "z:aknmemorycardui.mbm" );
   117 	 if ( aPointerEvent.iType == TPointerEvent::EButton1Down)
   119 	 if ( aPointerEvent.iType == TPointerEvent::EButton1Down)
   118 		 {
   120 		 {
   119 		 iPoint = aPointerEvent.iPosition;
   121 		 iPoint = aPointerEvent.iPosition;
   120 		 CancelPreview();
   122 		 CancelPreview();
   121 		 }
   123 		 }
   122 	 if ( Rect().Contains( iPoint ) )
   124 	if (!Rect().Contains(iPoint))
   123 		 {
   125 		{
   124 		 CCoeControl::HandlePointerEventL( aPointerEvent );
   126 #ifdef RD_TACTILE_FEEDBACK 
   125 		 }
   127 		MTouchFeedback* feedback = MTouchFeedback::Instance();
   126 	 else
   128 		if (feedback)
   127 		 {
   129 			{
   128 		 AttemptExitL(EFalse);    
   130 			feedback->InstantFeedback(this, ETouchFeedbackBasic);
   129 		 }
   131 			}
       
   132 #endif //RD_TACTILE_FEEDBACK		}
       
   133 		}
       
   134 	CAknPopupList::HandlePointerEventL(aPointerEvent);
   130 	 }
   135 	 }
   131 // -----------------------------------------------------------------------------
   136 // -----------------------------------------------------------------------------
   132 // CFLDPopupList::AttemptExitL
   137 // CFLDPopupList::AttemptExitL
   133 // (other items were commented in a header).
   138 // (other items were commented in a header).
   134 // -----------------------------------------------------------------------------
   139 // -----------------------------------------------------------------------------