textinput/peninputgenericitut/inc/peninputitutchnuistatepredict.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_CHNITUTUISTATEPREDICTBASE_H
       
    18 #define C_CHNITUTUISTATEPREDICTBASE_H
       
    19 
       
    20 #include "peninputgenericitutuistatebase.h"
       
    21 
       
    22 class CChnItutUiStatePredict : public CGenericItutUiStateBase
       
    23     {
       
    24 public:
       
    25     static CChnItutUiStatePredict* NewL(CGenericItutUiMgrBase* aOwner);
       
    26 
       
    27     ~CChnItutUiStatePredict();
       
    28 
       
    29     void OnExit();
       
    30 
       
    31     void OnEntryL();
       
    32 
       
    33     CGenericItutUiMgrBase::TUiState StateType();
       
    34 
       
    35     TBool HandleKeyL(TInt aCmd, TInt aKey);
       
    36     
       
    37     // handle control event
       
    38     TBool HandleCtrlEventL(TInt aEventType, CFepUiBaseCtrl* aCtrl, const TDesC& aEventData);
       
    39 
       
    40 protected:
       
    41     CChnItutUiStatePredict(CGenericItutUiMgrBase* aOwner);
       
    42     
       
    43 private:
       
    44     TBool IsKeyValid(TInt aKey);
       
    45 
       
    46     // from aTgt: remove overlap cand between aSrc and aTgt
       
    47     // aSrcStartIdx: from it to compare aSrc
       
    48     // aTgtStartIdx: from it to compare aTgt
       
    49     TInt RemoveDuplicateCand(const RPointerArray<HBufC>& aSrc,
       
    50                              RPointerArray<HBufC>& aTgt,
       
    51                              TInt aSrcStartIdx,
       
    52                              TInt aTgtStartIdx);
       
    53 
       
    54 private:
       
    55     TInt iLastOverlapIdx;    
       
    56     };
       
    57 
       
    58 #endif //C_CHNITUTUISTATEPREDICTBASE_H