connectionutilities/ConnectionDialogs/cconndlg/src/SelectConnectionDialog.cpp
changeset 1 40cb640ef159
parent 0 5a93021fdf25
child 8 2e6c4614c58e
equal deleted inserted replaced
0:5a93021fdf25 1:40cb640ef159
    40 
    40 
    41 // CONST DECLARATIONS
    41 // CONST DECLARATIONS
    42 
    42 
    43 #if defined(_DEBUG)
    43 #if defined(_DEBUG)
    44 _LIT( KErrNullPointer, "NULL pointer" );
    44 _LIT( KErrNullPointer, "NULL pointer" );
    45 _LIT( KErrActiveObjectNull, "iActiveSelectExplicit not NULL" );
       
    46 #endif
    45 #endif
    47 
    46 
    48 
    47 
    49 
    48 
    50 // ================= MEMBER FUNCTIONS =======================
    49 // ================= MEMBER FUNCTIONS =======================
   360             break;
   359             break;
   361             }
   360             }
   362 
   361 
   363         case ESelectConnectionCmdChooseMethod:
   362         case ESelectConnectionCmdChooseMethod:
   364             {
   363             {
   365             __ASSERT_DEBUG( !iActiveSelectExplicit, 
   364             if ( !iActiveSelectExplicit )
   366                             User::Panic( KErrActiveObjectNull, KErrNone ) );
   365                 {
   367 
   366                 iActiveSelectExplicit = CActiveSelectExplicit::NewL( this, 
   368             iActiveSelectExplicit = CActiveSelectExplicit::NewL( this, 
   367                                         iDestIDs[ListBox()->CurrentItemIndex()],
   369                                     iDestIDs[ListBox()->CurrentItemIndex()],
   368                                         iRefreshInterval,
   370                                     iRefreshInterval,
   369                                         iBearerSet, 
   371                                     iBearerSet, 
   370                                         iIsWLANFeatureSupported,
   372                                     iIsWLANFeatureSupported,
   371                                        iDefaultCMId );
   373                                     iDefaultCMId );
   372                 iActiveSelectExplicit->ShowSelectExplicitL();
   374             iActiveSelectExplicit->ShowSelectExplicitL();
   373                 }
   375 
       
   376             break;
   374             break;
   377             }
   375             }
   378 
   376 
   379         default:
   377         default:
   380             {
   378             {
   392 TKeyResponse CSelectConnectionDialog::OfferKeyEventL( 
   390 TKeyResponse CSelectConnectionDialog::OfferKeyEventL( 
   393                                                    const TKeyEvent& aKeyEvent,
   391                                                    const TKeyEvent& aKeyEvent,
   394                                                    TEventCode aType )
   392                                                    TEventCode aType )
   395     {
   393     {
   396     CLOG_ENTERFN( "CSelectConnectionDialog::OfferKeyEventL" );
   394     CLOG_ENTERFN( "CSelectConnectionDialog::OfferKeyEventL" );
       
   395     
       
   396     if( aType == EEventKey && aKeyEvent.iCode == EKeyPhoneSend )
       
   397         {
       
   398         // Let's not obscure the Dialer in the background
       
   399         if ( iExpiryTimer && !iActiveSelectExplicit )
       
   400             {
       
   401             iExpiryTimer->Cancel();
       
   402             iExpiryTimer->StartShort();    
       
   403             }
       
   404         }
   397 
   405 
   398     TKeyResponse result( EKeyWasNotConsumed );
   406     TKeyResponse result( EKeyWasNotConsumed );
   399     TInt indexBefore = -1;
   407     TInt indexBefore = -1;
   400     TInt indexAfter = -1;
   408     TInt indexAfter = -1;
   401 
   409