phonebookui/Phonebook2/UIControls/src/CPbk2FetchDlg.cpp
branchRCL_3
changeset 15 34879f5cfc63
parent 9 0d28c1c5b6dd
child 18 d4f567ce2e7c
equal deleted inserted replaced
13:a6539d1e8e43 15:34879f5cfc63
   715 
   715 
   716 // --------------------------------------------------------------------------
   716 // --------------------------------------------------------------------------
   717 // CPbk2FetchDlg::FetchDlgPageChangedL
   717 // CPbk2FetchDlg::FetchDlgPageChangedL
   718 // --------------------------------------------------------------------------
   718 // --------------------------------------------------------------------------
   719 //
   719 //
   720 void CPbk2FetchDlg::FetchDlgPageChangedL( MPbk2FetchDlgPage& /*aPage*/ )
   720 void CPbk2FetchDlg::FetchDlgPageChangedL( MPbk2FetchDlgPage& aPage )
   721     {
   721     {
   722     // An view event burst from VPbk results this function being called
       
   723     // several times a row. It is not meaningful to restore selections
       
   724     // every time, but instead wait for a while and restore the selections
       
   725     // after all events have been received. Hence the idle object is used.
       
   726     delete iSelectionRestorer;
   722     delete iSelectionRestorer;
   727     iSelectionRestorer = NULL;
   723     iSelectionRestorer = NULL;
   728     iSelectionRestorer = CIdle::NewL( CActive::EPriorityIdle );
   724 
   729     iSelectionRestorer->Start( TCallBack( RestoreSelections, this ));
   725     if ( aPage.DlgPageReady() )
       
   726         {
       
   727         // An view event burst from VPbk results this function being called
       
   728         // several times a row. It is not meaningful to restore selections
       
   729         // every time, but inste ad wait for a while and restore the selections
       
   730         // after all events have been received. Hence the idle object is used.
       
   731         iSelectionRestorer = CIdle::NewL( CActive::EPriorityIdle );
       
   732         iSelectionRestorer->Start( TCallBack( RestoreSelections, this ));
       
   733         }
   730     }
   734     }
   731 
   735 
   732 // --------------------------------------------------------------------------
   736 // --------------------------------------------------------------------------
   733 // CPbk2FetchDlg::FetchDlgObserver
   737 // CPbk2FetchDlg::FetchDlgObserver
   734 // --------------------------------------------------------------------------
   738 // --------------------------------------------------------------------------