|
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: This is the implementation of application class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef SU8GERMAN_H |
|
20 #define SU8GERMAN_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 #include <e32svr.h> |
|
25 |
|
26 #include "layout.h" |
|
27 #include "modifier.h" |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 class CSu8GermanLayout : public CDeadKeyLayout |
|
32 { |
|
33 public: |
|
34 |
|
35 static CKeyboardLayout* NewL(); |
|
36 |
|
37 // Report what layouts are supported: |
|
38 virtual TInt LayoutId() const; |
|
39 |
|
40 // Layout has additional Caps Lock keys: |
|
41 virtual TBool |
|
42 ChangesWithCapsLock(TInt aHidKey, THidModifier aModifiers) const; |
|
43 |
|
44 // For application switch key and middle softkey scancodes: |
|
45 TInt |
|
46 RawScanCode(TInt aHidKey, TInt aUsagePage, |
|
47 THidModifier aModifiers) const; |
|
48 |
|
49 private: |
|
50 |
|
51 /* C++ constructor */ |
|
52 CSu8GermanLayout(); |
|
53 |
|
54 // Standard look-up table: |
|
55 static const TInt KColumnMap[]; |
|
56 static const TUint16 KKeyCodes[]; |
|
57 |
|
58 // Special cases: |
|
59 static const TSpecialKey KSpecialCases[]; |
|
60 |
|
61 // Dead key tables: |
|
62 static const TIndexPair KDeadKeyIndex[]; |
|
63 static const TKeyPair KDeadKeyAcute[]; |
|
64 static const TKeyPair KDeadKeyGrave[]; |
|
65 static const TKeyPair KDeadKeyCircumflex[]; |
|
66 }; |
|
67 |
|
68 #endif //SU8GERMAN_H |
|
69 //End of file |
|
70 |