textinput/peninputvkbkr/inc/PeninputVkbKrUiStateStandby.h
branchRCL_3
changeset 21 ecbabf52600f
parent 0 eb1f2e154e89
equal deleted inserted replaced
20:ebd48d2de13c 21:ecbabf52600f
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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:  peninput VKB data manager
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef PENINPUTVKBKRUISTATESTANDBY_H
       
    19 #define PENINPUTVKBKRUISTATESTANDBY_H
       
    20 
       
    21 #include "PeninputVkbKrUiStateBase.h"
       
    22 
       
    23 class CPeninputVkbKrUiStateStandby : 
       
    24         public CPeninputVkbKrUiStateBase,
       
    25         public MPtiObserver
       
    26     {
       
    27 public:
       
    28     
       
    29     static CPeninputVkbKrUiStateStandby* NewLC(
       
    30         MPeninputUiStateMgr* aUiStateMgr, 
       
    31         MPeninputLayoutContext* aContext,
       
    32         CPtiEngine& aPtiEngine);
       
    33 
       
    34     static CPeninputVkbKrUiStateStandby* NewL(
       
    35         MPeninputUiStateMgr* aUiStateMgr, 
       
    36         MPeninputLayoutContext* aContext,
       
    37         CPtiEngine& aPtiEngine);
       
    38 
       
    39     virtual ~CPeninputVkbKrUiStateStandby();
       
    40 
       
    41 private:
       
    42 
       
    43     CPeninputVkbKrUiStateStandby(
       
    44         MPeninputUiStateMgr* aUiStateMgr, 
       
    45         MPeninputLayoutContext* aContext,
       
    46         CPtiEngine& aPtiEngine);
       
    47 
       
    48     void ConstructL();
       
    49 
       
    50 private: // from CPeninputVkbKrUiStateBase 
       
    51     
       
    52     virtual TBool HandleKeyEventL(
       
    53         const TRawEvent& aData);
       
    54     
       
    55     virtual TBool HandleControlEvent(
       
    56         TInt aEventType,
       
    57         const TDesC& aEventData);
       
    58     
       
    59 private:
       
    60     
       
    61     /**
       
    62     * This method is called when multitapping timer
       
    63     * expires. Related to EPtiEngineMultitaping input mode.
       
    64     */
       
    65     virtual void KeyTimerExpired();
       
    66     
       
    67     /**
       
    68     * This method is called when last item in prediction
       
    69     * candidate list is reached. Related to EPtiEnginePredictive
       
    70     * input mode.
       
    71     */
       
    72     virtual void LastWordInSelectionList();
       
    73     
       
    74     /**
       
    75     * This method is called when the first item in prediction
       
    76     * candidate list is reached. Related to EPtiEnginePredictive
       
    77     * input mode.
       
    78     */      
       
    79     virtual void FirstWordInSelectionList();
       
    80 
       
    81 private:
       
    82 
       
    83     virtual TBool HandleVkbEvent(
       
    84         TInt aEventType, 
       
    85         const TDesC& aEventData );
       
    86     
       
    87     virtual TBool HandleBackEvent( 
       
    88         TInt aEventType, 
       
    89         const TDesC& aEventData );
       
    90 
       
    91     virtual TBool HandleEnterSpaceEvent( 
       
    92         TInt aEventType, 
       
    93         const TDesC& aEventData );
       
    94 
       
    95     virtual TBool HandleTabEvent( 
       
    96         TInt aEventType, 
       
    97         const TDesC& aEventData );
       
    98     
       
    99     TBool IsKoreanRange();
       
   100     
       
   101     TBool IsKoreanShiftLayout();
       
   102     
       
   103     TInt GetVkbLayout();
       
   104     
       
   105     TBool HandleKoreanKey(const TDesC& aEventData);
       
   106     
       
   107     void SendReplaceText(const TInt& aLenToReplace,const TDesC& aTextToReplace);
       
   108     
       
   109     void SendRangeEvent(const TInt& aRange,const TInt& aLayout);
       
   110     
       
   111     TBool CommitOrNot(TPtrC aData);
       
   112     
       
   113 private:
       
   114     
       
   115     TBool iTextCommited;
       
   116     
       
   117     };
       
   118 
       
   119 #endif // PENINPUTVKBKRUISTATESTANDBY_H