83
|
1 |
/*
|
|
2 |
* Copyright (c) 2007-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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef C_HNGLOBALS_H
|
|
20 |
#define C_HNGLOBALS_H
|
|
21 |
|
|
22 |
#include <f32file.h>
|
|
23 |
|
|
24 |
/**
|
|
25 |
* Default size for svg icons.
|
|
26 |
*/
|
|
27 |
const TInt KDefaultSvgIconSize = 60;
|
|
28 |
|
|
29 |
/**
|
|
30 |
* Maximum size for icons loaded from files containing
|
|
31 |
* raster graphics, such as png, jpg. This does not
|
|
32 |
* apply to MIF and MBM files.
|
|
33 |
*/
|
|
34 |
const TInt KMaxIconBitmapSize = 240;
|
|
35 |
|
|
36 |
/**
|
|
37 |
* Maximun integer character length
|
|
38 |
*/
|
|
39 |
const TInt KMaxLength = 12;
|
|
40 |
|
|
41 |
/**
|
|
42 |
* Single character length.
|
|
43 |
*/
|
|
44 |
const TInt KSingleChar( 1 );
|
|
45 |
|
|
46 |
/**
|
|
47 |
* Default datagranularity.
|
|
48 |
*/
|
|
49 |
const TInt KDefaultGranularity( 8 );
|
|
50 |
|
|
51 |
/**
|
|
52 |
* Max digit number.
|
|
53 |
*/
|
|
54 |
const TInt KMaxDigitNumber( 10 );
|
|
55 |
|
|
56 |
/**
|
|
57 |
* A number of cached suites.
|
|
58 |
*/
|
|
59 |
const TInt KXmlModelCacheMaxLength( 10 );
|
|
60 |
|
|
61 |
/**
|
|
62 |
* Used to check if root suite loaded for display.
|
|
63 |
*/
|
|
64 |
const TInt KModelCountForRoot( 1 );
|
|
65 |
|
|
66 |
/**
|
|
67 |
* KErrNoMemory code from MenuService
|
|
68 |
*/
|
|
69 |
const TInt KSErrNoMemory = 1007;
|
|
70 |
/**
|
|
71 |
* Logical relations namespace
|
|
72 |
*/
|
|
73 |
namespace HnLogicalRelations
|
|
74 |
{
|
|
75 |
/**
|
|
76 |
* Greater.
|
|
77 |
*/
|
|
78 |
_LIT8( KLogicalGreater8, ">" );
|
|
79 |
|
|
80 |
/**
|
|
81 |
* Less.
|
|
82 |
*/
|
|
83 |
_LIT8( KLogicalLess8, "<" );
|
|
84 |
|
|
85 |
/**
|
|
86 |
* Equals.
|
|
87 |
*/
|
|
88 |
_LIT8( KLogicalEqual8, "=" );
|
|
89 |
|
|
90 |
/**
|
|
91 |
* Different.
|
|
92 |
*/
|
|
93 |
_LIT8( KLogicalDifferent8, "!=" );
|
|
94 |
|
|
95 |
/**
|
|
96 |
* And.
|
|
97 |
*/
|
|
98 |
_LIT8( KLogicalAnd8, "&" );
|
|
99 |
|
|
100 |
/**
|
|
101 |
* Or.
|
|
102 |
*/
|
|
103 |
_LIT8( KLogicalOr8, "|" );
|
|
104 |
|
|
105 |
/**
|
|
106 |
* Nas.
|
|
107 |
*/
|
|
108 |
_LIT8( KLogicalHas8, "HAS" );
|
|
109 |
|
|
110 |
/**
|
|
111 |
* Has not.
|
|
112 |
*/
|
|
113 |
_LIT8( KLogicalHasNot8, "HASNOT" );
|
|
114 |
}
|
|
115 |
|
|
116 |
/**
|
|
117 |
* Event namespace
|
|
118 |
*/
|
|
119 |
namespace HnEvent
|
|
120 |
{
|
|
121 |
/**
|
|
122 |
* Event data.
|
|
123 |
*/
|
|
124 |
_LIT8( KEventArgNamespace8, "event_data");
|
|
125 |
|
|
126 |
/**
|
|
127 |
* Dropped before custom id.
|
|
128 |
*/
|
|
129 |
_LIT8( KDroppedBefore8, "dropped_before_custom_id" );
|
|
130 |
|
|
131 |
/**
|
|
132 |
* Dragged custom id.
|
|
133 |
*/
|
|
134 |
_LIT8( KDragged8, "dragged_custom_id" );
|
|
135 |
|
|
136 |
/**
|
|
137 |
* Highlight offset.
|
|
138 |
*/
|
|
139 |
_LIT8( KHighlightOffset8, "highlight_offset" );
|
|
140 |
|
|
141 |
}
|
|
142 |
|
|
143 |
//paths
|
|
144 |
_LIT( KFolderSuitePath, "Z:\\private\\101F4CD2\\import\\suites\\foldersuite\\suite.xml" );
|
|
145 |
_LIT( KFolderItemsPath, "Z:\\private\\101F4CD2\\import\\suites\\foldersuite\\items.xml" );
|
|
146 |
|
|
147 |
//XML tags
|
|
148 |
_LIT8( KMm8, "mm" );
|
|
149 |
_LIT8( KContentElementName8, "content" );
|
|
150 |
_LIT8( KSuiteElementName8, "suite" );
|
|
151 |
_LIT8( KItemElementName8, "item" );
|
|
152 |
_LIT8( KActionElementName8, "action" );
|
|
153 |
_LIT8( KEventElementName8, "event" );
|
|
154 |
_LIT8( KMenuItemElementName8, "menuitem" );
|
|
155 |
_LIT8( KMenuItemSpecificElementName8, "menuitem_specific" );
|
|
156 |
_LIT8( KMenuItemActionElementName8, "menuitem_action" );
|
|
157 |
_LIT8( KLocalizationElementName8, "localization" );
|
|
158 |
_LIT8( KNotifyRequestElementName8, "notify_request" );
|
|
159 |
_LIT8( KMenuButton8, "button" );
|
|
160 |
_LIT8( KMiddleSoftKey8, "msk" );
|
|
161 |
_LIT8( KMenuToolbar8, "toolbar" );
|
|
162 |
|
|
163 |
_LIT8 ( KName8, "name" );
|
|
164 |
|
|
165 |
_LIT8( KQueryElementItem8, "query" );
|
|
166 |
_LIT8( KConstructorElementItem8 , "constructor" );
|
|
167 |
_LIT8( KCommandElementItem8 , "command" );
|
|
168 |
_LIT8( KOutputElementItem8 , "output" );
|
|
169 |
_LIT8( KImageElementItem8, "image" );
|
|
170 |
_LIT8( KTextElementItem8, "text" );
|
|
171 |
_LIT8( KIdAttrName8, "id" );
|
|
172 |
_LIT8( KFolderAttrName8, "folder" );
|
|
173 |
|
|
174 |
|
|
175 |
_LIT8( KCommandModeAsync8, "async" );
|
|
176 |
_LIT8( KCommandNameAttr8, "name" );
|
|
177 |
_LIT8( KCommandModeAttr8, "mode" );
|
|
178 |
|
|
179 |
_LIT8( KContentTypeElementItem8, "contenttype" );
|
|
180 |
_LIT8( KFilterElementItem8, "filter" );
|
|
181 |
_LIT8( KKeyElementItem8, "key" );
|
|
182 |
|
|
183 |
_LIT8( KKeyAttrName8, "key" );
|
|
184 |
_LIT8( KTypeAttrName8, "type" );
|
|
185 |
_LIT8( KValueAttrName8, "value" );
|
|
186 |
_LIT8( KEventAttrName8, "event" );
|
|
187 |
_LIT8( KPositionAttrName8, "position" );
|
|
188 |
_LIT8( KMenuConditionAttrName8, "condition" );
|
|
189 |
_LIT8( KIndexAttrName8, "index" );
|
|
190 |
_LIT8( KMenuDimmAttrName8, "dimm" );
|
|
191 |
_LIT8( KGenreAttrName8, "genre" );
|
|
192 |
_LIT8( KTitleAttrName8, "title" );
|
|
193 |
_LIT8( KEmptyTextAttrName8, "emptytext" );
|
|
194 |
_LIT8( KNameAttrName8, "name" );
|
|
195 |
_LIT8( KWidgetAttrName8, "widget" );
|
|
196 |
_LIT8( KCountAttrName8, "count" );
|
|
197 |
_LIT8( KTemplateAttrName8, "template" );
|
|
198 |
_LIT8( KTemplateEmpty8, "empty" );
|
|
199 |
_LIT8( KWidgetTypeAttrName8, "type" );
|
|
200 |
_LIT8( KItemIdAttrName8, "id" );
|
|
201 |
_LIT8( KNameSpaceAttrName8, "namespace" );
|
|
202 |
_LIT8( KServiceAttrName8, "service" );
|
|
203 |
_LIT8( KAliasAttrName8, "alias" );
|
|
204 |
_LIT8( KParams8, "params");
|
|
205 |
|
|
206 |
_LIT8( KEditModeItem8, "edit_mode");
|
|
207 |
_LIT8( KInterfaceAttrName8, "interface" );
|
|
208 |
|
|
209 |
_LIT8 ( KKeyTypeString, "string" );
|
|
210 |
_LIT8 ( KKeyTypeString8, "string8" );
|
|
211 |
_LIT8 ( KKeyTypeString16, "string16" );
|
|
212 |
_LIT8 ( KKeyTypeInteger, "integer" );
|
|
213 |
_LIT8 ( KKeyTypeInteger64, "integer64" );
|
|
214 |
_LIT8 ( KKeyTypeUInteger, "uinteger" );
|
|
215 |
_LIT8 ( KKeyTypeUid , "uid" );
|
|
216 |
_LIT8 ( KKeyTypeBoolean, "boolean" );
|
|
217 |
_LIT8 ( KKeyTypeMap, "map" );
|
|
218 |
_LIT8 ( KKeyTypeList, "list" );
|
|
219 |
_LIT8 ( KIdsList, "item_ids" );
|
|
220 |
|
|
221 |
_LIT8 ( KAction, "action");
|
|
222 |
_LIT8 ( KActionRemove, "remove");
|
|
223 |
_LIT8 ( KIdParam, "id" );
|
|
224 |
_LIT8 ( KMenuApplication8, "menu:application" );
|
|
225 |
_LIT ( KMenuApplication, "menu:application" );
|
|
226 |
_LIT8 ( KMenuParentFolder8, "custom:parent_folder" );
|
|
227 |
_LIT ( KMenuParentFolder, "custom:parent_folder" );
|
|
228 |
_LIT8 ( KMenuFolder8, "menu:folder" );
|
|
229 |
_LIT ( KMenuFolder, "menu:folder" );
|
|
230 |
_LIT8 ( KMenuSuite8, "menu:suite" );
|
|
231 |
_LIT ( KMenuSuite, "menu:suite" );
|
|
232 |
_LIT8 ( KId8, "id" );
|
|
233 |
_LIT8 ( KUid8, "uid" );
|
|
234 |
_LIT8 ( KMcsTitleName8, "title_name" );
|
|
235 |
_LIT8 ( KMcsAppGroupName8, "applicationgroup_name" );
|
|
236 |
_LIT8 ( KMcsShortName8, "short_name" );
|
|
237 |
_LIT8 ( KMcsLongName8, "long_name" );
|
|
238 |
_LIT8 ( KMatrixMenuData, "matrixmenudata" );
|
|
239 |
_LIT8 ( KServiceContentName, "ContentName" );
|
|
240 |
_LIT8 ( KType8, "type" );
|
|
241 |
_LIT8( KIdPath8, "ReturnValue:[$index]/id" );
|
|
242 |
_LIT8( KTypePath8, "ReturnValue:[$index]/type" );
|
|
243 |
_LIT8( KTitleNamePath8, "ReturnValue:[$index]/title_name" );
|
|
244 |
_LIT8( KAppGroupNamePath8, "ReturnValue:[$index]/applicationgroup_name" );
|
|
245 |
_LIT8( KLongNamePath8, "ReturnValue:[$index]/long_name" );
|
|
246 |
_LIT8( KShortNamePath8, "ReturnValue:[$index]/short_name" );
|
|
247 |
_LIT8( KDeleteLockedPath8, "ReturnValue:[$index]/delete_locked" );
|
|
248 |
_LIT8( KParentIdPath8, "ReturnValue:[$index]/parent_id" );
|
|
249 |
_LIT8( KChildrenCountPath8, "ReturnValue/[$index]/children_count" );
|
|
250 |
_LIT8( KMcsTemplateTypePath8, "ReturnValue/[$index]/template" );
|
|
251 |
_LIT8( KMcsWidgetTypePath8, "ReturnValue/[$index]/widget_type" );
|
|
252 |
|
|
253 |
_LIT8( KWidgetTypePath8, "params:widget_type" );
|
|
254 |
_LIT8( KTemplatePath8, "params:template" );
|
|
255 |
_LIT( KTemplatePath, "params:template" );
|
|
256 |
_LIT( KWidgetTypePath, "params:widget_type" );
|
|
257 |
_LIT8( KReturnValue8, "ReturnValue" );
|
|
258 |
_LIT8( KErrorCode8, "ErrorCode" );
|
|
259 |
_LIT8( KParentFolderId8, "parent_folder_id" );
|
|
260 |
_LIT8( KTmpParentFolderId8, "tmp_parent_folder_id" );
|
|
261 |
|
|
262 |
_LIT( KCommandDeleteDialog, "MMDeleteDialogs" );
|
|
263 |
|
|
264 |
_LIT8 ( KSourceAttrName8, "source" );
|
|
265 |
|
|
266 |
_LIT( KColon, ":" );
|
|
267 |
_LIT8( KColon8, ":" );
|
|
268 |
_LIT( KBslash, "\\" );
|
|
269 |
_LIT( KSlash, "/" );
|
|
270 |
_LIT8( KSlash8, "/" );
|
|
271 |
_LIT( KOpenBracket, "(" );
|
|
272 |
_LIT( KCloseBracket, ")" );
|
|
273 |
_LIT8( KOpenSquareBracket, "[" );
|
|
274 |
_LIT8( KCloseSquareBracket, "]" );
|
|
275 |
_LIT8( KHexPrefix8, "0x" );
|
|
276 |
_LIT( KHexPrefix16, "0x" );
|
|
277 |
_LIT( KPipe, "|" );
|
|
278 |
_LIT( KBlank, "");
|
|
279 |
|
|
280 |
_LIT( KResourceSeparator, " = " );
|
|
281 |
_LIT( KComma, "," );
|
|
282 |
_LIT8( KComma8, "," );
|
|
283 |
|
|
284 |
_LIT( KRsg, ".rsg");
|
|
285 |
_LIT( KMbg, ".mbg");
|
|
286 |
_LIT( KRscPath, ":\\resource\\apps\\");
|
|
287 |
|
|
288 |
_LIT( KPrefMm, "mm://" );
|
|
289 |
_LIT8( KRootWithPref, "mm://root" );
|
|
290 |
_LIT8( KSetFocusWithPref, "mm://!setfocus" );
|
|
291 |
_LIT8( KCRepTimeFormat, "%S,%04d%02d%02d:%02d%02d%02d.%06d" );
|
|
292 |
|
|
293 |
// images
|
|
294 |
_LIT8( KSkinIdMajor8, "skinid_major" );
|
|
295 |
_LIT8( KSkinIdMinor8, "skinid_minor" );
|
|
296 |
_LIT8( KBitmapId8, "bitmap_id" );
|
|
297 |
_LIT8( KMaskId8, "mask_id" );
|
|
298 |
_LIT8( KAppUid8, "application_uid" );
|
|
299 |
_LIT8( KBitmap8, "bitmap" );
|
|
300 |
_LIT8( KMask8, "mask" );
|
|
301 |
_LIT8( KMifFile8, "mif_file" );
|
|
302 |
|
|
303 |
_LIT( KSvgFileExtension, ".svg" );
|
|
304 |
|
|
305 |
// texts
|
|
306 |
_LIT8( KResourceAttrName8, "resource");
|
|
307 |
_LIT8( KFile8, "file" );
|
|
308 |
|
|
309 |
// services
|
|
310 |
|
|
311 |
_LIT8( KServiceMultimediaMenu, "MultimediaMenu");
|
|
312 |
_LIT8( KServiceOpenSuite, "OpenSuite");
|
|
313 |
_LIT8( KServiceStartEditMode, "StartEditMode");
|
|
314 |
_LIT8( KServiceStopEditMode, "StopEditMode");
|
|
315 |
_LIT8( KServiceSwitchWidget, "SwitchWidget");
|
|
316 |
_LIT8( KServiceBack, "Back");
|
|
317 |
_LIT8( KSetFocus, "SetFocus");
|
|
318 |
_LIT8( KMoveFocusBeforeDelete, "MoveFocusBeforeDelete");
|
|
319 |
_LIT8( KRefreshIcons, "RefreshIcons" );
|
|
320 |
_LIT8( KEvaluateMdModel, "EvaluateMdModel" );
|
|
321 |
_LIT8( KDisableActionsForItem, "DisableActionsForItem" );
|
|
322 |
|
|
323 |
_LIT( KSuiteName, "suite_name" );
|
|
324 |
_LIT8( KSuiteName8, "suite_name" );
|
|
325 |
|
|
326 |
//
|
|
327 |
_LIT8 ( KHnRequest, "KHnRequest" );
|
|
328 |
// widget types
|
|
329 |
_LIT8 ( KSuite8, "suite" );
|
|
330 |
_LIT ( KFolderSuite, "foldersuite" );
|
|
331 |
_LIT8 ( KFolderSuite8, "foldersuite" );
|
|
332 |
_LIT8 ( KWidgetType8, "type" );
|
|
333 |
_LIT8 ( KAllowedTypes8, "allowed_types" );
|
|
334 |
_LIT8 ( KWidgetTypeList8, "list" );
|
|
335 |
_LIT8 ( KWidgetTypeCoverFlow8, "coverflow" );
|
|
336 |
_LIT8 ( KWidgetTypeGrid8, "grid" );
|
|
337 |
|
|
338 |
_LIT( KWidgetTypeList, "list" );
|
|
339 |
_LIT( KWidgetTypeCoverFlow, "coverflow" );
|
|
340 |
_LIT( KWidgetTypeGrid, "grid" );
|
|
341 |
|
|
342 |
_LIT( KStringFalse, "FALSE" );
|
|
343 |
_LIT( KStringTrue, "TRUE" );
|
|
344 |
|
|
345 |
_LIT8( KStringFalse8, "FALSE" );
|
|
346 |
_LIT8( KStringTrue8, "TRUE" );
|
|
347 |
|
|
348 |
_LIT( KSuitesDir, "import\\suites\\" );
|
|
349 |
_LIT( KXmlExt, ".xml" );
|
|
350 |
_LIT( Kbackslash, "\\" );
|
|
351 |
|
|
352 |
_LIT( KSuiteDefFileName, "suite.xml" );
|
|
353 |
_LIT( KTitle, "mul_title" );
|
|
354 |
_LIT8( KTitle8, "mul_title" );
|
|
355 |
_LIT8( KTemplate8, "mul_template" );
|
|
356 |
|
|
357 |
_LIT8( KTitleName8, "suite" );
|
|
358 |
_LIT8( KItemName8, "item" );
|
|
359 |
_LIT8( KGenreName8, "genre" );
|
|
360 |
_LIT8( KLocalizationName8, "localization" );
|
|
361 |
|
|
362 |
_LIT8( KEventName8, "event" );
|
|
363 |
_LIT8( KMenuItemName8, "menuitem" );
|
|
364 |
_LIT( KMenuItemName, "menuitem" );
|
|
365 |
_LIT8( KMenuItemSpecificName8, "menuitem_specific" );
|
|
366 |
_LIT( KMenuItemSpecificName, "menuitem_specific" );
|
|
367 |
|
|
368 |
_LIT( KRoot, "root" );
|
|
369 |
_LIT8( KRoot8, "root" );
|
|
370 |
_LIT( KExtension, ".r" ); // rsc, r01, r02, etc.
|
|
371 |
_LIT( KExtensionRsc, ".rsc" );
|
|
372 |
|
|
373 |
|
|
374 |
_LIT8( KHexStart8, "0x");
|
|
375 |
_LIT( KDrive , "C:");
|
|
376 |
_LIT( KEntriesSuffix, "suites\\");
|
|
377 |
|
|
378 |
_LIT8( KMoveLocked8, "move_locked" );
|
|
379 |
_LIT8( KRemoveLocked8, "remove_locked" );
|
|
380 |
_LIT8( KRunning8, "running" );
|
|
381 |
_LIT8( KDrmProtection8, "drm_protection" );
|
|
382 |
_LIT8( KItemType8, "type" );
|
|
383 |
_LIT8( KCustomId8, "custom_id" );
|
|
384 |
_LIT8( KItemCustomId8, "item_custom_id" );
|
|
385 |
_LIT8( KIndexShift8, "index_shift" );
|
|
386 |
_LIT8( KSuiteCustomId8, "suite_custom_id" );
|
|
387 |
_LIT8( KItemTypeUnknown8, "unknown" );
|
|
388 |
_LIT8( KItemTypeFolder8, "folder" );
|
|
389 |
_LIT8( KItemUid8, "uid" );
|
|
390 |
|
|
391 |
_LIT8( KMenuDrmUnknown8, "unknown" );
|
|
392 |
_LIT( KMenuDrmRightsExpired, "expired" );
|
|
393 |
|
|
394 |
|
|
395 |
//From hnmodel.h
|
|
396 |
// model events
|
|
397 |
_LIT( KNewSuiteLoadedMdEvent, "new_suite_loaded");
|
|
398 |
_LIT( KOpenSuiteMdEvent, "open_suite" );
|
|
399 |
_LIT( KReevaluateMdEvent, "reevaluate_model" );
|
|
400 |
_LIT( KSwitchWidgetMdEvent, "switch_widget" );
|
|
401 |
_LIT( KStartEditModeMdEvent, "start_edit_mode" );
|
|
402 |
_LIT( KStopEditModeMdEvent, "stop_edit_mode" );
|
|
403 |
_LIT( KAppGainForeground, "gain_foreground" );
|
|
404 |
_LIT( KAppGainBackground, "gain_background" );
|
|
405 |
_LIT( KSetFocusEvent, "set_focus" );
|
|
406 |
_LIT( KRefreshUiMdEvent, "refresh_ui" );
|
|
407 |
_LIT( KRefreshToolbarMdEvent, "refresh_toolbar" );
|
|
408 |
_LIT( KBackMdEvent, "back" );
|
|
409 |
_LIT( KResetToRoot, "reset_to_root");
|
|
410 |
|
|
411 |
// model event-related params
|
|
412 |
|
|
413 |
_LIT8( KParentId8, "parent_id" );
|
|
414 |
_LIT8( KDefaultParentId8, "1" );
|
|
415 |
_LIT( KDefaultParentId, "1" );
|
|
416 |
_LIT8( KDefaultCount8, "1" );
|
|
417 |
|
|
418 |
_LIT( KMatrixPanic, "Matrix Error" );
|
|
419 |
|
|
420 |
// debug strings
|
|
421 |
#ifdef _DEBUG
|
|
422 |
|
|
423 |
_LIT( KEventMapLogFile, "c:\\logs\\menu\\event_ids.txt" );
|
|
424 |
_LIT( KSuiteLoadingLogFile, "c:\\logs\\menu" );
|
|
425 |
|
|
426 |
#endif// _DEBUG
|
|
427 |
|
|
428 |
// info notes for notifying lack of configuration files
|
|
429 |
_LIT( KDebugNoteDirNotFound,
|
|
430 |
"Directory containing suite configuration not found!" );
|
|
431 |
_LIT( KDebugNoteFileNotFound,
|
|
432 |
"File containing suite configuration not found!" );
|
|
433 |
_LIT( KDebugNoteOtherError,
|
|
434 |
"Loading suite configuration returned error: %d" );
|
|
435 |
|
|
436 |
_LIT8( KStar8, "*" );
|
|
437 |
|
|
438 |
|
|
439 |
_LIT( KKeyEmpty, "key:empty" );
|
|
440 |
_LIT( KKeySelect, "key:select" );
|
|
441 |
_LIT( KKeySelect2, "key:select2" );
|
|
442 |
_LIT( KKeySelect3, "key:select3" );
|
|
443 |
_LIT( KKeyCall, "key:call" );
|
|
444 |
_LIT( KKeyClear, "key:clear" );
|
|
445 |
_LIT( KKeyMove, "key:move" );
|
|
446 |
_LIT( KKeyMoveInto, "key:move_into" );
|
|
447 |
_LIT( KOnSuiteLoad, "suite:load" );
|
|
448 |
_LIT( KOnSuiteUnLoad, "suite:unload" );
|
|
449 |
_LIT( KOnFocusGain, "item:focus" );
|
|
450 |
_LIT( KOnFocusLost, "item:unfocus" );
|
|
451 |
|
|
452 |
_LIT8( KIndexWithBrackets8, "[$index]");
|
|
453 |
_LIT8( KIndex8, "$index" );
|
|
454 |
_LIT( KIndex, "$index" );
|
|
455 |
_LIT8( KCount, "/[$count]" );
|
|
456 |
|
|
457 |
|
|
458 |
/** EActiveSpaceActionKeyEmpty */
|
|
459 |
const TInt KKeyIdEmpty = 0;
|
|
460 |
|
|
461 |
/** EActiveSpaceActionKeySelect */
|
|
462 |
const TInt KKeyIdSelect = 1;
|
|
463 |
|
|
464 |
/** EActiveSpaceActionKeySelect2 */
|
|
465 |
const TInt KKeyIdSelect2 = 2;
|
|
466 |
|
|
467 |
/** EActiveSpaceActionKeySelect3 */
|
|
468 |
const TInt KKeyIdSelect3 = 3;
|
|
469 |
|
|
470 |
/** EActiveSpaceActionKeyCall */
|
|
471 |
const TInt KKeyIdCall = 4;
|
|
472 |
|
|
473 |
const TInt KKeyIdClear = 6;
|
|
474 |
|
|
475 |
const TInt KIdSuiteLoad = 7;
|
|
476 |
|
|
477 |
const TInt KIdSuiteUnLoad = 8;
|
|
478 |
|
|
479 |
const TInt KIdFocusGain = 9;
|
|
480 |
|
|
481 |
const TInt KIdFocusLost = 10;
|
|
482 |
|
|
483 |
const TInt KKeyIdMove = 11;
|
|
484 |
|
|
485 |
const TInt KKeyIdMoveInto = 12;
|
|
486 |
|
|
487 |
const TInt KKeyIdMoveHighlight = 13;
|
|
488 |
|
|
489 |
|
|
490 |
const TInt KCustomKeyOffset = 7000;
|
|
491 |
|
|
492 |
// for XML model provider
|
|
493 |
|
|
494 |
const TInt KHnDefaultGranularity = 5;
|
|
495 |
|
|
496 |
/** Central Repository Uid for Matrix Menu */
|
|
497 |
static const TUid KMatrixRepositoryUid = { 0x20012474 };
|
|
498 |
|
|
499 |
/**
|
|
500 |
* Following characters are not allowed in the names
|
|
501 |
*/
|
|
502 |
const TUint KNotAllowedChars[] = {'<', '>', '\\', '/', '"', '|', ':', '*', '?'};
|
|
503 |
|
|
504 |
/** Central Repository Uid for Appshell (needed to detect folder change) */
|
|
505 |
static const TUid KCRUidMenu = {0x101f8847};
|
|
506 |
|
|
507 |
const TInt KRootId = 1 ;
|
|
508 |
|
|
509 |
const TUint32 KMenuShowFolder = 0x0000000c;
|
|
510 |
|
|
511 |
const TInt KTimeStampBufferLength = 25;
|
|
512 |
|
|
513 |
const TInt KUidStringLength = 10;
|
|
514 |
|
|
515 |
const TInt KTimeStampCutOff = 5;
|
|
516 |
|
|
517 |
/**
|
|
518 |
* Order in which drives are searched for suites.
|
|
519 |
*/
|
|
520 |
const TInt KDriveSearchOrder[] = { EDriveY, EDriveX, EDriveW, EDriveV, EDriveU,
|
|
521 |
EDriveT, EDriveS, EDriveR, EDriveQ, EDriveP, EDriveO, EDriveN, EDriveM,
|
|
522 |
EDriveL, EDriveK, EDriveJ, EDriveI, EDriveH, EDriveG, EDriveF, EDriveE,
|
|
523 |
EDriveD, EDriveC, EDriveB, EDriveA, EDriveZ };
|
|
524 |
|
|
525 |
/**
|
|
526 |
* Type of the widget which displays Suite data
|
|
527 |
*
|
|
528 |
* @since S60 v5.0
|
|
529 |
*/
|
|
530 |
enum THnSuiteWidgetType
|
|
531 |
{
|
|
532 |
EUnspecified = 0x00,
|
|
533 |
EGridWidget = 0x01,
|
|
534 |
EListWidget = 0x02,
|
|
535 |
ECoverFlowWidget = 0x04,
|
|
536 |
EChangeWidget = 0x05
|
|
537 |
};
|
|
538 |
|
|
539 |
/**
|
|
540 |
* Service Mode
|
|
541 |
*/
|
|
542 |
enum TServiceMode
|
|
543 |
{
|
|
544 |
EServiceModeUndefined = 0,
|
|
545 |
EServiceModeSynchronous,
|
|
546 |
EServiceModeAsynchronous
|
|
547 |
};
|
|
548 |
|
|
549 |
/**
|
|
550 |
* Image source
|
|
551 |
*/
|
|
552 |
enum TImageSource
|
|
553 |
{
|
|
554 |
EImageSourceUndefined = 0,
|
|
555 |
EImageSourceFile,
|
|
556 |
EImageSourceResource,
|
|
557 |
EImageSourceApplicationUid,
|
|
558 |
EImageSourceLiw
|
|
559 |
};
|
|
560 |
|
|
561 |
/**
|
|
562 |
* Custom item ids.
|
|
563 |
*/
|
|
564 |
enum TCustomId
|
|
565 |
{
|
|
566 |
ECustomIdFirstItem = -2,
|
|
567 |
ECustomIdLastItem = -3
|
|
568 |
};
|
|
569 |
|
|
570 |
/**
|
|
571 |
* Suite's exit mode
|
|
572 |
*/
|
|
573 |
enum TExitMode
|
|
574 |
{
|
|
575 |
EExitModeNormal = 0,
|
|
576 |
EExitModeHide
|
|
577 |
};
|
|
578 |
|
|
579 |
/**
|
|
580 |
* Type of change in items number
|
|
581 |
*/
|
|
582 |
enum TItemsChangeType {
|
|
583 |
EItemsAdded = 0,
|
|
584 |
EItemsRemoved
|
|
585 |
};
|
|
586 |
|
|
587 |
_LIT8( KExitModeParams, "params:exit" );
|
|
588 |
_LIT8( KActionParams, "params:action" );
|
|
589 |
_LIT( KExitModeHide, "hide" );
|
|
590 |
_LIT( KActionExit, "exit" );
|
|
591 |
|
|
592 |
/*
|
|
593 |
* MCS
|
|
594 |
*/
|
|
595 |
_LIT8(KMCSDataSourceInterface8, "IDataSource");
|
|
596 |
_LIT8(KMCSMenuContentInterface8, "IMenuContent");
|
|
597 |
_LIT8(KMCSService8, "Service.MenuContent");
|
|
598 |
// Search and Result Types
|
|
599 |
_LIT8(KRecursiveSearch8, "recursive_search");
|
|
600 |
_LIT8(KFlatResult8, "flat_result");
|
|
601 |
_LIT8(KParentOnly8, "parent_only");
|
|
602 |
_LIT8(KIncludeParent8, "include_parent");
|
|
603 |
// GetList Parameters
|
|
604 |
_LIT8(KInData8, "InData");
|
|
605 |
_LIT8(KFilter8, "Filter");
|
|
606 |
// Command Names
|
|
607 |
_LIT8(KCmdAdd8, "Add");
|
|
608 |
_LIT8(KCmdDelete8, "Delete");
|
|
609 |
_LIT8(KCmdExecuteAction8, "ExecuteAction");
|
|
610 |
_LIT8(KCmdGetList8, "GetList");
|
|
611 |
_LIT8(KCmdOrganize8, "Organize");
|
|
612 |
// Flags
|
|
613 |
_LIT8(KDeleteLocked8, "delete_locked");
|
|
614 |
_LIT8(KHidden8, "hidden");
|
|
615 |
_LIT8(KMissing8, "missing");
|
|
616 |
// Organize Parameters
|
|
617 |
_LIT8(KFolderId8, "folder_id");
|
|
618 |
_LIT8(KBeforeItemId8, "before_item_id");
|
|
619 |
|
|
620 |
_LIT8( KUriHighlight, "uri_highlight" );
|
|
621 |
_LIT8( KParamsUriHighlight, "params:uri_highlight" );
|
|
622 |
|
|
623 |
_LIT8( KUriHighlightSuite, "uri_highlight_suite" );
|
|
624 |
_LIT8( KParamsUriHighlightSuite, "params:uri_highlight_suite" );
|
|
625 |
|
|
626 |
#endif // C_HNGLOBALS_H
|