|
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: Interface of hwr ui state |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_PENINPUTHWRARABICSTATE_H |
|
20 #define C_PENINPUTHWRARABICSTATE_H |
|
21 |
|
22 // system includes |
|
23 #include <peninputuistatebase.h> |
|
24 |
|
25 class CPeninputHwrBxAbLayout; |
|
26 |
|
27 // user includes |
|
28 |
|
29 // class declarations |
|
30 |
|
31 /** |
|
32 * Basic class of hwr ui state |
|
33 * |
|
34 * @lib peninputhwrboxjp.lib |
|
35 * @since S60 v3.2 |
|
36 */ |
|
37 class CPeninputHwrBxAbStateBase : public CPeninputUiStateBase |
|
38 { |
|
39 public: |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 * |
|
44 * @since S60 v3.2 |
|
45 * @param aUiStateMgr The common ui state manager |
|
46 * @param aContext The common layout context |
|
47 * @return The pointer point to CPeninputHwrBxAbStateBase type object |
|
48 */ |
|
49 static CPeninputHwrBxAbStateBase* NewL(MPeninputUiStateMgr* aUiStateMgr, MPeninputLayoutContext* aContext); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 * |
|
54 * @since S60 v3.2 |
|
55 */ |
|
56 virtual ~CPeninputHwrBxAbStateBase(); |
|
57 |
|
58 // from MPeninputHwrBoxUiState |
|
59 |
|
60 /** |
|
61 * process internal event |
|
62 * |
|
63 * @since S60 v3.2 |
|
64 * @param aEventType The internal event type |
|
65 * @param aEventData The internal event data |
|
66 * @return ETrue means event was responsed, otherwise EFalse |
|
67 */ |
|
68 virtual TBool HandleControlEvent(TInt aEventType, const TDesC& aEventData); |
|
69 |
|
70 virtual void HandleControlEventPenL( TInt aEventType, const TDesC& aEventData, |
|
71 CPeninputHwrBxAbLayout& aUiLayout, |
|
72 TDes& aCharCode, TBool& aHandled ); |
|
73 |
|
74 protected: |
|
75 |
|
76 /** |
|
77 * C++ default constructor. |
|
78 * |
|
79 * @since S60 v3.2 |
|
80 * @param aUiStateMgr The common ui state manager |
|
81 * @param aContext The common layout context |
|
82 */ |
|
83 CPeninputHwrBxAbStateBase(MPeninputUiStateMgr* aUiStateMgr, MPeninputLayoutContext* aContext); |
|
84 |
|
85 /** |
|
86 * Process pseudo virtual key (hwr 1 char) event |
|
87 * |
|
88 * @since S60 v3.2 |
|
89 * @param aEventType The event type |
|
90 * @param aEventData The event data |
|
91 * @return ETrue means event was responsed, otherwise EFalse |
|
92 */ |
|
93 virtual TBool HandleVkbEvent(TInt aEventType, const TDesC& aEventData); |
|
94 |
|
95 /** |
|
96 * Process backspace key event |
|
97 * |
|
98 * @since S60 v3.2 |
|
99 * @param aEventType The event type |
|
100 * @param aEventData The event data |
|
101 * @return ETrue means event was responsed, otherwise EFalse |
|
102 */ |
|
103 virtual TBool HandleBackEvent(TInt aEventType, const TDesC& aEventData); |
|
104 |
|
105 /** |
|
106 * Process enter, space, tab key event |
|
107 * |
|
108 * @since S60 v3.2 |
|
109 * @param aEventType The event type |
|
110 * @param aEventData The event data |
|
111 * @return ETrue means event was responsed, otherwise EFalse |
|
112 */ |
|
113 virtual TBool HandleEnterSpaceTabEvent(TInt aEventType, const TDesC& aEventData); |
|
114 }; |
|
115 |
|
116 #endif // C_PENINPUTHWRBOXUISTATE_H |
|
117 |
|
118 // End Of File |