presencesettingsui/src/psuigsplugin.cpp
changeset 12 e6a66db4e9d0
parent 0 c8caa15ef882
child 13 b7e70c0792e6
equal deleted inserted replaced
0:c8caa15ef882 12:e6a66db4e9d0
   503 // See header for details.
   503 // See header for details.
   504 // ---------------------------------------------------------------------------
   504 // ---------------------------------------------------------------------------
   505 // 
   505 // 
   506 void CPSUIGSPlugin::UpdateMSK()
   506 void CPSUIGSPlugin::UpdateMSK()
   507     {
   507     {
   508     if ( !Cba() )
       
   509         {
       
   510         return;
       
   511         }
       
   512     
       
   513     TBool showEdit = ( 0 < Container()->iListBox->Model()->NumberOfItems());
   508     TBool showEdit = ( 0 < Container()->iListBox->Model()->NumberOfItems());
   514     CEikCba* cba = static_cast< CEikCba* >( Cba()->ButtonGroup() );
   509     CEikCba* cba = static_cast< CEikCba* >( Cba()->ButtonGroup() );
   515     cba->MakeCommandVisible( EPSUICmdEdit, showEdit );
   510     cba->MakeCommandVisible( EPSUICmdEdit, showEdit );
   516     cba->DrawNow();
   511     cba->DrawNow();
   517     }
   512     }
   518     
       
   519 // ---------------------------------------------------------------------------
       
   520 // CPSUIGSPlugin::HandleListBoxEventL()
       
   521 // ---------------------------------------------------------------------------
       
   522 //
       
   523 void CPSUIGSPlugin::HandleListBoxEventL(
       
   524 	  CEikListBox* /*aListBox*/, TListBoxEvent aListBoxEvent)
       
   525     {
       
   526     // if the Select Key has been pressed
       
   527     if ((aListBoxEvent == MEikListBoxObserver::EEventEnterKeyPressed) ||
       
   528     (aListBoxEvent == MEikListBoxObserver::EEventItemSingleClicked))
       
   529         {
       
   530         HandleListBoxSelectionL();   
       
   531         }
       
   532     }
       
   533 
   513 
   534 // End of file
   514 // End of file