|
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.4 % << 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 //Ca constants |
|
27 |
|
28 enum TChangeType |
|
29 { |
|
30 EAddChangeType, |
|
31 ERemoveChangeType, |
|
32 EUpdateChangeType |
|
33 }; |
|
34 |
|
35 enum TEntryRole |
|
36 { |
|
37 ENoneEntryRole = 0, |
|
38 EItemEntryRole = 1, |
|
39 EGroupEntryRole = 2 |
|
40 }; |
|
41 |
|
42 //Entry flags |
|
43 enum TEntryFlag |
|
44 { |
|
45 EUsed = 1, |
|
46 ESystem = 2, |
|
47 ERemovable = 4, |
|
48 EVisible = 8, |
|
49 ERunning = 16, |
|
50 ENative = 32, |
|
51 EMissing = 64 |
|
52 }; |
|
53 // Ca - Application |
|
54 _LIT( KCaTypeFolder, "folder" ); |
|
55 _LIT( KCaTypeCollection, "collection" ); |
|
56 _LIT( KCaTypeApp, "application" ); |
|
57 _LIT( KCaTypeWidget, "widget" ); |
|
58 _LIT( KCaTypeUrl, "url" ); |
|
59 _LIT( KCaAttrView, "view" ); ///< View. |
|
60 _LIT( KCaAttrUrl, "url" ); |
|
61 _LIT( KCaAttrWindowGroupId, "window_group_id" ); |
|
62 _LIT( KCaTypeCollectionDownload, "collection::downloaded" ); |
|
63 _LIT( KCaPackageUid,"packageuid"); |
|
64 _LIT( KCaAttrInstallationTime, "installationTime"); |
|
65 |
|
66 const TInt KGranularityOne = 1; |
|
67 const TInt KUidChars = 10; |
|
68 const TInt KDefaultGranularity = 5; |
|
69 const TInt KDefaultExpandSize = 512; |
|
70 const TInt KCaMaxAttrLenght = 255; |
|
71 // MMC related constants |
|
72 _LIT( KCaAttrMmcId, "mmc_id" ); |
|
73 _LIT( KCaMassStorage, "mass_storage" ); |
|
74 _LIT( KCaMmcHistoryFname, "mmchistory" ); |
|
75 |
|
76 //Ca constants |
|
77 // --------------------------------------------------------- |
|
78 |
|
79 |
|
80 // CONSTANTS |
|
81 |
|
82 const TUid KSatUid = |
|
83 { |
|
84 0x101F4CE0 |
|
85 }; |
|
86 |
|
87 const TUid KHsAppUid = |
|
88 { |
|
89 0x20022F35 |
|
90 }; |
|
91 |
|
92 const TInt KCenRepBufferSize = 255; |
|
93 // |
|
94 // Attributes commonly used for all items. |
|
95 // These are the attributes that are normally used when displaying a menu of items |
|
96 // in a menu UI. To get a consistent look of various items, it is recommended that |
|
97 // some of these attributes are properly set (at least one of the xxx_name, and |
|
98 // some kind of icon information for non-applications). |
|
99 // Note, however, that none of these is guaranteed to be set, or be used by a menu UI. |
|
100 // Menu clients always need to check that the necessary attributes are present. |
|
101 // |
|
102 _LIT( KCaAttrLongName, "long_name" ); ///< Long name. |
|
103 |
|
104 // Built-in types and attributes. |
|
105 // |
|
106 // |
|
107 // Command strings. |
|
108 // |
|
109 |
|
110 _LIT8( KCaCmdOpen, "open" ); ///< Open item. |
|
111 _LIT8( KCaCmdRemove, "remove" ); ///< Remove item. |
|
112 _LIT8( KCaCmdClose, "close" ); ///< Close item. |
|
113 |
|
114 |
|
115 //Properties in database |
|
116 |
|
117 _LIT( KCaDbPropVersion, "Version" ); /// db version |
|
118 _LIT( KCaDbPropLanguage, "Language" ); // language of ca strings in db |
|
119 _LIT( KCaDbPropQMfile, "QMfile" ); // prefix of qm file used in translation |
|
120 |
|
121 |
|
122 |
|
123 _LIT(KComma, ","); |
|
124 // Prefix hex format |
|
125 _LIT(KHexFormat, "0x%X"); |
|
126 |
|
127 #endif // CADEF_H |