1 /* |
|
2 * Copyright (c) 2005-2006 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: Shortcut Plug-in CenRep keys. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef AISCUTPLUGINDOMAINCRKEYS_H |
|
20 #define AISCUTPLUGINDOMAINCRKEYS_H |
|
21 |
|
22 /** |
|
23 * Uid for central repository file that holds shortcut plug-in settings. |
|
24 */ |
|
25 const TUid KCRUidShortcutItems = { 0x10275104 }; |
|
26 |
|
27 /** |
|
28 * Flag bit 31 |
|
29 * Theme-default shortcuts. 1000 0000 0000 0000 0000 0000 0000 0000 |
|
30 */ |
|
31 const TUint32 KScutFlagBitThemeDefault = 0x80000000; |
|
32 |
|
33 /** |
|
34 * Mask to unset the theme-default flag. 0111 1111 1111 1111 1111 1111 1111 1111 |
|
35 */ |
|
36 const TUint32 KScutBitMaskThemeDefault = 0x7FFFFFFF; |
|
37 |
|
38 /** |
|
39 * Flag bit 30 |
|
40 * Locked shortcuts. 0100 0000 0000 0000 0000 0000 0000 0000 |
|
41 */ |
|
42 const TUint32 KScutFlagBitLocked = 0x40000000; |
|
43 |
|
44 /** |
|
45 * Mask to unset the locked flag. 1011 1111 1111 1111 1111 1111 1111 1111 |
|
46 */ |
|
47 const TUint32 KScutBitMaskLocked = 0xBFFFFFFF; |
|
48 |
|
49 /** |
|
50 * Flag bit 24 |
|
51 * Optionally visible shortcut (softkeys). 0000 0001 0000 0000 0000 0000 0000 0000 |
|
52 */ |
|
53 const TUint32 KScutFlagBitOptionallyVisible = 0x01000000; |
|
54 |
|
55 /** |
|
56 * Flag bit 25 |
|
57 * Non-visible shortcut (key press). 0000 0010 0000 0000 0000 0000 0000 0000 |
|
58 */ |
|
59 const TUint32 KScutFlagBitNonVisible = 0x02000000; |
|
60 |
|
61 /** |
|
62 * Flag bits 26-31 //0000 0001 0000 0000 0000 0001 0000 0000 |
|
63 * Icon ovverides 0010 0000 0000 0000 0000 0000 0000 0000 |
|
64 */ |
|
65 const TUint32 KScutFlagBitIconOverride = 0x20000000; |
|
66 |
|
67 /** |
|
68 * Flag bit for toolbar shortcuts |
|
69 */ |
|
70 const TUint32 KScutFlagBitToolbarShortcut = 0x10000000; |
|
71 |
|
72 /** |
|
73 * Mask for additional settings. |
|
74 */ |
|
75 const TUint32 KScutMaskAdditionalSetting = 0xFFFFFFFF ^ (KScutFlagBitIconOverride + KScutFlagBitToolbarShortcut); |
|
76 |
|
77 /** |
|
78 * Partial key for theme-default shortcut ids. |
|
79 */ |
|
80 const TUint32 KScutCenRepKeyThemeDefault = KScutFlagBitThemeDefault; |
|
81 |
|
82 /** |
|
83 * Partial key for user defined shortcut ids. |
|
84 */ |
|
85 const TUint32 KScutCenRepKeyUserDefined = 0x0; |
|
86 |
|
87 /** |
|
88 * Mask used to separate theme-default ids from user defined ids. |
|
89 */ |
|
90 const TUint32 KScutCenRepKeyMask = KScutFlagBitThemeDefault; |
|
91 |
|
92 /** |
|
93 * Shortcut count for the active theme |
|
94 */ |
|
95 const TUint32 KScutCenRepShorcutCount = 0xFFFFFFF0; |
|
96 |
|
97 /** |
|
98 * A key which contains a space-separated list of application UIDs |
|
99 * identifying the applications that should not show the xSP tip message. |
|
100 */ |
|
101 const TUint32 KAIxSPNoTipAppsList = 0x0001FFFF; |
|
102 |
|
103 /** |
|
104 * Shortcut plug-in keycodes for optionally visible shortcuts. |
|
105 */ |
|
106 enum TAiScutKeyCodes |
|
107 { |
|
108 // Navigation keys. |
|
109 EAiScutScrollKeyLeft = 0x0000, |
|
110 EAiScutScrollKeyRight = 0x0001, |
|
111 EAiScutScrollKeyUp = 0x0002, |
|
112 EAiScutScrollKeyDown = 0x0003, |
|
113 EAiScutSelectionKey = 0x0004, |
|
114 |
|
115 // Soft keys. |
|
116 EAiScutSoftKeyLeft = 0x0100, |
|
117 EAiScutSoftKeyRight = 0x0101, |
|
118 |
|
119 // Touch toolbar |
|
120 EAiScutToolbarFirst = 0x1000, |
|
121 EAiScutToolbarSecond = 0x1001, |
|
122 EAiScutToolbarThird = 0x1002 |
|
123 }; |
|
124 |
|
125 #endif // AISCUTPLUGINDOMAINCRKEYS_H |
|
126 |
|
127 // End of File. |
|