fep/aknfep/inc/aknfepuiinputstateentrypinyinphrasecreation.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 TAknFepInputStateEntryPinyinPhraseCreation definition.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 
       
    30 #ifndef T_AKNFEPUIINPUTSTATEENTRYPINYINPHRASECREATION_H
       
    31 #define T_AKNFEPUIINPUTSTATEENTRYPINYINPHRASECREATION_H
       
    32 
       
    33 
       
    34 #include "aknfepinputstatepinyinphrasecreationbase.h"
       
    35 
       
    36 
       
    37 class TAknFepInputStateEntryPinyinPhraseCreation : public TAknFepInputStatePinyinPhraseCreationBase
       
    38     {
       
    39 public:
       
    40     
       
    41     /**
       
    42      * C++ construct.
       
    43      *
       
    44      * @since S60 v5.0.
       
    45      * @return self object.
       
    46      */ 
       
    47     TAknFepInputStateEntryPinyinPhraseCreation(
       
    48                                 MAknFepUIManagerStateInterface* aOwner,
       
    49                                 MAknFepUICtrlContainerChinese* aUIContainer);
       
    50     
       
    51     /**
       
    52      * HandleKeyL.
       
    53      *
       
    54      * @param aKey input key.
       
    55      * @param aLength TKeyPressLength.
       
    56      * @since S60 v5.0.
       
    57      * @return ETrue.
       
    58      */ 
       
    59     TBool HandleKeyL( TInt aKey, TKeyPressLength aLength );
       
    60     
       
    61     /**
       
    62      * Initialize State.
       
    63      *
       
    64      * @since S60 v5.0.
       
    65      * @return none.
       
    66      */ 
       
    67     void InitializeState();
       
    68     
       
    69 private:
       
    70     
       
    71     /**
       
    72      * Implicity show the show info.
       
    73      *
       
    74      * @since S60 v5.0.
       
    75      * @return none.
       
    76      */        
       
    77     void ImplicityShowInfo( TBool aGetScreenCoordinates = EFalse );
       
    78 
       
    79     /**
       
    80      * Implicity show the show info.
       
    81      *
       
    82      * @since S60 v5.0.
       
    83      * @return none.
       
    84      */        
       
    85     void ImplicityShowInfoL( TBool aGetScreenCoordinates );
       
    86 
       
    87     /**
       
    88      * EKeyBackspace.
       
    89      *
       
    90      * @param aLength TKeyPressLength.
       
    91      * @since S60 v5.0
       
    92      * @return None.
       
    93      */        
       
    94     void HandleKeyBackspace( TKeyPressLength aLength );
       
    95     
       
    96     /**
       
    97      * EKeyOK And EKeyCBA1L.
       
    98      *
       
    99      * @since S60 v5.0
       
   100      * @return None.
       
   101      */        
       
   102     void HandleKeyOKAndKeyCBA1L();
       
   103     
       
   104     /**
       
   105      * others key input.
       
   106      *
       
   107      * @param aKey input key.
       
   108      * @since S60 v5.0
       
   109      * @return None.
       
   110      */        
       
   111     void HandleOthersKey( TInt aKey );
       
   112     
       
   113     /**
       
   114      * Judge that cursor can move.
       
   115      * 
       
   116      * @since S60 v5.0
       
   117      * @return ETrue the cursor can move, EFalse the cursor can't move.
       
   118      */
       
   119     TBool IsMoveCursor();
       
   120     
       
   121     /**
       
   122      * move cursor to left.
       
   123      * 
       
   124      * @since S60 v5.0
       
   125      * @return none.
       
   126      */
       
   127     void MoveCursorToLeft();
       
   128     
       
   129     /**
       
   130      * move cursor to left.
       
   131      * 
       
   132      * @since S60 v5.0
       
   133      * @return none.
       
   134      */
       
   135     void MoveCursorToRight();
       
   136     
       
   137     /**
       
   138      * Add phrase to DB.
       
   139      *
       
   140      * @since S60 v5.0
       
   141      * @param aPhraseAdd the phrase to be added to DB  
       
   142      * @return ETrue if the phrase is added to DB successfully, otherwise EFalse.
       
   143      */    
       
   144     TBool AddPhraseToDB( const TDesC& aPhraseAdd );
       
   145     
       
   146     /**
       
   147      * Try to close UI.
       
   148      * 
       
   149      * @since S60 v5.0
       
   150      * @return ETrue close the UI.
       
   151      */
       
   152     TBool TryCloseUI( TKeyPressLength aLength );
       
   153     
       
   154     };
       
   155 
       
   156 #endif //T_AKNFEPUIINPUTSTATEENTRYPINYINPHRASECREATION_H
       
   157 
       
   158 // End of file