contentstorage/inc/cadef.h
changeset 93 82b66994846c
parent 92 782e3408c2ab
child 94 dbb8300717f7
equal deleted inserted replaced
92:782e3408c2ab 93:82b66994846c
    10  * Nokia Corporation - initial contribution.
    10  * Nokia Corporation - initial contribution.
    11  *
    11  *
    12  * Contributors:
    12  * Contributors:
    13  *
    13  *
    14  * Description:  Definition of different constants
    14  * Description:  Definition of different constants
    15  *  Version     : %version: 10.1.12 % << Don't touch! Updated by Synergy at check-out.
    15  *  Version     : %version: ou1s60ui#10.1.14 % << Don't touch! Updated by Synergy at check-out.
    16  *
    16  *
    17  */
    17  */
    18 
    18 
    19 #ifndef CADEF_H
    19 #ifndef CADEF_H
    20 #define CADEF_H
    20 #define CADEF_H
    22 #include <e32base.h>
    22 #include <e32base.h>
    23 #include "cainternaltypes.h"
    23 #include "cainternaltypes.h"
    24 
    24 
    25 
    25 
    26 // database version
    26 // database version
    27 _LIT( KCaDbVersion, "00001" ); 
    27 _LIT( KCaDbVersion, "00001" );
    28 
    28 
    29 
    29 
    30 
    30 
    31 // ---------------------------------------------------------
    31 // ---------------------------------------------------------
    32 //Ca constants
    32 //Ca constants
    54     EVisible = 8,
    54     EVisible = 8,
    55     ERunning = 16,
    55     ERunning = 16,
    56     ENative = 32,
    56     ENative = 32,
    57     EMissing = 64
    57     EMissing = 64
    58     };
    58     };
       
    59 
       
    60 enum TItemAppearance
       
    61     {
       
    62     EItemAppearanceNotChanged,
       
    63     EItemDisappeared,
       
    64     EItemAppeared
       
    65     };
       
    66 
    59 // Ca - Application
    67 // Ca - Application
    60 
    68 
    61 _LIT( KCaTypeMenuCollections, "menucollections" );
    69 _LIT( KCaTypeMenuCollections, "menucollections" );
    62 _LIT( KCaTypeFolder, "folder" );
    70 _LIT( KCaTypeFolder, "folder" );
    63 _LIT( KCaTypeCollection, "collection" );
    71 _LIT( KCaTypeCollection, "collection" );
    80 _LIT( KCaAttrAppSettingsPlugin, "app_settings_plugin");
    88 _LIT( KCaAttrAppSettingsPlugin, "app_settings_plugin");
    81 // app settings plugin for java apps
    89 // app settings plugin for java apps
    82 _LIT( KCaAttrJavaAppSettingsPluginValue,
    90 _LIT( KCaAttrJavaAppSettingsPluginValue,
    83         "/resource/qt/plugins/appsettings/javaapplicationsettingsview.qtplugin");
    91         "/resource/qt/plugins/appsettings/javaapplicationsettingsview.qtplugin");
    84 _LIT( KCaAttrAppWidgetUri, "widget:uri");
    92 _LIT( KCaAttrAppWidgetUri, "widget:uri");
       
    93 _LIT( KCaAttrAppWidgetServiceXml, "widget:servicexml");
       
    94 
    85 _LIT( KCaAttrAppWidgetUriCWRTValue, "wrtwidgetuiplugin");
    95 _LIT( KCaAttrAppWidgetUriCWRTValue, "wrtwidgetuiplugin");
    86 _LIT( KCaAttrAppWidgetParamWebAppId, "widgetparam:webAppId");
    96 _LIT( KCaAttrAppWidgetParamWebAppId, "widgetparam:webAppId");
    87 
    97 
    88 _LIT( KCaAppGroupName, "appgroup_name" );
    98 _LIT( KCaAppGroupName, "appgroup_name" );
    89 
    99 
    94 const TInt KCaMaxAttrLenght = 255;
   104 const TInt KCaMaxAttrLenght = 255;
    95 // MMC related constants
   105 // MMC related constants
    96 _LIT( KCaAttrMmcId, "mmc_id" );
   106 _LIT( KCaAttrMmcId, "mmc_id" );
    97 _LIT( KCaMassStorage, "mass_storage" );
   107 _LIT( KCaMassStorage, "mass_storage" );
    98 _LIT( KCaMmcHistoryFname, "mmchistory" );
   108 _LIT( KCaMmcHistoryFname, "mmchistory" );
       
   109 // max(KCaMassStorage.Length(), KUidChars)
       
   110 const TInt KMassStorageIdLength = 12;
    99 
   111 
   100 //Ca constants
   112 //Ca constants
   101 // ---------------------------------------------------------
   113 // ---------------------------------------------------------
   102 
   114 
   103 
   115 
   104 // CONSTANTS
   116 // CONSTANTS
   105     
   117 
   106 const TUid KSatUid =
   118 const TUid KSatUid =
   107     {
   119     {
   108     0x101F4CE0
   120     0x101F4CE0
   109     };
   121     };
   110 
   122 
   111 const TUid KHsAppUid =
   123 const TUid KHsAppUid =
   112     {
   124     {
   113     0x20022F35
   125     0x20022F35
   114     };
   126     };
   115 
   127 
   116 const TUid KMidletApplicationTypeUid = 
   128 const TUid KMidletApplicationTypeUid =
   117     {
   129     {
   118     0x10210E26        
   130     0x10210E26
   119     };
   131     };
   120 
   132 
   121 const TUid KCWRTApplicationTypeUid = 
   133 const TUid KCWRTApplicationTypeUid =
   122     {
   134     {
   123     0x200267DC       
   135     0x200267DC
   124     };
   136     };
   125 
   137 
   126 const TInt KCenRepBufferSize = 255;
   138 const TInt KCenRepBufferSize = 255;
   127 //
   139 //
   128 // Attributes commonly used for all items.
   140 // Attributes commonly used for all items.
   148 
   160 
   149 //Properties in database
   161 //Properties in database
   150 
   162 
   151 _LIT( KCaDbPropVersion, "Version" ); /// db version
   163 _LIT( KCaDbPropVersion, "Version" ); /// db version
   152 _LIT( KCaDbPropLanguage, "Language" ); // language of ca strings in db
   164 _LIT( KCaDbPropLanguage, "Language" ); // language of ca strings in db
   153 _LIT( KCaDbPropQMfile, "QMfile" ); // prefix of qm file used in translation 
   165 _LIT( KCaDbPropQMfile, "QMfile" ); // prefix of qm file used in translation
   154 
   166 
   155 
   167 
   156 
   168 
   157 _LIT(KComma, ",");
   169 _LIT(KComma, ",");
   158 // Prefix hex format
   170 // Prefix hex format