fep/aknfep/src/AknFepUiInputStatePredictiveCandidatePinyin.cpp
changeset 36 a7632c26d895
parent 35 0f326f2e628e
child 42 b3eaa440ab06
equal deleted inserted replaced
35:0f326f2e628e 36:a7632c26d895
     1 /*
       
     2 * Copyright (c) 2002 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:           
       
    15 *       Provides the TAknFepInputStatePredictiveCandidatePinyin methods.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 
       
    30 #include "AknFepUiInputStatePredictiveCandidatePinyin.h"
       
    31 #include "AknFepUIManagerStateInterface.h"  //MAknFepUIManagerStateInterface
       
    32 #include "AknFepManagerUIInterface.h"       //MAknFepManagerUIInterface
       
    33 
       
    34 TAknFepInputStatePredictiveCandidatePinyin::TAknFepInputStatePredictiveCandidatePinyin(
       
    35                                 MAknFepUIManagerStateInterface* aOwner,
       
    36                                 MAknFepUICtrlContainerChinese* aUIContainer)
       
    37     :TAknFepInputStatePredictiveCandidate(aOwner, aUIContainer)
       
    38     {
       
    39     }
       
    40 
       
    41 TBool TAknFepInputStatePredictiveCandidatePinyin::HandleKeyL(TInt aKey, TKeyPressLength aLength)
       
    42     {
       
    43     if ((aKey == EPtiKey0) || (aKey == EPtiKey1))
       
    44         {
       
    45         iOwner->FepMan()->TryCloseUiL();
       
    46         return EFalse;
       
    47         }
       
    48     else
       
    49         {
       
    50         return TAknFepInputStatePredictiveCandidate::HandleKeyL(aKey, aLength);
       
    51         }
       
    52     }
       
    53 
       
    54 // End of file