equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005-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: Modifier key status tracker for Active Idle WS Plug-in. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef T_AIWSPLUGIN_MODIFIERKEYTRACKER_H |
|
20 #define T_AIWSPLUGIN_MODIFIERKEYTRACKER_H |
|
21 |
|
22 #include <e32def.h> |
|
23 |
|
24 class TRawEvent; |
|
25 |
|
26 namespace AiWsPlugin { |
|
27 |
|
28 /** |
|
29 * @ingroup group_wsplugin |
|
30 * |
|
31 * Numeric key forwarding handler for Active Idle WS Plug-in. |
|
32 * |
|
33 * Monitors and forwards numeric key presses that should be handled by Phone |
|
34 * application. |
|
35 * |
|
36 * @since S60 3.2 |
|
37 */ |
|
38 class TModifierKeyTracker |
|
39 { |
|
40 public: |
|
41 TModifierKeyTracker(); |
|
42 |
|
43 /** |
|
44 * Returns true if modifier key states were updated. |
|
45 */ |
|
46 TBool Update(const TRawEvent& aRawEvent); |
|
47 |
|
48 /** |
|
49 * Returns the current modifier key status as bits, see enum TEventModifier. |
|
50 */ |
|
51 TUint Status() const { return iModifiers; } |
|
52 |
|
53 private: // data |
|
54 TUint iModifiers; |
|
55 }; |
|
56 |
|
57 } // namespace AiWsPlugin |
|
58 |
|
59 |
|
60 #endif // T_AIWSPLUGIN_MODIFIERKEYTRACKER_H |