connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/wlanpowersavetest.cpp
changeset 1 40cb640ef159
parent 0 5a93021fdf25
equal deleted inserted replaced
0:5a93021fdf25 1:40cb640ef159
    98 TKeyResponse CWlanPowerSaveQuery::OfferKeyEventL( const TKeyEvent& aKeyEvent, 
    98 TKeyResponse CWlanPowerSaveQuery::OfferKeyEventL( const TKeyEvent& aKeyEvent, 
    99                                                  TEventCode aModifiers )
    99                                                  TEventCode aModifiers )
   100     {
   100     {
   101     CLOG_ENTERFN( "CWlanPowerSaveQuery::OfferKeyEventL" );
   101     CLOG_ENTERFN( "CWlanPowerSaveQuery::OfferKeyEventL" );
   102     TInt code = aKeyEvent.iCode;
   102     TInt code = aKeyEvent.iCode;
   103 
   103         
   104     switch ( code )
   104     switch ( code )
   105         {
   105         {    
   106         case EKeyUpArrow:
   106         case EKeyUpArrow:
   107         case EKeyDownArrow:
   107         case EKeyDownArrow:
   108             {
   108             {
   109             CAknMessageQueryControl* messageQueryControl = STATIC_CAST( 
   109             CAknMessageQueryControl* messageQueryControl = STATIC_CAST( 
   110                                         CAknMessageQueryControl*, 
   110                                         CAknMessageQueryControl*, 
   190     CLOG_ENTERFN( "CWlanPowerSaveQuery::TryExitL" );
   190     CLOG_ENTERFN( "CWlanPowerSaveQuery::TryExitL" );
   191     CAknMessageQueryDialog::TryExitL( aButtonId );
   191     CAknMessageQueryDialog::TryExitL( aButtonId );
   192     CLOG_LEAVEFN( "CWlanPowerSaveQuery::TryExitL" );
   192     CLOG_LEAVEFN( "CWlanPowerSaveQuery::TryExitL" );
   193     }
   193     }
   194 
   194 
   195 // ---------------------------------------------------------
       
   196 // CWlanPowerSaveQuery::NeedToDismissQueryL
       
   197 // ---------------------------------------------------------
       
   198 //
       
   199 TBool CWlanPowerSaveQuery::NeedToDismissQueryL(const TKeyEvent& aKeyEvent)
       
   200     {
       
   201     if (aKeyEvent.iCode == EKeyPhoneSend)
       
   202         {
       
   203         TryExitL(EEikBidCancel);
       
   204         return ETrue;
       
   205         }
       
   206         
       
   207     return EFalse;
       
   208     }
       
   209 
       
   210 // End of File
   195 // End of File