phoneapp/phoneuiview/src/cphonedtmfsendingnote.cpp
branchRCL_3
changeset 62 5266b1f337bd
parent 0 5f000ab63145
equal deleted inserted replaced
61:41a7f70b3818 62:5266b1f337bd
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Implementation of CPhoneDtmfSendingNote class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "cphonedtmfsendingnote.h"
       
    21 #include "phoneui.hrh"
       
    22 
       
    23 // ================= MEMBER FUNCTIONS =======================
       
    24 // C++ default constructor can NOT contain any code, that
       
    25 // might leave.
       
    26 //
       
    27 CPhoneDtmfSendingNote::CPhoneDtmfSendingNote( CEikDialog** aSelfPtr, MEikCommandObserver& aCommandObserver ) :
       
    28     CPhoneNote( aSelfPtr, aCommandObserver ) 
       
    29     {
       
    30     }
       
    31 
       
    32 // ---------------------------------------------------------
       
    33 // Destructor
       
    34 // ---------------------------------------------------------
       
    35 // 
       
    36 CPhoneDtmfSendingNote::~CPhoneDtmfSendingNote()
       
    37     {
       
    38     }
       
    39 
       
    40 // ---------------------------------------------------------
       
    41 // CPhoneDtmfSendingNote::OfferKeyEventL
       
    42 // ---------------------------------------------------------
       
    43 //
       
    44 TKeyResponse CPhoneDtmfSendingNote::OfferKeyEventL( 
       
    45     const TKeyEvent& aKeyEvent,
       
    46     TEventCode /*aType*/ )
       
    47     {
       
    48 	if ( aKeyEvent.iScanCode == EStdKeyNo || aKeyEvent.iCode == EKeyNo )
       
    49 		{
       
    50 		OkToExitL( EPhoneCmdWaitNoteOk );
       
    51 		return EKeyWasNotConsumed;
       
    52 		}
       
    53 	else if( aKeyEvent.iScanCode == EStdKeyApplication0 ||
       
    54 	         aKeyEvent.iScanCode == EStdKeyYes || aKeyEvent.iCode == EKeyYes )
       
    55 		{
       
    56 		// Don't consume application and Yes -key
       
    57 		return EKeyWasNotConsumed;			
       
    58 		}
       
    59 	else
       
    60 		{
       
    61 		// Consume other key events
       
    62 	    return EKeyWasConsumed;		
       
    63 		}
       
    64     }
       
    65 
       
    66 // End of File