homescreensrv_plat/menu_content_service_api/inc/mcsdef.h
changeset 0 79c6a41cd166
child 101 9e077f9a342c
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     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:  Definition of different constants
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MCSDEF_H__
       
    20 #define __MCSDEF_H__
       
    21 
       
    22 #include <e32base.h>
       
    23 #include "mcsinternaltypes.h"
       
    24 
       
    25 
       
    26 // CONSTANTS
       
    27 const TUid KMmUid3 = { 0x101f4cd2 };
       
    28 const TUid KCRUidMenu = { 0x101F8847 };
       
    29 const TUint32 KMenuHideApplication = 0x00000008;
       
    30 const TUint32 KMenuHideCPApplication = 0x0000000a;
       
    31 const TUint32 KMenuHideCPFolder = 0x0000000b;
       
    32 const TInt KCenRepBufferSize = 255;
       
    33 
       
    34 //
       
    35 // Internal types, cannot be accessed (KErrArgument).
       
    36 //
       
    37 
       
    38 _LIT( KMenuTypeData, "menu:data" ); ///< Internal type, cannot be accessed or created.
       
    39 
       
    40 
       
    41 //
       
    42 // Internal attributes, cannot be accessed (KErrArgument).
       
    43 //
       
    44 
       
    45 _LIT( KMenuAttrFlags, "flags" ); ///< Internal attribute, cannot be accessed. Use Flags().
       
    46 _LIT( KMenuAttrId, "id" ); ///< Internal attribute, cannot be accessed. Use Id().
       
    47 
       
    48 //
       
    49 // Attributes commonly used for all items.
       
    50 // These are the attributes that are normally used when displaying a menu of items
       
    51 // in a menu UI. To get a consistent look of various items, it is recommended that
       
    52 // some of these attributes are properly set (at least one of the xxx_name, and
       
    53 // some kind of icon information for non-applications).
       
    54 // Note, however, that none of these is guaranteed to be set, or be used by a menu UI.
       
    55 // Menu clients always need to check that the necessary attributes are present.
       
    56 //
       
    57 
       
    58 _LIT( KMenuAttrTitleName, "title_name" ); ///< Title name (displayed in Title Pane).
       
    59 _LIT( KMenuAttrShortName, "short_name" ); ///< Short name.
       
    60 _LIT( KMenuAttrLongName, "long_name" ); ///< Long name.
       
    61 _LIT( KMenuAttrIconFile, "icon_file" ); ///< Custom icon file (MIF or MBM).
       
    62 _LIT( KMenuAttrIconId, "icon_id" ); ///< Icon index into "icon_file".
       
    63 _LIT( KMenuAttrMaskId, "mask_id" ); ///< Mask index into "icon_file".
       
    64 _LIT( KMenuAttrM3gIconFile, "m3g_icon_file" ); ///< Custom M3G icon file.
       
    65 _LIT( KMenuAttrIconSkinMajorId, "icon_skin_major_id" ); ///< Icon major skin id.
       
    66 _LIT( KMenuAttrIconSkinMinorId, "icon_skin_minor_id" ); ///< Icon minor skin id.
       
    67 
       
    68 _LIT( KMenuAttrDrmProtection, "drm_protection" ); ///< DRM Protection status
       
    69 _LIT( KMenuDrmUnknown, "unknown" ); ///< Value of the DRM Protection attribute
       
    70 _LIT( KMenuDrmNotProtected, "not_protected" ); ///< Value of the DRM Protection attribute
       
    71 _LIT( KMenuDrmProtected, "protected" ); ///< Value of the DRM Protection attribute
       
    72 _LIT( KMenuDrmRightsExpired, "expired" ); ///< Value of the DRM Protection attribute
       
    73 
       
    74 _LIT( KMenuAttrNative, "native" );
       
    75 _LIT( KMenuTrue, "1" );
       
    76 _LIT( KMenuFalse, "0" );
       
    77 
       
    78 // Built-in types and attributes.
       
    79 //
       
    80 
       
    81 // Folder.
       
    82 _LIT( KMenuTypeFolder, "menu:folder" ); ///< Menu folder type.
       
    83 _LIT( KMenuAttrAppGroupName, "applicationgroup_name" ); ///< Application Group name.
       
    84 _LIT( KMenuAttrDefault, "default" ); ///< Default folder.
       
    85 _LIT( KChildrenCount, "children_count");  
       
    86 _LIT( KRunningStatus, "RunningStatus" );
       
    87 
       
    88 // Application.
       
    89 _LIT( KMenuTypeApp, "menu:application" ); ///< Menu application type.
       
    90 _LIT( KMenuTypeSuite, "menu:suite" );
       
    91 _LIT( KMenuAttSuiteName, "suite_name" );
       
    92 _LIT( KMenuAttSuiteAdded, "suite_added" );
       
    93 _LIT( KMenuAttrUid, "uid" ); ///< UID.
       
    94 _LIT( KMenuAttrView, "view" ); ///< View.
       
    95 _LIT( KMenuAttrHideIfInstalledUid, "hide_if_installed_uid" ); ///< Hide app if installed other app with uid.
       
    96 
       
    97 // URL.
       
    98 _LIT( KMenuTypeUrl, "menu:url" ); ///< Menu url type.
       
    99 _LIT( KMenuAttrUrl, "url" ); ///< URL.
       
   100 
       
   101 // Link.
       
   102 _LIT( KMenuTypeLink, "menu:link" ); ///< Menu link type.
       
   103 _LIT( KMenuAttrRefId, "ref_id" ); ///< Referred id. Refers to Id() of some other item.
       
   104 
       
   105 //
       
   106 // Command strings.
       
   107 //
       
   108 
       
   109 _LIT8( KMenuCmdOpen, "open" ); ///< Open item.
       
   110 _LIT8( KMenuCmdRemove, "remove" ); ///< Remove item.
       
   111 
       
   112 
       
   113 _LIT( KMenuSatUiUid, "0x101F4CE0" ); 
       
   114 
       
   115 const TInt KDefaultGranularity = 5;
       
   116 const TUint KBackSlashSuite = '\\';
       
   117 const TUint KDot = '.';
       
   118 _LIT(KXmlExt, "xml");
       
   119 _LIT(KImportDir, "import");
       
   120 
       
   121 
       
   122 _LIT( KColen, ":" );
       
   123 const TUid KSatUid = { 0x101F4CE0 };
       
   124 const TUint32 KMenuSatUIIconId = 0x00000004;
       
   125 
       
   126 const TUint32 KMenuShowSatUI = 0x00000002;
       
   127 const TUint32 KMenuSatUIName = 0x00000003;
       
   128 
       
   129 _LIT(KComma, ",");
       
   130 _LIT(KHex, "0x");
       
   131 
       
   132 //Constants
       
   133 _LIT8(KMenuAttrId8,              "id");
       
   134 _LIT8(KInData,                   "InData");
       
   135 _LIT8(KFilter,                   "Filter");
       
   136 _LIT8(KType,                     "type");
       
   137 _LIT8(KMenuParentId,			 "parent_id");
       
   138 _LIT8(KAddRemove,                "add_remove");
       
   139 _LIT8(KReorder,                  "reorder");
       
   140 _LIT8(KAttributeChange,          "attribute_change");
       
   141 _LIT8(KParentId,                 "parent_id");
       
   142 _LIT8(KBeforeId,                 "before_item");
       
   143 _LIT8(KRecursiveSearch,          "recursive_search");
       
   144 _LIT8(KChildren,                 "children");
       
   145 _LIT8(KFlatResult,               "flat_result");
       
   146 _LIT8(KParentOnly,               "parent_only");
       
   147 _LIT8(KIncludeParent,            "include_parent");
       
   148 _LIT8(KIgnoreAttributes,         "ignore_attributes");
       
   149 _LIT8(KRequiredAttributes,       "required_attributes");
       
   150 // Flags
       
   151 _LIT8(KNameLocked,               "name_locked");
       
   152 _LIT8(KIconLocked,               "icon_locked");
       
   153 _LIT8(KDeleteLocked,             "delete_locked");
       
   154 _LIT8(KMoveLocked,               "move_locked");
       
   155 _LIT8(KAddingLocked,             "adding_locked");
       
   156 _LIT8(KHidden,                   "hidden");
       
   157 _LIT8(KMissing,                  "missing");
       
   158 
       
   159 _LIT8( KBitmapBuffer, "bitmap_buffer");
       
   160 _LIT8( KMaskBuffer, "mask_buffer");
       
   161 _LIT8( KRunning, "running");
       
   162 _LIT8( KIconAttributes, "icon_attributes");
       
   163 _LIT8(KReturnValue,              "ReturnValue");
       
   164 
       
   165 // Prefix hex format
       
   166 _LIT(KHexFormat,                 "0x%X");
       
   167 _LIT(KHexPrefix,                 "0x");
       
   168 
       
   169 
       
   170 
       
   171 #endif // __MCSDEF_H__