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: Keypad settings class for Active Idle WS Plug-in. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef T_AIWSPLUGIN_KEYPADSETTINGS_H |
|
20 #define T_AIWSPLUGIN_KEYPADSETTINGS_H |
|
21 |
|
22 #include <e32std.h> |
|
23 class TRawEvent; |
|
24 |
|
25 namespace AiWsPlugin { |
|
26 |
|
27 /** |
|
28 * @ingroup group_wsplugin |
|
29 * |
|
30 * Internal class for keypad settings. |
|
31 */ |
|
32 class TKeypadSettings |
|
33 { |
|
34 public: |
|
35 /** |
|
36 * Initializes this object from settings repository. |
|
37 */ |
|
38 void ReadFromRepositoryL(); |
|
39 |
|
40 /** |
|
41 * Returns true if aScanCode matches the first lock key. |
|
42 */ |
|
43 TBool IsFirstLockKey( TInt aScanCode ) const; |
|
44 |
|
45 /** |
|
46 * Returns true if aScanCode matches the second lock key. |
|
47 */ |
|
48 TBool IsSecondLockKey( TInt aScanCode ) const; |
|
49 |
|
50 /** |
|
51 * Returns the key lock timeout in microseconds. |
|
52 */ |
|
53 TTimeIntervalMicroSeconds32 KeylockTimeout() const; |
|
54 |
|
55 /** |
|
56 * Returns true if aScanCode matches the SIND key. |
|
57 */ |
|
58 TBool IsSINDKey( TInt aScanCode ) const; |
|
59 |
|
60 /** |
|
61 * Returns the key lock timeout in microseconds. |
|
62 */ |
|
63 TTimeIntervalMicroSeconds32 KeySINDTimeout() const; |
|
64 |
|
65 TInt16 MapNkpScanCodeToChar( TInt aScanCode ); |
|
66 |
|
67 private: // data |
|
68 /** |
|
69 * Scan code of first keypad lock key. |
|
70 */ |
|
71 TInt16 iFirstLockKeyScanCode; |
|
72 |
|
73 /** |
|
74 * Character code (if any) that matches iFirstLockKeyScanCode. |
|
75 */ |
|
76 TInt16 iFirstLockKeyChar; |
|
77 |
|
78 /** |
|
79 * Scan code of second keypad lock key. |
|
80 */ |
|
81 TInt16 iSecondLockKeyScanCode; |
|
82 |
|
83 /** |
|
84 * Character code (if any) that matches iSecondLockKeyChar. |
|
85 */ |
|
86 TInt16 iSecondLockKeyChar; |
|
87 |
|
88 /** |
|
89 * Scan code of optional second keypad lock key. |
|
90 */ |
|
91 TInt16 iSecondLockKeyScanCode2; |
|
92 |
|
93 /** |
|
94 * Character code (if any) that matches iSecondLockKeyChar2. |
|
95 */ |
|
96 TInt16 iSecondLockKeyChar2; |
|
97 |
|
98 /** |
|
99 * Keypad lock timeout in microseconds. |
|
100 */ |
|
101 TTimeIntervalMicroSeconds32 iKeylockTimeout; |
|
102 |
|
103 /** |
|
104 * Scan code of SIND keypad key. |
|
105 */ |
|
106 TInt16 iSINDKeyScanCode; |
|
107 |
|
108 /** |
|
109 * Character code (if any) that matches iSINDKeyScanCode. |
|
110 */ |
|
111 TInt16 iSINDKeyScanChar; |
|
112 |
|
113 /** |
|
114 * Keypad SIND timeout in microseconds. |
|
115 */ |
|
116 TTimeIntervalMicroSeconds32 iKeySINDTimeout; |
|
117 |
|
118 }; |
|
119 |
|
120 } // namespace AiWsPlugin |
|
121 |
|
122 #endif // T_AIWSPLUGIN_KEYPADETTINGS_H |
|