fep/aknfep/inc/aknfepuimanagerfingeritutchinese.h
changeset 40 2cb9bae34d17
parent 31 f1bdd6b078d1
child 49 37f5d84451bd
equal deleted inserted replaced
31:f1bdd6b078d1 40:2cb9bae34d17
     1 /*
       
     2 * Copyright (c) 2002-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:            Provides the CAknFepUIManagerFingerItutChinese definition.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 #ifndef __AKN_FEP_UI_MANAGER_FINGERITUT_CHINESE_H__
       
    30 #define __AKN_FEP_UI_MANAGER_FINGERITUT_CHINESE_H__
       
    31 
       
    32 // INCLUDES
       
    33 #include <PtiDefs.h>
       
    34 
       
    35 #include "AknFepUIManagerStateInterface.h"
       
    36 #include "AknFepUiInputStateChineseBase.h"
       
    37 
       
    38 // FORWARD DECLARATION
       
    39 class CAknFepUIManagerBase;
       
    40 class CAknFepPluginManager;
       
    41 
       
    42 /**
       
    43  *  CAknFepUIManagerFingerItutChinese ui class
       
    44  *
       
    45  *  This class is Chinese finger ITUT ui manager. 
       
    46  *  It manage the Chinese finger ITUT state class.
       
    47  *
       
    48  *  @lib avkonfep.dll
       
    49  *  @since S60 v3.2
       
    50  */
       
    51 class CAknFepUIManagerFingerItutChinese : public CAknFepUIManagerBase
       
    52     {
       
    53     
       
    54 public: 
       
    55 
       
    56     /**
       
    57      * Symbian constructor
       
    58      *
       
    59      * @since S60 v3.2
       
    60      * @param aFepMan Pointer to fep manager
       
    61      * @param aCaseMan Pointer to case manager
       
    62      * @param aLanguage Current language
       
    63      * @param aPluginMager Pointer to plugin manager
       
    64      * @return Pointer to created CAknFepUIManagerFingerItutChinese object
       
    65      */  
       
    66      static CAknFepUIManagerFingerItutChinese* NewL(MAknFepManagerUIInterface* aFepMan, 
       
    67          CAknFepCaseManager* aCaseMan, TLanguage aLanguage, CAknFepPluginManager* aPluginMager);
       
    68          
       
    69     /**
       
    70      * Destructor
       
    71      *
       
    72      * @since S60 v3.2
       
    73      * @return None
       
    74      */
       
    75     virtual ~CAknFepUIManagerFingerItutChinese();
       
    76 
       
    77 public:
       
    78 
       
    79 // From CAknFepUIManagerBase
       
    80 
       
    81     /**
       
    82      * From CAknFepUIManagerBase
       
    83      * Handle key event  
       
    84      *
       
    85      * @since S60 v3.2
       
    86      * @param aKey Event key
       
    87      * @param aLength The length of key press
       
    88      * @return ETrue for handling by state machine; otherwise EFalse
       
    89      */ 
       
    90     TBool HandleKeyL(TInt aKey, TKeyPressLength aLength,TEventCode aEventCode = EEventKey);       
       
    91 
       
    92     /**
       
    93      * From CAknFepUIManagerBase
       
    94      * Close current Finger ITUT ui  
       
    95      *
       
    96      * @since S60 v3.2
       
    97      * @return none
       
    98      */ 
       
    99     void CloseUI();
       
   100 
       
   101     /**
       
   102      * From CAknFepUIManagerBase
       
   103      * Input mode is supported by this ui  
       
   104      *
       
   105      * @since S60 v3.2
       
   106      * @param aMode Input mode
       
   107      * @return error code
       
   108      */ 
       
   109     TInt SupportLanguage(TInt aMode) const;
       
   110 
       
   111     /**
       
   112      * From CAknFepUIManagerBase
       
   113      * Set current input language  
       
   114      *
       
   115      * @since S60 v3.2
       
   116      * @param aLanguage Current language
       
   117      * @return none
       
   118      */ 
       
   119     void SetInputLanguageL(TLanguage aLanguage);
       
   120 
       
   121     /**
       
   122      * From CAknFepUIManagerBase
       
   123      * Change state machine  
       
   124      *
       
   125      * @since S60 v3.2
       
   126      * @param aState ui state
       
   127      * @return current ui state
       
   128      */ 
       
   129     TUIState ChangeState(TUIState aState);
       
   130 
       
   131     /**
       
   132      * From CAknFepUIManagerBase
       
   133      * Change ITUT state machine  
       
   134      *
       
   135      * @since S60 v3.2
       
   136      * @param aState ui state
       
   137      * @return none
       
   138      */ 
       
   139     void ChangeStatetItut(TUIState aState);
       
   140     
       
   141 private: 
       
   142 
       
   143     /**
       
   144      * From CAknFepUIManagerBase
       
   145      * Get current fep ui state machine
       
   146      *
       
   147      * @since S60 v3.2
       
   148      * @return pointer to TAknFepInputStateBase
       
   149      */ 
       
   150     TAknFepInputStateBase* FepUIState();
       
   151 
       
   152     /**
       
   153      * C++ default constructor
       
   154      *
       
   155      * @since S60 v3.2
       
   156      * @param aFepMan Pointer to fep manager
       
   157      * @param aCaseMan Pointer to case manager
       
   158      * @param aPluginMager Pointer to plugin manager
       
   159      * @return None
       
   160      */  
       
   161     CAknFepUIManagerFingerItutChinese(MAknFepManagerUIInterface* aFepMan, 
       
   162         CAknFepCaseManager* aCaseMan, CAknFepPluginManager* aPluginMager);
       
   163 
       
   164     /**
       
   165      * Symbian second-phase constructor
       
   166      *
       
   167      * @since S60 v3.2
       
   168      * @param aLanguage Current language
       
   169      * @return None
       
   170      */ 
       
   171     void ConstructL(TLanguage aLanguage);
       
   172 
       
   173 private: // Data
       
   174 
       
   175     /**
       
   176      * Current state machine
       
   177      */
       
   178     TAknFepInputStateBase iFepUiState;//TAknFepInputStateChineseBase iFepUiState;
       
   179 
       
   180     /**
       
   181      * Current flag
       
   182      */
       
   183 	TUint iFlags;
       
   184 
       
   185     /**
       
   186      * Previous mode
       
   187      */
       
   188     TInt iPrevMode;
       
   189 
       
   190     /**
       
   191      * Fep plugin manager (Not own)
       
   192      */
       
   193     CAknFepPluginManager* iPluginMager;
       
   194 
       
   195     };
       
   196     
       
   197 #endif //__AKN_FEP_UI_MANAGER_FINGERITUT_CHINESE_H__
       
   198 
       
   199 // End of file