textinput/peninputvkbjp/src/peninputvkbuistatestandbyjp.cpp
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:  Implementation of the vkb ui state machine (Chinese Standby State)
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // System includes
       
    20 #include <peninputuistatemgr.h>
       
    21 
       
    22 // user includes
       
    23 #include "peninputvkbuistatestandbyjp.h"
       
    24 #include "peninputvkbuistatetype.h"         // UI state
       
    25 
       
    26 // ======== MEMBER FUNCTIONS ========
       
    27 
       
    28 // Implementation of Class CPeninputVkbUiStateStandbyjp
       
    29 
       
    30 // -----------------------------------------------------------------------------
       
    31 // CPeninputVkbUiStateStandbyjp::NewL
       
    32 // (other items were commented in a header).
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 CPeninputVkbUiStateStandbyjp* CPeninputVkbUiStateStandbyjp::NewL(MPeninputUiStateMgr* aUiStateMgr, 
       
    36                                                              MPeninputLayoutContext* aContext)
       
    37     {
       
    38     CPeninputVkbUiStateStandbyjp* self = new ( ELeave ) CPeninputVkbUiStateStandbyjp(aUiStateMgr,aContext);
       
    39     CleanupStack::PushL(self);
       
    40     self->Construct(); 
       
    41     CleanupStack::Pop(self);
       
    42     return self;
       
    43     }  
       
    44       
       
    45 // -----------------------------------------------------------------------------
       
    46 // CPeninputVkbUiStateStandbyjp::~CPeninputVkbUiStateStandbyjp
       
    47 // (other items were commented in a header).
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 CPeninputVkbUiStateStandbyjp::~CPeninputVkbUiStateStandbyjp()
       
    51     {
       
    52     }
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // CPeninputVkbUiStateStandbyjp::HandleKeyEventL
       
    56 // (other items were commented in a header).
       
    57 // -----------------------------------------------------------------------------
       
    58 //
       
    59 TBool CPeninputVkbUiStateStandbyjp::HandleKeyEventL(const TRawEvent& /*aData*/)     
       
    60     {
       
    61     return EFalse;
       
    62     }
       
    63 
       
    64 // -----------------------------------------------------------------------------
       
    65 // CPeninputVkbUiStateStandbyjp::CPeninputVkbUiStateStandbyjp
       
    66 // (other items were commented in a header).
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 CPeninputVkbUiStateStandbyjp::CPeninputVkbUiStateStandbyjp(MPeninputUiStateMgr* aUiStateMgr, 
       
    70                                                        MPeninputLayoutContext* aContext)
       
    71     :CPeninputVkbUiState(aUiStateMgr,aContext)
       
    72     {
       
    73     }
       
    74 
       
    75 // -----------------------------------------------------------------------------
       
    76 // CPeninputVkbUiStateStandbyjp::HandleVkbEvent
       
    77 // (other items were commented in a header).
       
    78 // return False --->iVkbWindow->HandleControlEvent() by UiLayout
       
    79 // -----------------------------------------------------------------------------
       
    80 //
       
    81 TBool CPeninputVkbUiStateStandbyjp::HandleVkbEvent(TInt /*aEventType*/,
       
    82                                                  const TDesC& /*aEventData*/)
       
    83     {
       
    84     // change state only
       
    85     iUiStateMgr->SetCurrentUiState( iUiStateMgr->GetUiState(EPeninputVkbUiStateWithTransitoryChars) );
       
    86     return EFalse;
       
    87     }
       
    88 
       
    89 // -----------------------------------------------------------------------------
       
    90 // CPeninputVkbUiStateStandbyjp::HandleBackEvent
       
    91 // (other items were commented in a header).
       
    92 // -----------------------------------------------------------------------------
       
    93 //
       
    94 TBool CPeninputVkbUiStateStandbyjp::HandleBackEvent(TInt /*aEventType*/,
       
    95                                                   const TDesC& aEventData)
       
    96     {
       
    97     return SendKey(aEventData);  
       
    98     }
       
    99     
       
   100 // -----------------------------------------------------------------------------
       
   101 // CPeninputVkbUiStateStandbyjp::HandleEnterSpaceTabEvent
       
   102 // (other items were commented in a header).
       
   103 // -----------------------------------------------------------------------------
       
   104 //
       
   105 TBool CPeninputVkbUiStateStandbyjp::HandleEnterSpaceTabEvent(TInt /*aEventType*/,
       
   106                                                            const TDesC& aEventData)  
       
   107     {
       
   108     return SendKey(aEventData);
       
   109     }
       
   110 
       
   111 // End Of File