textinput/peninputgenericitut/inc/peninputitutchnuistatepinyincomposition.h
changeset 0 eb1f2e154e89
equal deleted inserted replaced
-1:000000000000 0:eb1f2e154e89
       
     1 /*
       
     2 * Copyright (c) 2009 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 *
       
    16 */
       
    17 #ifndef C_CHNITUTUISTATEPINYINCOMPOSITION_H
       
    18 #define C_CHNITUTUISTATEPINYINCOMPOSITION_H
       
    19 
       
    20 #include "peninputgenericitutuistatebase.h"
       
    21 
       
    22 class CChnItutUiStatePinyinComposition : public CGenericItutUiStateBase
       
    23     {
       
    24 public:
       
    25     static CChnItutUiStatePinyinComposition* NewL(CGenericItutUiMgrBase* aOwner);
       
    26 
       
    27     ~CChnItutUiStatePinyinComposition();
       
    28 
       
    29     void OnExit();
       
    30 
       
    31     void OnEntryL();
       
    32 
       
    33     // handle control event
       
    34     TBool HandleCtrlEventL(TInt aEventType, CFepUiBaseCtrl* aCtrl, const TDesC& aEventData);
       
    35 
       
    36     CGenericItutUiMgrBase::TUiState StateType();
       
    37 
       
    38     TBool HandleKeyL(TInt aCmd, TInt aKey);
       
    39 
       
    40 protected:
       
    41     CChnItutUiStatePinyinComposition(CGenericItutUiMgrBase* aOwner);
       
    42 
       
    43 /*
       
    44 private:
       
    45     // get nearest spell index, which is most close to last selected spell
       
    46     TInt GetNearestSpell(TInt aValidLastSpellLen);
       
    47 */
       
    48 
       
    49 private:
       
    50     RPointerArray<HBufC> iSpellCands;
       
    51     //HBufC* iLastSelSpell;
       
    52     };
       
    53 
       
    54 #endif //C_CHNITUTUISTATEPINYINCOMPOSITION_H