|
1 /* |
|
2 * Copyright (c) 2008 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: Declares main application class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CLIENT_H |
|
20 #define __CLIENT_H |
|
21 |
|
22 #include <e32std.h> |
|
23 |
|
24 #include "hidkeys.h" // for TLockKeys |
|
25 #include "modifier.h" // for THidModifier |
|
26 // ---------------------------------------------------------------------- |
|
27 |
|
28 enum TLayoutManagerService |
|
29 { |
|
30 EKeyEvent, |
|
31 EResetDecoder, |
|
32 ESetLayout, |
|
33 EGetLayout, |
|
34 ESetInitialLayout, |
|
35 EGetInitialLayout, |
|
36 EGetDeviceInfo |
|
37 }; |
|
38 |
|
39 // ---------------------------------------------------------------------- |
|
40 |
|
41 class TKeyEventInfo |
|
42 { |
|
43 public: |
|
44 inline TKeyEventInfo(); |
|
45 inline TKeyEventInfo(TInt aHidKey, TInt aUsagePage, TBool aIsKeyDown, |
|
46 THidModifier aModifiers, TLockKeys aLockKeys); |
|
47 |
|
48 TInt iHidKey; |
|
49 TInt iUsagePage; |
|
50 TBool iIsKeyDown; |
|
51 THidModifier iModifiers; |
|
52 TLockKeys iLockKeys; |
|
53 }; |
|
54 |
|
55 // ---------------------------------------------------------------------- |
|
56 |
|
57 inline TKeyEventInfo::TKeyEventInfo() : |
|
58 iHidKey(0), iUsagePage(0), iIsKeyDown(EFalse), iModifiers(0), iLockKeys( |
|
59 EFalse, EFalse) |
|
60 { |
|
61 // nothing else to do |
|
62 } |
|
63 |
|
64 inline TKeyEventInfo::TKeyEventInfo(TInt aHidKey, TInt aUsagePage, |
|
65 TBool aIsKeyDown, THidModifier aModifiers, TLockKeys aLockKeys) : |
|
66 iHidKey(aHidKey), iUsagePage(aUsagePage), iIsKeyDown(aIsKeyDown), |
|
67 iModifiers(aModifiers), iLockKeys(aLockKeys) |
|
68 { |
|
69 // nothing else to do |
|
70 } |
|
71 |
|
72 // ---------------------------------------------------------------------- |
|
73 |
|
74 #endif |
|
75 |