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