fep/aknfep/inc/AknFepUiInputStateCandidateQwertyChineseBase.h
changeset 36 a7632c26d895
parent 35 0f326f2e628e
child 42 b3eaa440ab06
equal deleted inserted replaced
35:0f326f2e628e 36:a7632c26d895
     1 /*
       
     2 * Copyright (c)  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:            ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 #ifndef __AKN_FEP_UI_INPUT_STATE_CANDIDATE_QWERTY_CHINESE_BASE_H__
       
    30 #define __AKN_FEP_UI_INPUT_STATE_CANDIDATE_QWERTY_CHINESE_BASE_H__
       
    31 
       
    32 #include "AknFepUiInputStateChineseBase.h"
       
    33 #include <PtiDefs.h>
       
    34 
       
    35 class TAknFepInputStateCandidateQwertyChineseBase : public TAknFepInputStateChineseBase
       
    36     {
       
    37     public:
       
    38     /**
       
    39      * Handling Command events.
       
    40      * This Method is called by CAknFepUIManagerJapanese.
       
    41      *
       
    42      * @param aCommandId Command ID value
       
    43      */
       
    44     void HandleCommandL( TInt aCommandId );
       
    45 protected:
       
    46     TAknFepInputStateCandidateQwertyChineseBase(MAknFepUIManagerStateInterface* aOwner,
       
    47                                     MAknFepUICtrlContainerChinese* aUIContainer);
       
    48 
       
    49     TBool HandleKeyL(TInt aKey, TKeyPressLength aLength);
       
    50     TBool HandleHorizontalNavigation(TInt aKey);
       
    51     TBool HandleVerticalNavigation(TInt aKey);
       
    52     inline TInt MapKeyToIndex(TInt aKey);
       
    53     void UpdateIndicator();
       
    54     };
       
    55   
       
    56 inline TInt TAknFepInputStateCandidateQwertyChineseBase::MapKeyToIndex(TInt aKey)
       
    57     {
       
    58     TInt index = aKey - EPtiKey0; // get zero-based value first
       
    59     return !index ? 9 : --index; // map it for one-based keys...
       
    60     }
       
    61 
       
    62 #endif //__AKN_FEP_UI_INPUT_STATE_CANDIDATE_QWERTY_CHINESE_BASE_H__
       
    63 
       
    64 // End of file