fep/aknfep/inc/AknFepUiInputStateCandidateMiniQwertyZhuyinPhrase.h
changeset 40 2cb9bae34d17
parent 31 f1bdd6b078d1
child 49 37f5d84451bd
equal deleted inserted replaced
31:f1bdd6b078d1 40:2cb9bae34d17
     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:            header file of zhuyin phrase candidate state
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 #ifndef __AKN_FEP_UI_INPUT_STATE_CANDIDATE_MINIQWERTY_ZHUYINPHRASE_H__
       
    30 #define __AKN_FEP_UI_INPUT_STATE_CANDIDATE_MINIQWERTY_ZHUYINPHRASE_H__
       
    31 
       
    32 // User includes 
       
    33 #include "AknFepUiInputStateCandidateQwertyBaseChinesePhrase.h"
       
    34 
       
    35 /**
       
    36  *  TAknFepUiInputStateCandidateMiniQwertyPinyinAndStrokePhrase class.
       
    37  *
       
    38  *  Implementation of Pinyin and Stroke phrase candidate state
       
    39  *
       
    40  *  @lib avkonfep.dll
       
    41  *  @since S60 v3.2
       
    42  */
       
    43 class TAknFepUiInputStateCandidateMiniQwertyZhuyinPhrase : 
       
    44     public TAknFepInputStateCandidateQwertyBaseChinesePhrase
       
    45     {
       
    46 public:
       
    47 
       
    48     /**
       
    49      * C++ default constructor
       
    50      *
       
    51      * @since S60 V3.2
       
    52      * @param aOwner Pointer to UI manager state interface
       
    53      * @param aUIContainer Pointer to Chinese UI container
       
    54      */
       
    55     TAknFepUiInputStateCandidateMiniQwertyZhuyinPhrase(
       
    56         MAknFepUIManagerStateInterface* aOwner,
       
    57         MAknFepUICtrlContainerChinese* aUIContainer);
       
    58     /**
       
    59      * Handling Command events.
       
    60      * This Method is called by CAknFepUIManagerJapanese.
       
    61      *
       
    62      * @param aCommandId Command ID value
       
    63      */
       
    64     void HandleCommandL( TInt aCommandId );
       
    65     
       
    66 protected:
       
    67 
       
    68     /**
       
    69      * From TAknFepInputStateCandidateBasePhrase
       
    70      * Handle system key press
       
    71      *
       
    72      * @since S60 v3.2
       
    73      * @param aKey System key event
       
    74      * @param aLength Key press length
       
    75      * @return ETrue if handle, otherwise this class do not handle this key
       
    76      */
       
    77     
       
    78     TBool HandleKeyForMiniQwertyL( TInt aKey,
       
    79            TKeyPressLength aLength );
       
    80        
       
    81     TBool HandleKeyForHalfAndCustomQwertyL( TInt aKey,
       
    82            TKeyPressLength aLength );
       
    83     TBool HandleKeyL( TInt aKey,TKeyPressLength aLength );
       
    84     /**
       
    85      *fill the phrase and keystorke array 
       
    86      *
       
    87      * @since S60 V3.2
       
    88      * @param aText Pointer to the spelling 
       
    89      * @param aPhrase Pointer to phrase 
       
    90      */
       
    91     void FillPhraseAndStrokArrayL(const TDesC& aText, const TDesC& aPhrase);
       
    92     /**
       
    93      * get the key stroke count
       
    94      *
       
    95      * @since S60 V3.2
       
    96      * @param aBuf Pointer to the spelling 
       
    97      * 
       
    98      */
       
    99     TInt GetInputPaneKeyStrokeCount(const TDesC& aBuf);
       
   100     /**
       
   101      * commit the pharse created to editor
       
   102      *
       
   103      * @since S60 V3.2
       
   104      * 
       
   105      */
       
   106     TBool ComitPhraseCreatedToEditorL();
       
   107     /**
       
   108      * Get the valid keystroke.
       
   109      * ETure  get the valid keystorke,else EFalse
       
   110      */
       
   111     TBool CheckToneMarkBorderUpon();
       
   112     /**
       
   113      * get the index of the tonemark 
       
   114      *
       
   115      * @since S60 V3.2
       
   116      * @param aText  Pointer to the spelling 
       
   117      * 
       
   118      */
       
   119     TInt GetIndexOfToneMark( const TDesC& aText);
       
   120     };
       
   121 
       
   122 #endif __AKN_FEP_UI_INPUT_STATE_CANDIDATE_MINIQWERTY_ZHUYINPHRASE_H__
       
   123 
       
   124 // End of file