textinput/peninputgenericitut/inc/peninputitutwesternuistatespelling.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 
       
    18 #ifndef C_WESTERNITUTUISTATESPELLING_H
       
    19 #define C_WESTERNITUTUISTATESPELLING_H
       
    20 
       
    21 #include "peninputgenericitutuistatebase.h"
       
    22 
       
    23 class CItutCustomizedRscMgr;
       
    24 class CFepLayoutMultiLineIcf;
       
    25 class CAknFepCtrlCommonButton;
       
    26 
       
    27 class CWesternItutUiStateSpelling : public CGenericItutUiStateBase
       
    28     {
       
    29 public:
       
    30     static CWesternItutUiStateSpelling* NewL(CGenericItutUiMgrBase* aOwner);
       
    31 
       
    32     ~CWesternItutUiStateSpelling();
       
    33 
       
    34     void OnExit();
       
    35 
       
    36     void OnEntryL();
       
    37 
       
    38     CGenericItutUiMgrBase::TUiState StateType();
       
    39 
       
    40     TInt HandleCommandL(TInt aCmd, TUint8* aData);
       
    41 
       
    42     TBool HandleCtrlEventL(TInt aEventType, 
       
    43                            CFepUiBaseCtrl* aCtrl, 
       
    44                            const TDesC& aEventData);
       
    45 
       
    46 protected:
       
    47     CWesternItutUiStateSpelling(CGenericItutUiMgrBase* aOwner);
       
    48     void ConstructL();
       
    49     void CreateTextBtnIfNeededL(CAknFepCtrlCommonButton*& aBtn, 
       
    50                                 TInt aCtrlId,
       
    51                                 TInt aCtrlPos,
       
    52                                 TInt aTextResId,
       
    53                                 TAknTextLineLayout aTextFormat);
       
    54 	void ReCalcLayoutL();
       
    55 private:
       
    56     CItutCustomizedRscMgr* iRscMgr;
       
    57     CFepLayoutMultiLineIcf* iICF;
       
    58     CAknFepCtrlCommonButton* iOk;
       
    59     CAknFepCtrlCommonButton* iCancel;
       
    60     };
       
    61 
       
    62 #endif //C_WESTERNITUTUISTATESPELLING_H