fep/aknfep/inc/aknfepinputstatecandidatepinyinphrasecreation.h
changeset 36 a7632c26d895
parent 35 0f326f2e628e
child 42 b3eaa440ab06
equal deleted inserted replaced
35:0f326f2e628e 36:a7632c26d895
     1 /*
       
     2 * Copyright (c) 2008 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 aknfepinputstatecandidatepinyinphrasecreation definition.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 
       
    30 #ifndef T_AKNFEPINPUTSTATECANDIDATEPINYINPHRASECREATION_H
       
    31 #define T_AKNFEPINPUTSTATECANDIDATEPINYINPHRASECREATION_H
       
    32 
       
    33 #include "aknfepinputstatepinyinphrasecreationbase.h"
       
    34 
       
    35 class TAknFepInputStateCandidatePinyinPhraseCreation : 
       
    36     public TAknFepInputStatePinyinPhraseCreationBase
       
    37     {
       
    38 public:
       
    39 
       
    40     /**
       
    41      * C++ default constructor
       
    42      *
       
    43      * @since S60 V5.0
       
    44      * @param aOwner Pointer to UI manager state interface
       
    45      * @param aUIContainer Pointer to Chinese UI container
       
    46      * @return self object
       
    47      */
       
    48     TAknFepInputStateCandidatePinyinPhraseCreation(
       
    49         MAknFepUIManagerStateInterface* aOwner,
       
    50         MAknFepUICtrlContainerChinese* aUIContainer);
       
    51     
       
    52 protected:
       
    53 
       
    54     /**
       
    55      * From TAknFepInputStateCandidateBasePhrase
       
    56      * Handle system key press
       
    57      *
       
    58      * @since S60 V5.0
       
    59      * @param aKey System key event
       
    60      * @param aLength Key press length
       
    61      * @return ETrue if handle, otherwise this class do not handle this key
       
    62      */
       
    63     TBool HandleKeyL(TInt aKey, TKeyPressLength aLength);
       
    64     
       
    65     /**
       
    66      * Update indicator
       
    67      *
       
    68      * @since S60 V5.0
       
    69      * @return none.
       
    70      */
       
    71     void UpdateIndicator();
       
    72     
       
    73     /**
       
    74      * Handle horizontal navigation
       
    75      *
       
    76      * @since S60 V5.0
       
    77      * @return ETrue if can move left or right,EFalse others.
       
    78      */
       
    79     TBool HandleHorizontalNavigation(TInt aKey);
       
    80     
       
    81     /**
       
    82      * Handle vertical navigation
       
    83      *
       
    84      * @since S60 V5.0
       
    85      * @return ETrue if can move up or down,EFalse others.
       
    86      */
       
    87     TBool HandleVerticalNavigation(TInt aKey);
       
    88     
       
    89     /**
       
    90      * Commit Inline to the EEP ctrl
       
    91      *
       
    92      * @since S60 V5.0
       
    93      * @param aText the commit info.
       
    94      * @return ETrue if can move up or down,EFalse others.
       
    95      */
       
    96     TBool CommitInlineEEPL( const TDesC& aText  );
       
    97 
       
    98 private:
       
    99     
       
   100     /**
       
   101      * KeyBackspace.
       
   102      *
       
   103      * @since S60 V5.0
       
   104      * @return none.
       
   105      */
       
   106     void KeyBackspace();
       
   107     
       
   108     /**
       
   109      * Key Up,Down,Left,RightArrow Or Key CBA1,OK.
       
   110      *
       
   111      * @since S60 V5.0
       
   112      * @return none.
       
   113      */
       
   114     void HandleKeyUpDownLeftRightArrowOrKeyCBA1OKL( 
       
   115                                  TInt aKey, 
       
   116                                  TKeyPressLength aLength );
       
   117     /**
       
   118        * the state change or not 
       
   119        *
       
   120        * @since S60 V5.0
       
   121        * @return none.
       
   122        */
       
   123     void ChangeStateOrNotL();
       
   124     };
       
   125 
       
   126 #endif //T_AKNFEPINPUTSTATECANDIDATEPINYINPHRASECREATION_H
       
   127 
       
   128 // End of file