textinput/peninputgenericitut/inc/peninputitutwesternuimgr.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_WESTERNITUTUIMGR_H
       
    18 #define C_WESTERNITUTUIMGR_H
       
    19 
       
    20 #include "peninputgenericitutuimgrbase.h"
       
    21 
       
    22 class CWesternItutUiMgr : public CGenericItutUiMgrBase
       
    23     {
       
    24 public:
       
    25     static CWesternItutUiMgr* NewL(MItutLayoutContext* aContext, 
       
    26                                    CGenericItutDataMgr* aDataMgr,
       
    27                                    CGenericItutWindowManager* aUiManager);
       
    28 
       
    29     ~CWesternItutUiMgr();
       
    30 
       
    31     // called by ui layout
       
    32     TInt HandleCommandL(TInt aCmd, TUint8* aData);
       
    33 
       
    34     // handle control event
       
    35     TBool HandleCtrlEventL(TInt aEventType, CFepUiBaseCtrl* aCtrl, const TDesC& aEventData);
       
    36 
       
    37     void SetCurrentStateL(TUiState aNewState);
       
    38 
       
    39     void ActivateUiL();
       
    40 
       
    41     void DeactivateUI();
       
    42 
       
    43 protected:
       
    44 
       
    45     CWesternItutUiMgr(MItutLayoutContext* aContext,
       
    46                       CGenericItutDataMgr* aDataMgr,
       
    47                       CGenericItutWindowManager* aUiManager);
       
    48 
       
    49     void ConstructL();
       
    50     
       
    51 private:
       
    52     CGenericItutUiStateBase* iNormalState;
       
    53     CGenericItutUiStateBase* iCustomerState;
       
    54     CGenericItutUiStateBase* iMatchSelState;
       
    55     CGenericItutUiStateBase* iSpellState;
       
    56     };
       
    57 
       
    58 #endif // C_WESTERNITUTUIMGR_H