sipplugins/sippsipsettingsui/src/sipsettlistsipprofsetcontainer.cpp
branchRCL_3
changeset 1 dd3853b8dc3f
parent 0 307788aac0a8
child 19 b5e99d8877c7
equal deleted inserted replaced
0:307788aac0a8 1:dd3853b8dc3f
    78             }
    78             }
    79         }
    79         }
    80     
    80     
    81     iItemList->ListBox()->SetCurrentItemIndex( Uiindex );    
    81     iItemList->ListBox()->SetCurrentItemIndex( Uiindex );    
    82     DrawNow();
    82     DrawNow();
    83     
       
    84     iTimer = CGSSIPTimer::NewL( *this, *(iItemList->ListBox()->View()->ItemDrawer()) );
       
    85     }
    83     }
    86 
    84 
    87 // -----------------------------------------------------------------------------
    85 // -----------------------------------------------------------------------------
    88 // CSIPSettListSIPProfSetContainer::NewL
    86 // CSIPSettListSIPProfSetContainer::NewL
    89 // Two-phased constructor.
    87 // Two-phased constructor.
   111 // Destructor
   109 // Destructor
   112 CSIPSettListSIPProfSetContainer::~CSIPSettListSIPProfSetContainer()
   110 CSIPSettListSIPProfSetContainer::~CSIPSettListSIPProfSetContainer()
   113     {
   111     {
   114     __GSLOGSTRING("CSIPSettListSIPProfSetContainer::~CSIPSettListSIPProfSetContainer" )  
   112     __GSLOGSTRING("CSIPSettListSIPProfSetContainer::~CSIPSettListSIPProfSetContainer" )  
   115     delete iItemList;
   113     delete iItemList;
   116     delete iTimer;
       
   117     iTimer = NULL;
       
   118     }
   114     }
   119 
   115 
   120 // -----------------------------------------------------------------------------
   116 // -----------------------------------------------------------------------------
   121 // CSIPSettListSIPProfSetContainer::EditCurrentListItemL
   117 // CSIPSettListSIPProfSetContainer::EditCurrentListItemL
   122 // Edits the current list item by simulating the enter key press
   118 // Edits the current list item by simulating the enter key press
   203 TKeyResponse CSIPSettListSIPProfSetContainer::OfferKeyEventL( 
   199 TKeyResponse CSIPSettListSIPProfSetContainer::OfferKeyEventL( 
   204     const TKeyEvent& aKeyEvent,
   200     const TKeyEvent& aKeyEvent,
   205     TEventCode aType )
   201     TEventCode aType )
   206     {
   202     {
   207     __GSLOGSTRING("CSIPSettListSIPProfSetContainer::OfferKeyEventL" ) 
   203     __GSLOGSTRING("CSIPSettListSIPProfSetContainer::OfferKeyEventL" ) 
   208     // Pass the key event to list box
   204    
   209     if ( aKeyEvent.iCode == EKeyUpArrow || aKeyEvent.iCode == EKeyDownArrow )
       
   210         {
       
   211         iItemList->ListBox()->View()->ItemDrawer()->ClearFlags( CTextListItemDrawer::EDisableHighlight );
       
   212 
       
   213         iTimer->StartTimer();
       
   214 
       
   215         }
       
   216     
       
   217     return iItemList->OfferKeyEventL( aKeyEvent, aType );
   205     return iItemList->OfferKeyEventL( aKeyEvent, aType );
   218     }
   206     }
   219     
   207     
   220 // -----------------------------------------------------------------------------
   208 // -----------------------------------------------------------------------------
   221 // CSIPSettListSIPProfSetContainer::FocusChanged()
   209 // CSIPSettListSIPProfSetContainer::FocusChanged()
   228     CCoeControl::FocusChanged( aDrawNow );
   216     CCoeControl::FocusChanged( aDrawNow );
   229     if( iItemList )
   217     if( iItemList )
   230         {
   218         {
   231       iItemList->SetFocus( IsFocused(), aDrawNow );
   219       iItemList->SetFocus( IsFocused(), aDrawNow );
   232         }
   220         }
   233         iTimer->StopTimer();
       
   234 
       
   235     }
   221     }
   236 
   222 
   237 // ---------------------------------------------------------------------------
   223 // ---------------------------------------------------------------------------
   238 // CSIPSettListSIPProfSetContainer::HandleResourceChange
   224 // CSIPSettListSIPProfSetContainer::HandleResourceChange
   239 // Resource change handling
   225 // Resource change handling
   271 // -----------------------------------------------------------------------------
   257 // -----------------------------------------------------------------------------
   272 //
   258 //
   273 void CSIPSettListSIPProfSetContainer::HandlePointerEventL( const TPointerEvent& aPointerEvent )
   259 void CSIPSettListSIPProfSetContainer::HandlePointerEventL( const TPointerEvent& aPointerEvent )
   274     {
   260     {
   275     __GSLOGSTRING("CSIPSettListSIPProfSetContainer::HandlePointerEventL" )
   261     __GSLOGSTRING("CSIPSettListSIPProfSetContainer::HandlePointerEventL" )
   276      iItemList->ListBox()->View()->ItemDrawer()->ClearFlags( CTextListItemDrawer::EDisableHighlight );
       
   277      DrawNow();    
       
   278      CCoeControl::HandlePointerEventL( aPointerEvent );
   262      CCoeControl::HandlePointerEventL( aPointerEvent );
   279     }
   263     }
   280 
       
   281 // -----------------------------------------------------------------------------
       
   282 // CSIPSettListSIPProfSetContainer::IfPointerEvent()
       
   283 // Check if it is Pointer Event.
       
   284 // -----------------------------------------------------------------------------
       
   285 //
       
   286 TBool CSIPSettListSIPProfSetContainer::IfPointerEvent()
       
   287     {
       
   288      return !( iTimer->IsStarted() );
       
   289     }
       
   290 
       
   291 //Second
       
   292 //  End of File  
   264 //  End of File