sipplugins/sippsipsettingsui/src/sipsettingsplugin.cpp
branchRCL_3
changeset 4 dd3853b8dc3f
parent 0 307788aac0a8
child 14 532ef74cdfa0
equal deleted inserted replaced
0:307788aac0a8 4:dd3853b8dc3f
    77         iContainer=NULL;
    77         iContainer=NULL;
    78         }
    78         }
    79     iResourceLoader.Close();
    79     iResourceLoader.Close();
    80     
    80     
    81     delete iModel;
    81     delete iModel;
    82        delete iHandler;
    82     delete iHandler;
    83     }
    83     }
    84 
    84 
    85 // -----------------------------------------------------------------------------
    85 // -----------------------------------------------------------------------------
    86 // When this method is called, view checks based on highlight focus, if the MSK
    86 // When this method is called, view checks based on highlight focus, if the MSK
    87 // label is correct.
    87 // label is correct.
   479     CEikListBox* /*aListBox*/,
   479     CEikListBox* /*aListBox*/,
   480     TListBoxEvent aEventType )
   480     TListBoxEvent aEventType )
   481     {
   481     {
   482     __GSLOGSTRING("CSIPSettingsPlugin::HandleListBoxEventL " )
   482     __GSLOGSTRING("CSIPSettingsPlugin::HandleListBoxEventL " )
   483     __GSLOGSTRING1("CSIPSettingsPlugin::HandleListBoxEventL aEventType: %d", aEventType)
   483     __GSLOGSTRING1("CSIPSettingsPlugin::HandleListBoxEventL aEventType: %d", aEventType)
   484      
       
   485     if( EEventPenDownOnItem == aEventType )
       
   486         {
       
   487         iContainer->LongTapDetector()->PointerEventL( iContainer->PointerEvent() );
       
   488         return;
       
   489         }
       
   490     if( EEventItemSingleClicked == aEventType ||
   484     if( EEventItemSingleClicked == aEventType ||
   491     		  EEventEnterKeyPressed == aEventType )
   485     		  EEventEnterKeyPressed == aEventType )
   492 	    {
   486 	    {
   493     	if ( !iContainer->LongPressStatus() )
       
   494     	    {
       
   495     	    EditProfileL();
   487     	    EditProfileL();
   496     	    }
       
   497 	    }
   488 	    }
   498 	    iContainer ->SetLongPress( EFalse );
       
   499     }
   489     }
   500 
   490 
   501 // -----------------------------------------------------------------------------
   491 // -----------------------------------------------------------------------------
   502 // CSIPSettingsPlugin::ChangeDefaultProfileL
   492 // CSIPSettingsPlugin::ChangeDefaultProfileL
   503 // Shows the pop-up list for changing the default profile
   493 // Shows the pop-up list for changing the default profile
   716     TInt aResourceId,
   706     TInt aResourceId,
   717     CEikMenuPane* aMenuPane )
   707     CEikMenuPane* aMenuPane )
   718     {    
   708     {    
   719     __GSLOGSTRING("CSIPSettingsPlugin::DynInitMenuPaneL" )
   709     __GSLOGSTRING("CSIPSettingsPlugin::DynInitMenuPaneL" )
   720     // Delete Help item if feature is not supported
   710     // Delete Help item if feature is not supported
   721     if( aResourceId == R_GS_SIP_PROFILE_LIST_VIEW_MENU ) 
   711     if( aResourceId == R_GS_SIP_PROFILE_LIST_VIEW_MENU && 
   722         {
   712 		!FeatureManager::FeatureSupported( KFeatureIdHelp ) ) 
   723         if ( iContainer->IfPointerEvent() )
   713         {
   724             {
   714 
   725             aMenuPane->SetItemDimmed( EGSCmdAppEdit, ETrue );
       
   726             aMenuPane->SetItemDimmed( EGSCmdAppDelete, ETrue );
       
   727             aMenuPane->SetItemDimmed( EGSCmdAppDefault, ETrue );
       
   728             }
       
   729         if( !FeatureManager::FeatureSupported( KFeatureIdHelp ) )
       
   730             {
       
   731             aMenuPane->DeleteMenuItem( EAknCmdHelp );
   715             aMenuPane->DeleteMenuItem( EAknCmdHelp );
   732             }
       
   733         }    
   716         }    
   734         
   717         
   735     if ( aResourceId == R_GS_SIP_PROFILE_LIST_VIEW_MENU && 
   718     if ( aResourceId == R_GS_SIP_PROFILE_LIST_VIEW_MENU && 
   736          iModel->NumOfProfiles() == 0 )
   719          iModel->NumOfProfiles() == 0 )
   737         {
   720         {