contentstorage/inc/cadef.h
branchRCL_3
changeset 113 0efa10d348c0
equal deleted inserted replaced
111:053c6c7c14f3 113:0efa10d348c0
       
     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  *  Version     : %version: 10.1.26 % << Don't touch! Updated by Synergy at check-out.
       
    16  *
       
    17  */
       
    18 
       
    19 #ifndef CADEF_H
       
    20 #define CADEF_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include "cainternaltypes.h"
       
    24 
       
    25 
       
    26 // database version
       
    27 _LIT( KCaDbVersion, "00001" );
       
    28 
       
    29 
       
    30 
       
    31 // ---------------------------------------------------------
       
    32 //Ca constants
       
    33 
       
    34 enum TChangeType
       
    35     {
       
    36     EAddChangeType,
       
    37     ERemoveChangeType,
       
    38     EUpdateChangeType
       
    39     };
       
    40 
       
    41 enum TEntryRole
       
    42     {
       
    43     ENoneEntryRole = 0,
       
    44     EItemEntryRole = 1,
       
    45     EGroupEntryRole = 2
       
    46     };
       
    47 
       
    48 //Entry flags
       
    49 enum TEntryFlag
       
    50     {
       
    51     EUsed = 1,//Flag is set only for removable applications
       
    52     EUninstall = 2,
       
    53     ERemovable = 4,
       
    54     EVisible = 8,
       
    55     ERunning = 16,
       
    56     ENative = 32,
       
    57     EMissing = 64
       
    58     };
       
    59 
       
    60 enum TItemAppearance
       
    61     {
       
    62     EItemAppearanceNotChanged,
       
    63     EItemDisappeared,
       
    64     EItemAppeared,
       
    65     EItemUninstallProgressChanged
       
    66     };
       
    67 
       
    68 // Ca - Application
       
    69 
       
    70 _LIT( KCaTypeMenuCollections, "menucollections" );
       
    71 _LIT( KCaTypeFolder, "folder" );
       
    72 _LIT( KCaTypeCollection, "collection" );
       
    73 _LIT( KCaTypeApp, "application" );
       
    74 _LIT( KCaTypeWidget, "widget" );
       
    75 _LIT( KCaTypeUrl, "url" );
       
    76 _LIT( KCaTypePackage, "package" );
       
    77 _LIT( KCaAttrView, "view" ); ///< View.
       
    78 _LIT( KCaAttrUrl, "url" );
       
    79 _LIT( KCaAttrWindowGroupId, "window_group_id" );
       
    80 _LIT( KCaTypeCollectionDownload, "collection::downloaded" );
       
    81 _LIT( KCaPackageUid,"packageuid");
       
    82 _LIT( KCaAttrInstallationTime, "installationTime");
       
    83 _LIT( KCaTypeTemplatedApp, "templatedApplication" );
       
    84 _LIT( KCaAttrAppType, "apptype");
       
    85 _LIT( KCaAttrAppTypeValueJava, "java");
       
    86 _LIT( KCaAttrAppTypeValueCWRT, "cwrt");
       
    87 _LIT( KCaAttrAppTypeValueNative, "native");
       
    88 _LIT( KCaAttrComponentId, "component_id" );
       
    89 _LIT( KCaAttrAppSettingsPlugin, "app_settings_plugin");
       
    90 _LIT( KCaScrPropertyAppSettings, "settingsName");
       
    91 _LIT( KPreviewImageAttrName, "preview_image_name" );
       
    92 _LIT( KCaAttrAppWidgetUri, "widget:uri");
       
    93 _LIT( KCaAttrAppWidgetServiceXml, "widget:servicexml");
       
    94 
       
    95 _LIT( KCaAttrAppWidgetUriCWRTValue, "wrtwidgetuiplugin");
       
    96 _LIT( KCaAttrAppWidgetParamWebAppId, "widgetparam:webAppId");
       
    97 _LIT( KCaScrPropertyAppId, "AppID");
       
    98 _LIT( KCaScrPropertyIsMiniviewSupported, "isMiniviewSupported");
       
    99 
       
   100 _LIT( KCaAppGroupName, "appgroup_name" );
       
   101 _LIT( KCaAppUninstallProgress, "uninstall_progress" );
       
   102 
       
   103 _LIT( KCollectionIconFileName, "qtg_large_applications_user");
       
   104 
       
   105 
       
   106 _LIT(KLocalizationFilepathZ, "z:/resource/qt/translations");
       
   107 _LIT(KLocalizationFilepathC, "c:/resource/qt/translations");
       
   108 _LIT(KLocalizationFilepath, ":/resource/qt/translations");
       
   109 _LIT( KLocalizationCaEntry, "CA_ENTRY" );
       
   110 _LIT( KLocalizationEnText, "EN_TEXT" );
       
   111 _LIT( KLocalizationEnDescription, "EN_DESCRIPTION" );
       
   112 const TInt charsToFilename= 6;  // <loc://> loc://email/qtn_gmail_mail_account
       
   113 
       
   114 
       
   115 const TInt KGranularityOne = 1;
       
   116 const TInt KUidChars = 10;
       
   117 const TInt KDefaultGranularity = 5;
       
   118 const TInt KDefaultExpandSize = 512;
       
   119 const TInt KCaMaxAttrLenght = 255;
       
   120 // MMC related constants
       
   121 _LIT( KCaAttrMmcId, "mmc_id" );
       
   122 _LIT( KCaMassStorage, "mass_storage" );
       
   123 _LIT( KCaMmcHistoryFname, "mmchistory" );
       
   124 // max(KCaMassStorage.Length(), KUidChars)
       
   125 const TInt KMassStorageIdLength = 12;
       
   126 
       
   127 //Ca constants
       
   128 // ---------------------------------------------------------
       
   129 
       
   130 
       
   131 // CONSTANTS
       
   132 
       
   133 const TUid KSatUid =
       
   134     {
       
   135     0x101F4CE0
       
   136     };
       
   137 
       
   138 const TUid KHsAppUid =
       
   139     {
       
   140     0x20022F35
       
   141     };
       
   142 
       
   143 const TUid KMidletApplicationTypeUid =
       
   144     {
       
   145     0x10210E26
       
   146     };
       
   147 
       
   148 const TUid KCWRTApplicationTypeUid =
       
   149     {
       
   150     0x10282821 
       
   151     };
       
   152 
       
   153 const TInt KCenRepBufferSize = 255;
       
   154 //
       
   155 // Attributes commonly used for all items.
       
   156 // These are the attributes that are normally used when displaying a menu of items
       
   157 // in a menu UI. To get a consistent look of various items, it is recommended that
       
   158 // some of these attributes are properly set (at least one of the xxx_name, and
       
   159 // some kind of icon information for non-applications).
       
   160 // Note, however, that none of these is guaranteed to be set, or be used by a menu UI.
       
   161 // Menu clients always need to check that the necessary attributes are present.
       
   162 //
       
   163 _LIT( KCaAttrShortName, "short_name" ); ///< Short name.
       
   164 _LIT( KCaComponentId, "component_id" ); ///< Component Id.
       
   165 
       
   166 // Built-in types and attributes.
       
   167 //
       
   168 //
       
   169 // Command strings.
       
   170 //
       
   171 
       
   172 _LIT8( KCaCmdOpen, "open" ); ///< Open item.
       
   173 _LIT8( KCaCmdRemove, "remove" ); ///< Remove item.
       
   174 _LIT8( KCaCmdClose, "close" ); ///< Close item.
       
   175 
       
   176 
       
   177 //Properties in database
       
   178 
       
   179 _LIT( KCaDbPropVersion, "Version" ); /// db version
       
   180 _LIT( KCaDbPropLanguage, "Language" ); // language of ca strings in db
       
   181 _LIT( KCaDbPropQMfile, "QMfile" ); // prefix of qm file used in translation
       
   182 
       
   183 
       
   184 
       
   185 _LIT(KComma, ",");
       
   186 // Prefix hex format
       
   187 _LIT(KHexFormat, "0x%X");
       
   188 
       
   189 #endif // CADEF_H