webengine/webkitutils/HistoryProvider/HistoryController.cpp
branchRCL_3
changeset 36 c711bdda59f4
parent 34 220a17280356
child 37 ac77f89b1d9e
equal deleted inserted replaced
35:1f3c3f2f5b0a 36:c711bdda59f4
   150         }
   150         }
   151     }
   151     }
   152     CleanupStack::PushL( pageInfo );
   152     CleanupStack::PushL( pageInfo );
   153     return pageInfo;
   153     return pageInfo;
   154 }
   154 }
   155 
   155 void HistoryController::rollBackIndex()
       
   156     {
       
   157     m_currentIndex = m_tempCurrentIndex;
       
   158     }
   156 /**
   159 /**
   157 */
   160 */
   158 void HistoryController::handleHistoryCommandL(int command)
   161 void HistoryController::handleHistoryCommandL(int command)
   159 {
   162 {
   160     m_tempCurrentIndex = m_currentIndex;
   163     m_tempCurrentIndex = m_currentIndex;
   516 void HistoryController::showHistoryListL()
   519 void HistoryController::showHistoryListL()
   517 {
   520 {
   518     SelectArray* historyList = new( ELeave ) CArrayFixFlat<TBrCtlSelectOptionData>(10);
   521     SelectArray* historyList = new( ELeave ) CArrayFixFlat<TBrCtlSelectOptionData>(10);
   519     CleanupStack::PushL( historyList );
   522     CleanupStack::PushL( historyList );
   520     for( int i = m_historyStack.Count() - 1; i >= 0; i-- ) {
   523     for( int i = m_historyStack.Count() - 1; i >= 0; i-- ) {
   521         TBrCtlSelectOptionData t( TBrCtlSelectOptionData(entryByIndex(i)->pageTitle(), i == m_currentIndex, false, false) );
   524     if(entryByIndex(i))
   522         historyList->AppendL(t);
   525     {
       
   526       TBrCtlSelectOptionData t( TBrCtlSelectOptionData(entryByIndex(i)->pageTitle(), i == m_currentIndex, false, false) );
       
   527       historyList->AppendL(t);
       
   528      }
   523     }
   529     }
   524     // Display history dialog
   530     // Display history dialog
   525     bool ret = m_historyCallback->dialogSelectOption(historyList);
   531     bool ret = m_historyCallback->dialogSelectOption(historyList);
   526     if (ret) {
   532     if (ret) {
   527         int index = 0;
   533         int index = 0;