fep/aknfep/inc/AknFepUiInputStateEntryHalfQwertyWesternPredictive.h
changeset 36 a7632c26d895
parent 35 0f326f2e628e
child 42 b3eaa440ab06
equal deleted inserted replaced
35:0f326f2e628e 36:a7632c26d895
     1 /*
       
     2 * Copyright (c) 2007 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 TAknFepUiInputStateEntryHalfQwertyWesternPredictive definition.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 
       
    30 #ifndef __AKN_FEP_UI_INPUT_STATE_ENTRY_HALFQWERTY_WESTERN_PREDICTIVE_H__
       
    31 #define __AKN_FEP_UI_INPUT_STATE_ENTRY_HALFQWERTY_WESTERN_PREDICTIVE_H__
       
    32 
       
    33 #include "AknFepUiInputStateBase.h"
       
    34 
       
    35 class TAknFepUiInputStateEntryHalfQwertyWesternPredictive : public TAknFepInputStateBase
       
    36     {
       
    37 public:
       
    38     /**
       
    39     * Constructor
       
    40     * @param    aOwner  The UI manager that owns this input state
       
    41     */
       
    42     TAknFepUiInputStateEntryHalfQwertyWesternPredictive(MAknFepUIManagerStateInterface* aOwner);
       
    43     
       
    44     /**
       
    45     * The main handler function for the key presses.
       
    46     * @param    aKey    The key to be handled. This may be either TKeyCode or TStdScanCode value.
       
    47     * @param    aLength Tells if the key press is short or long one.
       
    48     */
       
    49     TBool HandleKeyL(TInt aKey, TKeyPressLength aLength);
       
    50     
       
    51 
       
    52 public: // Functions from MPtiObserver interface
       
    53     /**
       
    54     * Called when last word in the selection list is activated. Not relevant as we use the 
       
    55     * candidate popup.
       
    56     */
       
    57     void LastWordInSelectionList();
       
    58     
       
    59     /**
       
    60     * Called when the first word in the selection list is activated. Not relevant as we use the
       
    61     * candidate popup.
       
    62     */
       
    63     void FirstWordInSelectionList();
       
    64 
       
    65     /**
       
    66     * Called when the Chr multitap timer expires. The case should be updated at that time.
       
    67     */ 
       
    68     void KeyTimerExpired();
       
    69     
       
    70 //    void HandleCommandL(TInt aCommandId);
       
    71 
       
    72 protected:
       
    73     /**
       
    74     * Sets the shift state of the PtiEngine according the shift and chr states of the Fep.
       
    75     * @param    aKey    The with which the shift state is used. This is needed because shift
       
    76     *                   works differently with letter keys than with numbers and punctuation.
       
    77     */
       
    78     void HandleShiftState(TInt aKey);
       
    79     
       
    80     /**
       
    81     * Handles keys which cause the active word to be committed (like enter, space, tab,...).
       
    82     * @param    aKey    The key to be handled.
       
    83     */
       
    84     TBool HandleWordBreakingKeysL(TInt aKey);
       
    85     
       
    86     /**
       
    87     * Handles the "normal" keys which (may) cause some character to be appended to the current word.
       
    88     * @param    aKey    The key to be handled.
       
    89     */
       
    90     TBool HandleQwertyKeysL(TInt aKey, TKeyPressLength aLength);
       
    91     
       
    92     /**
       
    93     * Handles the keys which cause cursor movements (arrows, backspace).
       
    94     * @param    aKey    The key to be handled
       
    95     * @param    aLength The key press length.
       
    96     */
       
    97     TBool HandleNaviKeysL(TInt aKey, TKeyPressLength aLength);
       
    98     
       
    99     void ConvertDigitToDigittype(TDigitType& digittype,TDes& aConvertedNumeral);
       
   100     
       
   101     
       
   102 /*    TBool HandleStandardNumericKeysL(TInt aKey, TKeyPressLength aLength);
       
   103     
       
   104     void DoNextMatch();
       
   105     void DoPreviousMatch();*/
       
   106 };
       
   107 
       
   108 #endif //__AKN_FEP_UI_INPUT_STATE_ENTRY_HALFQWERTY_WESTERN_PREDICTIVE_H__
       
   109 
       
   110 // End of file