phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/ccappcommlauncherheadercontrol.cpp
branchRCL_3
changeset 23 5586b4d2ec3e
parent 15 e8e3147d53eb
child 32 2828b4d142c0
equal deleted inserted replaced
21:b3431bff8c19 23:5586b4d2ec3e
   437     {
   437     {
   438     CCoeControl::HandlePointerEventL( aPointerEvent );
   438     CCoeControl::HandlePointerEventL( aPointerEvent );
   439     switch(aPointerEvent.iType)
   439     switch(aPointerEvent.iType)
   440         {
   440         {
   441         case TPointerEvent::EButton1Down:
   441         case TPointerEvent::EButton1Down:
   442 
   442             {
       
   443             TCmsContactStore cntStore = iPlugin.ContactHandler().ContactStore();
   443             // Image selection popup
   444             // Image selection popup
   444             if( iPlugin.ContactHandler().ContactStore() != ECmsContactStoreSdn 
   445             // Image selection popup should not be shown for contact's that belong to sdn store
   445                 && IsPhoneMemoryInConfigurationL() 
   446             // Image selection popup can be shown only if the default 
       
   447             //      saving memory includes local contact db (contacts.cdb) or if the contact belongs to
       
   448             //      local contact DB            
       
   449             if( cntStore != ECmsContactStoreSdn 
       
   450                 && ( IsPhoneMemoryInConfigurationL()
       
   451                      || (cntStore != ECmsContactStoreSim) )
   446                 && iImage->Rect().Contains(aPointerEvent.iPosition) )
   452                 && iImage->Rect().Contains(aPointerEvent.iPosition) )
   447                 {
   453                 {
   448                 // Show the feedback
   454                 // Show the feedback
   449                 MTouchFeedback* feedback = MTouchFeedback::Instance();
   455                 MTouchFeedback* feedback = MTouchFeedback::Instance();
   450                 if ( feedback )
   456                 if ( feedback )
   452                     feedback->InstantFeedback( ETouchFeedbackBasic );
   458                     feedback->InstantFeedback( ETouchFeedbackBasic );
   453                     }
   459                     }
   454                 LaunchStylusPopupL( aPointerEvent );
   460                 LaunchStylusPopupL( aPointerEvent );
   455                 }
   461                 }
   456             break;
   462             break;
       
   463             }
   457             
   464             
   458         default:
   465         default:
   459             break;
   466             break;
   460         }
   467         }
   461     }
   468     }