|
1 /* |
|
2 * Copyright (c) 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: Internal Central Repository keys. |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef LOCK_DOMAIN_CR_KEYS_H |
|
21 #define LOCK_DOMAIN_CR_KEYS_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <centralrepository.h> |
|
25 |
|
26 const TUid KCRUidLockConf = { 0x10283322 }; |
|
27 |
|
28 /** |
|
29 * Products must configure this value depending on |
|
30 * what lock/unlock approach is supported by the device hardware |
|
31 * |
|
32 * Possible product modes are are: |
|
33 * |
|
34 * EKeyguardDefaultHardware = 0 // no addional hardware support |
|
35 * EKeyguardOnePositionSwitch = 1 // one position spring adjusted switch |
|
36 * EKeyguardTwoPositionSwitch = 2 // on-off type keyguard switch |
|
37 * |
|
38 * EKeyguardDefaultHardware is default in the platform. |
|
39 */ |
|
40 const TUint32 KKeyguardHardwareConf = 0x00000001; |
|
41 |
|
42 enum TLockHardware |
|
43 { |
|
44 EKeyguardDefaultHardware = 0, |
|
45 EKeyguardOnePositionSwitch, |
|
46 EKeyguardTwoPositionSwitch |
|
47 }; |
|
48 |
|
49 /** |
|
50 * Products and applications can set on run-time if keyguard |
|
51 * feature should be momentarily disabled/enabled. |
|
52 * |
|
53 * Possible run-time modes are are: |
|
54 * |
|
55 * EKeyguardNotAllowed = 0 // enabling keyguard is not allowed |
|
56 * EKeyguardAllowed = 1 // keyguard works normally |
|
57 * |
|
58 * EKeyguardAllowed is default in the platform. |
|
59 */ |
|
60 const TUint32 KLockKeyguardAllow = 0x00000002; |
|
61 |
|
62 enum TKeyguardAllow |
|
63 { |
|
64 EKeyguardNotAllowed = 0, |
|
65 EKeyguardAllowed = 1, |
|
66 }; |
|
67 |
|
68 /** |
|
69 * Products and applications can configure lock timer |
|
70 * interval in microseconds. |
|
71 * |
|
72 * KLockDefaultInterval of 2000000 microseconds is default in the platform. |
|
73 */ |
|
74 const TUint32 KLockTimerInterval = 0x00000003; |
|
75 |
|
76 /** |
|
77 * Products and applications can change between different |
|
78 * Keylock policy configurations by changing policy mode. |
|
79 * |
|
80 * Possible run-time modes are are: |
|
81 * |
|
82 * ELockDefault = 0 // Used key configuration in default setup |
|
83 * ELockSlider = 1 // Used key configuration in slider setup |
|
84 * |
|
85 * Products can define new modes if needed. |
|
86 * |
|
87 * Configuration ELockDefault is default in the platform. |
|
88 */ |
|
89 const TUint32 KLockPolicyMode = 0x00000004; |
|
90 |
|
91 /** |
|
92 * Physical keys (scan code) used for locking/unlocking/query have been stored |
|
93 * in central repository keys with identification value of defined as |
|
94 * 0x000000XX Key configurations supported in the mode+type, e.g. 00 = left soft key + right soft key, 01 = left soft key + Fn |
|
95 * 0x00000X00 Key code sequence number. 1 = primary key , 2 = secondary key |
|
96 * 0x0000X000 from TLockPolicyType, 1= activate lock, 2 = deactivate lock, 3 = devicelock query |
|
97 * 0x000X0000 from TLockPolicyMode, 1 = default configuration, 2 = slider configuration |
|
98 * |
|
99 * The default platform locking/unlocking/query configurations have been listed below. |
|
100 */ |
|
101 |
|
102 /** |
|
103 * Pre-defined policymodes, 1 = default configuration, 2 = slider configuration |
|
104 * Modes are identified in a hexadecimal reserved in mask 0x000X0000. |
|
105 */ |
|
106 enum TLockPolicyMode |
|
107 { |
|
108 ELockNone = 0, |
|
109 ELockDefault = 1, |
|
110 ELockSlider = 2, |
|
111 }; |
|
112 |
|
113 /** |
|
114 * Key code sequence number. 1 = primary key , 2 = secondary key. |
|
115 * Key number is identified in a hexadecimal reserved in mask 0x00000X00. |
|
116 */ |
|
117 const TUint32 KLockFirstPrimaryKey = 0x00000100; |
|
118 const TUint32 KLockFirstSecondaryKey= 0x00000200; |
|
119 |
|
120 /** |
|
121 * ============================================================================ |
|
122 * Policy mode default (left soft key+* for unlock/lock and left soft key for device lock) |
|
123 * (not used directly) |
|
124 * ============================================================================ |
|
125 */ |
|
126 |
|
127 /** |
|
128 * First scan code key used for locking the phone in the default mode. |
|
129 * Works when mode = ELockDefault and type = EActivateKeyguard. |
|
130 * Default value is left soft key value with scan code 0xa4. |
|
131 */ |
|
132 const TUint32 KLockDefaultLockPrimaryConf00 = 0x00011100; |
|
133 |
|
134 /** |
|
135 * Second scan code key used for locking the phone in the default mode. |
|
136 * Works when mode = ELockDefault and type = EActivateKeyguard. |
|
137 * Default value is star key on ITU-keypad with scan code 0x2a. |
|
138 */ |
|
139 const TUint32 KLockDefaultLockSecondaryConf00 = 0x00011200; |
|
140 |
|
141 /** |
|
142 * First scan code key used for unlocking the phone in the default mode. |
|
143 * Works when mode = ELockDefault and type = EDeactivateKeyguard. |
|
144 * Default value is left soft key with scan code 0xa4. |
|
145 */ |
|
146 const TUint32 KLockDefaultUnlockPrimaryConf00 = 0x00012100; |
|
147 |
|
148 /** |
|
149 * Second scan code key used for unlocking the phone in the default mode. |
|
150 * Works when mode = ELockDefault and type = EDeactivateKeyguard. |
|
151 * Default value is star key with scan code 0x2a. |
|
152 */ |
|
153 const TUint32 KLockDefaultUnlockSecondaryConf00 = 0x00012200; |
|
154 |
|
155 /** |
|
156 * Scan code key used for showing security query when device is locked |
|
157 * in the default mode. |
|
158 * Works when mode = ELockDefault and type = EDevicelockQuery. |
|
159 * Default value is left soft key with scan code 0xa4. |
|
160 */ |
|
161 const TUint32 KLockDefaultSecQueryPrimaryConf00 = 0x00013100; |
|
162 |
|
163 /** |
|
164 * ============================================================================ |
|
165 * Policy mode slider (left soft key+right soft key for unlock/lock and left soft key for device lock) |
|
166 * (not used directly) |
|
167 * ============================================================================ |
|
168 */ |
|
169 |
|
170 /** |
|
171 * First scan code key used for locking the phone in the slider mode. |
|
172 * Works when mode = ELockSlider and type = EActivateKeyguard. |
|
173 * Default value is left soft key with scan code 0xa4. |
|
174 */ |
|
175 const TUint32 KLockSliderLockPrimaryConf00 = 0x00021100; |
|
176 |
|
177 /** |
|
178 * Second scan code key used for locking the phone in the slider mode. |
|
179 * Works when mode = ELockSlider and type = EActivateKeyguard. |
|
180 * Default value is right soft key with scan code 0xa5. |
|
181 */ |
|
182 const TUint32 KLockSliderLockSecondaryConf00 = 0x00021200; |
|
183 |
|
184 /** |
|
185 * First scan code key used for unlocking the phone in the slider mode. |
|
186 * Works when mode = ELockSlider and type = EDeactivateKeyguard. |
|
187 * Default value is left soft key with scan code 0xa4. |
|
188 */ |
|
189 const TUint32 KLockSliderUnlockPrimaryConf00 = 0x00022100; |
|
190 |
|
191 /** |
|
192 * Second scan code key used for unlocking the phone in the slider mode. |
|
193 * Works when mode = ELockSlider and type = EDeactivateKeyguard. |
|
194 * Default value is right soft key with scan code 0xa5. |
|
195 */ |
|
196 const TUint32 KLockSliderUnlockSecondaryConf00 = 0x00022200; |
|
197 |
|
198 /** |
|
199 * Scan code key used for showing security query when device is locked |
|
200 * in the slider mode. |
|
201 * Works when mode = ELockSlider and type = EDevicelockQuery. |
|
202 * Default value is left soft key with scan code 0xa4. |
|
203 */ |
|
204 const TUint32 KLockSliderSecQueryPrimaryConf00 = 0x00023100; |
|
205 |
|
206 #endif |
|
207 |
|
208 // End of file |