textinput/peninputgenerichwr/src/peninputgenerichwruistatestandby.cpp
changeset 0 eb1f2e154e89
equal deleted inserted replaced
-1:000000000000 0:eb1f2e154e89
       
     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:  Implementation of hwr ui standby state
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // System includes
       
    20 #include <peninputcmd.h>
       
    21 #include <aknfeppeninputenums.h>
       
    22 #include <peninputdataprovider.h>
       
    23 #include <peninputlayoutcontext.h>
       
    24 #include <peninputdataconverter.h>
       
    25 #include <peninputlayoutbasecontrol.h>
       
    26 #include <peninputcommonlayoutglobalenum.h>
       
    27 
       
    28 // User includes
       
    29 #include "peninputgenerichwr.hrh"
       
    30 #include "peninputgenerichwruistatestandby.h"
       
    31 
       
    32 
       
    33 // ======== MEMBER FUNCTIONS ========
       
    34 
       
    35 // --------------------------------------------------------------------------
       
    36 // CPeninputUiStateHwrStandby::CPeninputUiStateHwrStandby
       
    37 // (other items were commented in a header)
       
    38 // --------------------------------------------------------------------------
       
    39 //
       
    40 CPeninputUiStateHwrStandby::CPeninputUiStateHwrStandby( 
       
    41     MPeninputUiStateMgr* aUiStateMgr, MPeninputLayoutContext* aContext )
       
    42     : CPeninputUiStateBase( aUiStateMgr, aContext )
       
    43     {
       
    44     }
       
    45        
       
    46 // --------------------------------------------------------------------------
       
    47 // CPeninputUiStateHwrStandby::NewL
       
    48 // (other items were commented in a header)
       
    49 // --------------------------------------------------------------------------
       
    50 //
       
    51 CPeninputUiStateHwrStandby* CPeninputUiStateHwrStandby::NewL( 
       
    52     MPeninputUiStateMgr* aUiStateMgr, MPeninputLayoutContext* aContext )
       
    53     {
       
    54     CPeninputUiStateHwrStandby* self = 
       
    55         new ( ELeave ) CPeninputUiStateHwrStandby( aUiStateMgr, aContext );
       
    56     CleanupStack::PushL( self );
       
    57     self->Construct(); 
       
    58     CleanupStack::Pop( self );
       
    59 
       
    60     return self;
       
    61     }  
       
    62       
       
    63 // --------------------------------------------------------------------------
       
    64 // CPeninputUiStateHwrStandby::~CPeninputUiStateHwrStandby
       
    65 // (other items were commented in a header)
       
    66 // --------------------------------------------------------------------------
       
    67 //
       
    68 CPeninputUiStateHwrStandby::~CPeninputUiStateHwrStandby()
       
    69     {    
       
    70     }        
       
    71 
       
    72 // --------------------------------------------------------------------------
       
    73 // CPeninputUiStateHwrStandby::HandleKeyEventL
       
    74 // (other items were commented in a header)
       
    75 // --------------------------------------------------------------------------
       
    76 //
       
    77 TBool CPeninputUiStateHwrStandby::HandleKeyEventL( 
       
    78     const TRawEvent& /*aData*/ )     
       
    79     {
       
    80     return EFalse;
       
    81     }    
       
    82 
       
    83 // --------------------------------------------------------------------------
       
    84 // CPeninputUiStateHwrStandby::HandleControlEvent
       
    85 // (other items were commented in a header)
       
    86 // --------------------------------------------------------------------------
       
    87 //
       
    88 TBool CPeninputUiStateHwrStandby::HandleControlEvent( TInt aEventType, 
       
    89     const TDesC& aEventData )
       
    90     {
       
    91     if ( aEventType == EPeninputLayoutEventBack )
       
    92         {
       
    93         return HandleBackEvent( aEventType, aEventData );
       
    94         }
       
    95     else
       
    96         {
       
    97         return EFalse;   
       
    98         }   
       
    99     }      
       
   100    
       
   101 // --------------------------------------------------------------------------
       
   102 // CPeninputUiStateHwrStandby::HandleBackEvent
       
   103 // (other items were commented in a header)
       
   104 // --------------------------------------------------------------------------
       
   105 //
       
   106 TBool CPeninputUiStateHwrStandby::HandleBackEvent( TInt /*aEventType*/, 
       
   107                                                    const TDesC& aEventData )
       
   108     {
       
   109     return SendKey( aEventData );
       
   110     }