textinput/peninputgenerichwr/inc/peninputgenerichwruistatepopup.h
branchRCL_3
changeset 21 ecbabf52600f
parent 0 eb1f2e154e89
equal deleted inserted replaced
20:ebd48d2de13c 21:ecbabf52600f
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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:  peninput generic hwr ui state standby class definition
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_PNEINPUTGENERICHWRUISTATEPOPUP_H
       
    20 #define C_PNEINPUTGENERICHWRUISTATEPOPUP_H
       
    21 
       
    22 // System includes
       
    23 #include <peninputuistatebase.h>
       
    24 
       
    25 // Forward declarations
       
    26 class MPeninputUiStateMgr;
       
    27 class MPeninputLayoutContext;
       
    28 
       
    29 /**
       
    30  *  Vkb's standby ui state class
       
    31  *  This class define methods to handle event received at this ui state
       
    32  *
       
    33  *  @lib peninputgenericvkb.lib
       
    34  *  @since S60 v3.2
       
    35  */
       
    36 class CPeninputUiStateHwrPopup : public CPeninputUiStateBase
       
    37     {
       
    38 
       
    39 public:
       
    40 
       
    41     /**
       
    42      * Two-phased constructor
       
    43      *
       
    44      * @since S60 v3.2
       
    45      * @param aUiStateMgr The vkb ui state manager
       
    46      * @param aContext The vkb layout context
       
    47      * @return The pointer to CPeninputUiStateVkbPopup object
       
    48      */
       
    49     static CPeninputUiStateHwrPopup* NewL( MPeninputUiStateMgr* aUiStateMgr,
       
    50         MPeninputLayoutContext* aContext );
       
    51         
       
    52     /**
       
    53      * Destructor
       
    54      *
       
    55      * @since S60 v3.2
       
    56      * @return None
       
    57      */
       
    58     virtual ~CPeninputUiStateHwrPopup();
       
    59         
       
    60 // From base class CPeninputUiStateBase  
       
    61 
       
    62     /**
       
    63      * From CPeninputUiStateBase
       
    64      * Process key event
       
    65      *
       
    66      * @since S60 v3.2
       
    67      * @param aData Carry information of key pressed
       
    68      * @return ETrue means event was responsed, otherwise EFalse
       
    69      */
       
    70     virtual TBool HandleKeyEventL( const TRawEvent &aData );
       
    71     
       
    72     /**
       
    73      * From CPeninputUiStateBase
       
    74      * process internal event
       
    75      *
       
    76      * @since S60 v3.2
       
    77      * @param aEventType The internal event type
       
    78      * @param aEventData The internal event data
       
    79      * @return ETrue means event was responsed, otherwise EFalse
       
    80      */
       
    81     virtual TBool HandleControlEvent( TInt aEventType, 
       
    82         const TDesC& aEventData );
       
    83     
       
    84 protected:
       
    85 
       
    86     /**
       
    87      * Constructor
       
    88      *
       
    89      * @since S60 v3.2
       
    90      * @param aUiStateMgr The vkb ui state manager
       
    91      * @param aContext The vkb layout context
       
    92      * @return None
       
    93      */
       
    94     CPeninputUiStateHwrPopup( MPeninputUiStateMgr* aUiStateMgr, 
       
    95         MPeninputLayoutContext* aContext );
       
    96     };
       
    97                 
       
    98 #endif  // C_PNEINPUTGENERICVKBUISTATEPOPUP_H