|
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 the vkb ui state machine (Standby State) |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // user includes |
|
20 #include "aknfeppeninputenums.h" |
|
21 #include "peninputvkbuistatestandby.h" |
|
22 #include "peninputvkbevent.h" |
|
23 |
|
24 // ======== MEMBER FUNCTIONS ======== |
|
25 |
|
26 // Implementation of Class CAknFepVkbUiStateStandby |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // CAknFepVkbUiStateStandby::CAknFepVkbUiStateStandby |
|
30 // (other items were commented in a header). |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 CAknFepVkbUiStateStandby::CAknFepVkbUiStateStandby(MAknFepVkbUiStateMgr* aUiStateMgr, |
|
34 MAknFepVkbLayoutContext* aContext) |
|
35 :CAknFepVkbUiState(aUiStateMgr,aContext) |
|
36 { |
|
37 } |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // CAknFepVkbUiStateStandby::NewL |
|
41 // (other items were commented in a header). |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 CAknFepVkbUiStateStandby* CAknFepVkbUiStateStandby::NewL(MAknFepVkbUiStateMgr* aUiStateMgr, |
|
45 MAknFepVkbLayoutContext* aContext) |
|
46 { |
|
47 CAknFepVkbUiStateStandby* self = new ( ELeave ) CAknFepVkbUiStateStandby(aUiStateMgr,aContext); |
|
48 CleanupStack::PushL(self); |
|
49 self->ConstructL(); |
|
50 CleanupStack::Pop(); |
|
51 return self; |
|
52 } |
|
53 |
|
54 // ----------------------------------------------------------------------------- |
|
55 // CAknFepVkbUiStateStandby::~CAknFepVkbUiStateStandby |
|
56 // (other items were commented in a header). |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 CAknFepVkbUiStateStandby::~CAknFepVkbUiStateStandby() |
|
60 { |
|
61 } |
|
62 |
|
63 // ----------------------------------------------------------------------------- |
|
64 // CAknFepVkbUiStateStandby::HandleKeyEventL |
|
65 // (other items were commented in a header). |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 TBool CAknFepVkbUiStateStandby::HandleKeyEventL(const TRawEvent& /*aData*/) |
|
69 { |
|
70 return EFalse; |
|
71 } |
|
72 |
|
73 // ----------------------------------------------------------------------------- |
|
74 // CAknFepVkbUiStateStandby::HandleVkbEvent |
|
75 // (other items were commented in a header). |
|
76 // ----------------------------------------------------------------------------- |
|
77 // |
|
78 TBool CAknFepVkbUiStateStandby::HandleVkbEvent(TInt /*aEventType*/, const TDesC& aEventData) |
|
79 { |
|
80 TBool rs = SendKey(aEventData); |
|
81 |
|
82 // If shift button is down |
|
83 TBool shiftDown = iContext->RequestData(EAknFepDataTypeShfitDown); |
|
84 TInt curRange = iContext->RequestData(EAknFepDataTypeCurrentRange); |
|
85 if ( shiftDown && curRange != ERangeNumber ) |
|
86 { |
|
87 // iContext->SetData(EAknFepDataTypeShfitDown,0); |
|
88 iContext->SendEventToVkbControl(EVkbEventResetShift,NULL); |
|
89 } |
|
90 |
|
91 return rs; |
|
92 } |
|
93 |
|
94 // ----------------------------------------------------------------------------- |
|
95 // CAknFepVkbUiStateStandby::HandleBackEvent |
|
96 // (other items were commented in a header). |
|
97 // ----------------------------------------------------------------------------- |
|
98 // |
|
99 TBool CAknFepVkbUiStateStandby::HandleBackEvent(TInt /*aEventType*/, const TDesC& aEventData) |
|
100 { |
|
101 return SendKey(aEventData); |
|
102 } |
|
103 |
|
104 // ----------------------------------------------------------------------------- |
|
105 // CAknFepVkbUiStateStandby::HandleEnterSpaceEvent |
|
106 // (other items were commented in a header). |
|
107 // ----------------------------------------------------------------------------- |
|
108 // |
|
109 TBool CAknFepVkbUiStateStandby::HandleEnterSpaceEvent(TInt /*aEventType*/, const TDesC& aEventData) |
|
110 { |
|
111 return SendKey(aEventData); |
|
112 } |
|
113 |
|
114 // ----------------------------------------------------------------------------- |
|
115 // CAknFepVkbUiStateStandby::HandleEnterTabEvent |
|
116 // (other items were commented in a header). |
|
117 // ----------------------------------------------------------------------------- |
|
118 // |
|
119 TBool CAknFepVkbUiStateStandby::HandleTabEvent(TInt /*aEventType*/, const TDesC& aEventData) |
|
120 { |
|
121 return SendKey(aEventData); |
|
122 } |
|
123 |
|
124 // ----------------------------------------------------------------------------- |
|
125 // CAknFepVkbUiStateStandby::HandleArrowKeyEvent |
|
126 // (other items were commented in a header). |
|
127 // ----------------------------------------------------------------------------- |
|
128 // |
|
129 TBool CAknFepVkbUiStateStandby::HandleArrowKeyEvent(TInt /*aEventType*/, const TDesC& aEventData) |
|
130 { |
|
131 return SendKey(aEventData); |
|
132 } |
|
133 |
|
134 // End Of File |