loadgen/ui/hb/src/enginewrapper.cpp
changeset 29 1c71b77fbc93
parent 17 4f2773374eff
child 48 da3ec8478e66
equal deleted inserted replaced
28:4cc0d1a608c1 29:1c71b77fbc93
    17 
    17 
    18 
    18 
    19 #include <hbmainwindow.h>
    19 #include <hbmainwindow.h>
    20 //#include <hbcommonnote.h>
    20 //#include <hbcommonnote.h>
    21 #include <hbpopup.h>
    21 #include <hbpopup.h>
       
    22 #include <hbaction.h>
    22 
    23 
    23 #include <QString>
    24 #include <QString>
    24  #include <QStringList>
    25  #include <QStringList>
    25  
    26  
    26 #include <e32std.h>
    27 #include <e32std.h>
   134     }
   135     }
   135 }
   136 }
   136 
   137 
   137 void EngineWrapper::StopLoadYesNoDialogClosed(HbAction *action)
   138 void EngineWrapper::StopLoadYesNoDialogClosed(HbAction *action)
   138 {
   139 {
   139     HbMessageBox *dlg = static_cast<HbMessageBox*>(sender());
   140     if( action && !action->text().compare("yes", Qt::CaseInsensitive) ){
   140     if(action == dlg->primaryAction()){
       
   141         const CArrayFix<TInt>* selectionIndexes = NULL;
   141         const CArrayFix<TInt>* selectionIndexes = NULL;
   142         try{
   142         try{
   143             QT_TRAP_THROWING( selectionIndexes = QueryListSelectedIndexesOrCurrentItemL() );
   143             QT_TRAP_THROWING( selectionIndexes = QueryListSelectedIndexesOrCurrentItemL() );
   144             if(selectionIndexes)
   144             if(selectionIndexes)
   145                 QT_TRAP_THROWING( mEngine->StopSelectedOrHighlightedItemsL(selectionIndexes) );
   145                 QT_TRAP_THROWING( mEngine->StopSelectedOrHighlightedItemsL(selectionIndexes) );