connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/ConfirmationQuery.cpp
changeset 1 40cb640ef159
parent 0 5a93021fdf25
child 8 2e6c4614c58e
equal deleted inserted replaced
0:5a93021fdf25 1:40cb640ef159
   123     CAknListQueryDialog::TryExitL( aButtonId );
   123     CAknListQueryDialog::TryExitL( aButtonId );
   124     CLOG_LEAVEFN( "CConfirmationQuery::TryExitL" );
   124     CLOG_LEAVEFN( "CConfirmationQuery::TryExitL" );
   125     }
   125     }
   126 
   126 
   127 // ---------------------------------------------------------
   127 // ---------------------------------------------------------
   128 // CConfirmationQuery::NeedToDismissQueryL
   128 // CConfirmationQuery::OfferKeyEventL
   129 // ---------------------------------------------------------
   129 // ---------------------------------------------------------
   130 //
   130 //
   131 TBool CConfirmationQuery::NeedToDismissQueryL(const TKeyEvent& aKeyEvent)
   131 TKeyResponse CConfirmationQuery::OfferKeyEventL( const TKeyEvent& aKeyEvent, 
       
   132                                                  TEventCode aType)
   132     {
   133     {
   133     if (aKeyEvent.iCode == EKeyPhoneSend)
   134     if( aType == EEventKey && aKeyEvent.iCode == EKeyPhoneSend )
   134         {
   135         {
   135         TryExitL(EEikBidCancel);
   136         // Let's not obscure the Dialer in the background
   136         return ETrue;
   137         if ( iExpiryTimer )
       
   138             {
       
   139             iExpiryTimer->Cancel();
       
   140             iExpiryTimer->StartShort();    
       
   141             }
   137         }
   142         }
   138         
   143     
   139     return EFalse;
   144     return CAknListQueryDialog::OfferKeyEventL( aKeyEvent,aType ); 
   140     }
   145     } 
   141 
       
   142 
   146 
   143 // ---------------------------------------------------------
   147 // ---------------------------------------------------------
   144 // CConfirmationQuery::SetChoices
   148 // CConfirmationQuery::SetChoices
   145 // ---------------------------------------------------------
   149 // ---------------------------------------------------------
   146 //
   150 //