textinput/peninputgenerichwr/inc/peninputhwrarabicstatestandby.h
changeset 0 eb1f2e154e89
equal deleted inserted replaced
-1:000000000000 0:eb1f2e154e89
       
     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:  Interface of hwr standby ui state
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_PENINPUTHWRARABICSTATESTANDBY_H
       
    20 #define C_PENINPUTHWRARABICSTATESTANDBY_H
       
    21 
       
    22 // user includes
       
    23 #include "peninputhwrarabicstate.h"
       
    24 
       
    25 /**
       
    26  *  Hwr standby ui state
       
    27  *  It provides key event handling and internal event handling in standby ui state
       
    28  *
       
    29  *  @lib peninputhwrboxjp.lib
       
    30  *  @since S60 v3.2
       
    31  */
       
    32 class CPeninputHwrBxAbStateStandby : public CPeninputHwrBxAbStateBase
       
    33     {
       
    34 public:
       
    35 
       
    36     /**
       
    37      * Two-phased constructor.
       
    38      *
       
    39      * @since S60 v3.2
       
    40      * @param aUiStateMgr The common ui state manager
       
    41      * @param aContext The common layout context
       
    42      * @return The pointer point to CPeninputHwrBxAbStateStandby type object
       
    43      */
       
    44     static CPeninputHwrBxAbStateStandby* NewL(MPeninputUiStateMgr* aUiStateMgr, MPeninputLayoutContext* aContext);
       
    45 
       
    46     /**
       
    47      * Destructor.
       
    48      *
       
    49      * @since S60 v3.2
       
    50      */
       
    51     virtual ~CPeninputHwrBxAbStateStandby();
       
    52 
       
    53     /**
       
    54      * Process key event
       
    55      *
       
    56      * @since S60 v3.2
       
    57      * @param aData Carry information of key pressed
       
    58      * @return ETrue means event was responsed, otherwise EFalse
       
    59      */
       
    60     virtual TBool HandleKeyEventL(const TRawEvent &aData);
       
    61     /**
       
    62      * From CPeninputUiStateBase
       
    63      * process internal event
       
    64      *
       
    65      * @since S60 v3.2
       
    66      * @param aEventType The internal event type
       
    67      * @param aEventData The internal event data
       
    68      * @return ETrue means event was responsed, otherwise EFalse
       
    69      */
       
    70     virtual TBool HandleControlEvent(TInt /*aEventType*/, const TDesC& /*aEventData*/) {return EFalse;}
       
    71      
       
    72     void HandleControlEventPenL( TInt aEventType, 
       
    73                                       const TDesC& aEventData, CPeninputHwrBxAbLayout& aUiLayout, TDes& aCharCode, TBool& aHandled );
       
    74 
       
    75 protected:
       
    76 
       
    77     /**
       
    78      * C++ default constructor.
       
    79      *
       
    80      * @since S60 v3.2
       
    81      * @param aUiStateMgr The common ui state manager
       
    82      * @param aContext The common layout context
       
    83      */
       
    84     CPeninputHwrBxAbStateStandby(MPeninputUiStateMgr* aUiStateMgr, MPeninputLayoutContext* aContext);
       
    85 
       
    86     /**
       
    87      * Process pseudo virtual key (hwr 1 char) event
       
    88      *
       
    89      * @since S60 v3.2
       
    90      * @param aEventType The event type
       
    91      * @param aEventData The event data
       
    92      * @return ETrue means event was responsed, otherwise EFalse
       
    93      */
       
    94     virtual TBool HandleVkbEvent(TInt aEventType, const TDesC& aEventData);
       
    95 
       
    96     /**
       
    97      * Process backspace key event
       
    98      *
       
    99      * @since S60 v3.2
       
   100      * @param aEventType The event type
       
   101      * @param aEventData The event data
       
   102      * @return ETrue means event was responsed, otherwise EFalse
       
   103      */
       
   104     virtual TBool HandleBackEvent(TInt aEventType, const TDesC& aEventData);
       
   105 
       
   106     /**
       
   107      * Process enter, space, tab key event
       
   108      *
       
   109      * @since S60 v3.2
       
   110      * @param aEventType The event type
       
   111      * @param aEventData The event data
       
   112      * @return ETrue means event was responsed, otherwise EFalse
       
   113      */
       
   114     virtual TBool HandleEnterSpaceTabEvent(TInt aEventType, const TDesC& aEventData);
       
   115     };
       
   116 
       
   117 #endif  // C_PENINPUTHWRBOXUISTATESTANDBY_H
       
   118 
       
   119 // End Of File