satui/satapp/SATUISrc/CSatUiViewAppUi.cpp
branchRCL_3
changeset 18 594d59766373
parent 12 71268bfa7aea
equal deleted inserted replaced
17:c58fd5f0c240 18:594d59766373
  1266     // Check whether it is only need to display a dialog. 
  1266     // Check whether it is only need to display a dialog. 
  1267     if ( iForeground && ( iForegroundControl || iCcNote ) ) 
  1267     if ( iForeground && ( iForegroundControl || iCcNote ) ) 
  1268         {
  1268         {
  1269         TFLOGSTRING( "CSatUiViewAppUi::HandleForegroundEventL \
  1269         TFLOGSTRING( "CSatUiViewAppUi::HandleForegroundEventL \
  1270             need to display a dialog" )
  1270             need to display a dialog" )
  1271         if ( iForegroundControl )
  1271         if ( iForegroundControl && ForegroundAlive() )
  1272             {
  1272             {
  1273             iForegroundControl->SetFocus( ETrue, EDrawNow );
  1273             iForegroundControl->SetFocus( ETrue, EDrawNow );
  1274             }
  1274             }
  1275         }
  1275         }
  1276     // Check is it allowed to activate local view.
  1276     // Check is it allowed to activate local view.
  3528                 }
  3528                 }
  3529             }
  3529             }
  3530         }
  3530         }
  3531     TFLOGSTRING( "CSatUiViewAppUi::StopPlayToneL exiting" )
  3531     TFLOGSTRING( "CSatUiViewAppUi::StopPlayToneL exiting" )
  3532     }
  3532     }
       
  3533     
       
  3534 // -----------------------------------------------------------------------------
       
  3535 // CSatUiViewAppUi::ForegroundAlive
       
  3536 // Check if foreground control is alive when HandleForegroundEventL is called.
       
  3537 // -----------------------------------------------------------------------------
       
  3538 //
       
  3539 TBool CSatUiViewAppUi::ForegroundAlive() const
       
  3540     {
       
  3541     TFLOGSTRING( "CSatUiViewAppUi::ForegroundAlive called" )
       
  3542     
       
  3543     // Only if value of iForegroundControl equals to one of the following 8
       
  3544     // pointers, the alive value will be set to true. This will check if 
       
  3545     // the foreground control is alive.
       
  3546     TBool alive = 
       
  3547         iForegroundControl == static_cast<CCoeControl*>( iWaitNote ) 
       
  3548         || iForegroundControl == static_cast<CCoeControl*>( 
       
  3549            iDisplayTextIconDialog )
       
  3550         || iForegroundControl == static_cast<CCoeControl*>( 
       
  3551            iDisplayTextDialog )
       
  3552         || iForegroundControl == static_cast<CCoeControl*>( iGetInputDialog )
       
  3553         || iForegroundControl == static_cast<CCoeControl*>( iPermanentNote )
       
  3554         || iForegroundControl == static_cast<CCoeControl*>( iNoteDialog )
       
  3555         || iForegroundControl == static_cast<CCoeControl*>( iBipWaitNote )
       
  3556         || iForegroundControl == static_cast<CCoeControl*>( iQueryDialog );
       
  3557     
       
  3558     TFLOGSTRING2( "CSatUiViewAppUi::ForegroundAlive exiting alive=%d", alive )
       
  3559     
       
  3560     return alive;
       
  3561     }
  3533 
  3562 
  3534 // End of File
  3563 // End of File