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