textinput/peninputsplititut/inc/peninputsplititutchnuimgr.h
changeset 0 eb1f2e154e89
equal deleted inserted replaced
-1:000000000000 0:eb1f2e154e89
       
     1 /*
       
     2 * Copyright (c) 2009 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 *
       
    16 */
       
    17 #ifndef C_CHNSPLITITUTUIMGR_H
       
    18 #define C_CHNSPLITITUTUIMGR_H
       
    19 
       
    20 #include "peninputsplititutuimgrbase.h"
       
    21 
       
    22 class MSplitItutLayoutContext;
       
    23 
       
    24 /**
       
    25  *  class CChnSplitItutUiMgr.
       
    26  *
       
    27  *  split itu-t chinese ui mgr.
       
    28  *
       
    29  *  @lib peninputsplititut.lib
       
    30  *  @since S60 v5.0
       
    31  */
       
    32 class CChnSplitItutUiMgr : public CSplitItutUiMgrBase
       
    33     {
       
    34 public:
       
    35     /** 
       
    36      * Symbian constructor.
       
    37      *
       
    38      * @since S60 5.0
       
    39      * 
       
    40      * @param aContext layout context
       
    41      * @param aDataMgr data mgr
       
    42      * @param aUiManager Ui mgr
       
    43      * @return split ui mgr
       
    44      */
       
    45     static CChnSplitItutUiMgr* NewL(MSplitItutLayoutContext* aContext, 
       
    46                                CSplitItutDataMgr* aDataMgr,
       
    47                                CSplitItutWindowManager* aUiManager);
       
    48 
       
    49     /**
       
    50      * standard c++ destructor.
       
    51      *
       
    52      * @since S60 5.0
       
    53      * @return none
       
    54      */
       
    55     ~CChnSplitItutUiMgr();
       
    56 
       
    57     /** 
       
    58      * handle command.
       
    59      *
       
    60      * @since S60 5.0
       
    61      * 
       
    62      * @param aCmd
       
    63      * @param aData
       
    64      * @return TInt
       
    65      */
       
    66     TInt HandleCommandL(TInt aCmd, TUint8* aData);
       
    67 
       
    68     /** 
       
    69      * handle control event.
       
    70      *
       
    71      * @since S60 5.0
       
    72      * 
       
    73      * @param aEventType
       
    74      * @param aCtrl
       
    75      * @param aEventData
       
    76      * @return TBool
       
    77      */
       
    78     TBool HandleCtrlEventL( TInt aEventType, 
       
    79                             CFepUiBaseCtrl* aCtrl, 
       
    80                             const TDesC& aEventData);
       
    81 
       
    82     /** 
       
    83      * set current state
       
    84      *
       
    85      * @since S60 5.0
       
    86      * 
       
    87      * @param aNewStateType
       
    88      * @return None
       
    89      */
       
    90     void SetCurrentStateL(TUiState aNewStateType);
       
    91 
       
    92     /** 
       
    93      * active ui
       
    94      *
       
    95      * @since S60 5.0
       
    96      * 
       
    97      * @return None
       
    98      */
       
    99     void ActivateUiL();
       
   100 
       
   101     /** 
       
   102      * handle long press number key
       
   103      *
       
   104      * @since S60 5.0
       
   105      * 
       
   106      * @param aKey
       
   107      * @return None
       
   108      */
       
   109     void HandleLongPressNumberKeyL(TPtiKey aKey);
       
   110 
       
   111     /** 
       
   112      * deactive ui
       
   113      *
       
   114      * @since S60 5.0
       
   115      * 
       
   116      * @return None
       
   117      */
       
   118     void DeactivateUI();
       
   119 
       
   120 protected:
       
   121     /**
       
   122      * C++ constructor
       
   123      *
       
   124      * @since S60 5.0
       
   125      * @param aContext
       
   126      * @param aDataMgr
       
   127      * @param aUiManager
       
   128      * @return none
       
   129      */
       
   130     CChnSplitItutUiMgr(MSplitItutLayoutContext* aContext,
       
   131                   CSplitItutDataMgr* aDataMgr,
       
   132                   CSplitItutWindowManager* aUiManager);
       
   133                   
       
   134     /**
       
   135      * Symbian second-phase constructor
       
   136      *
       
   137      * @since S60 5.0
       
   138      * @return none
       
   139      */
       
   140     void ConstructL();
       
   141     
       
   142 private:
       
   143     
       
   144     /**
       
   145      * is chinese mode
       
   146      *
       
   147      * @since S60 5.0
       
   148      * @return TBool
       
   149      */
       
   150     TBool IsChineseMode();    
       
   151 
       
   152 private:
       
   153     /**
       
   154      * standby state
       
   155      * Own
       
   156      */
       
   157     CSplitItutUiStateBase* iStandbyState;
       
   158     
       
   159     /**
       
   160      * pinyin component state
       
   161      * Own
       
   162      */
       
   163     CSplitItutUiStateBase* iPinyinComp;
       
   164     
       
   165     /**
       
   166      * stroke or zhuyin component state
       
   167      * Own
       
   168      */
       
   169     CSplitItutUiStateBase* iStoZhuComp;
       
   170     
       
   171     /**
       
   172      * predictive component state
       
   173      * Own
       
   174      */
       
   175     CSplitItutUiStateBase* iPredictState;
       
   176     
       
   177     /**
       
   178      * Normal state
       
   179      * Own
       
   180      */
       
   181     CSplitItutUiStateBase* iNormalState;
       
   182        
       
   183     };
       
   184 
       
   185 #endif // C_CHNSPLITITUTUIMGR_H