85
|
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
|
94
|
15 |
* Version : %version: 10.1.16 % << Don't touch! Updated by Synergy at check-out.
|
85
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
#ifndef CADEF_H
|
|
20 |
#define CADEF_H
|
|
21 |
|
|
22 |
#include <e32base.h>
|
|
23 |
#include "cainternaltypes.h"
|
|
24 |
|
89
|
25 |
|
|
26 |
// database version
|
93
|
27 |
_LIT( KCaDbVersion, "00001" );
|
89
|
28 |
|
|
29 |
|
|
30 |
|
85
|
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,
|
|
52 |
ESystem = 2,
|
|
53 |
ERemovable = 4,
|
|
54 |
EVisible = 8,
|
|
55 |
ERunning = 16,
|
|
56 |
ENative = 32,
|
|
57 |
EMissing = 64
|
|
58 |
};
|
93
|
59 |
|
|
60 |
enum TItemAppearance
|
|
61 |
{
|
|
62 |
EItemAppearanceNotChanged,
|
|
63 |
EItemDisappeared,
|
|
64 |
EItemAppeared
|
|
65 |
};
|
|
66 |
|
85
|
67 |
// Ca - Application
|
92
|
68 |
|
|
69 |
_LIT( KCaTypeMenuCollections, "menucollections" );
|
85
|
70 |
_LIT( KCaTypeFolder, "folder" );
|
|
71 |
_LIT( KCaTypeCollection, "collection" );
|
|
72 |
_LIT( KCaTypeApp, "application" );
|
|
73 |
_LIT( KCaTypeWidget, "widget" );
|
|
74 |
_LIT( KCaTypeUrl, "url" );
|
92
|
75 |
_LIT( KCaTypePackage, "package" );
|
85
|
76 |
_LIT( KCaAttrView, "view" ); ///< View.
|
|
77 |
_LIT( KCaAttrUrl, "url" );
|
|
78 |
_LIT( KCaAttrWindowGroupId, "window_group_id" );
|
|
79 |
_LIT( KCaTypeCollectionDownload, "collection::downloaded" );
|
|
80 |
_LIT( KCaPackageUid,"packageuid");
|
87
|
81 |
_LIT( KCaAttrInstallationTime, "installationTime");
|
88
|
82 |
_LIT( KCaTypeTemplatedApp, "templatedApplication" );
|
92
|
83 |
_LIT( KCaAttrAppType, "apptype");
|
|
84 |
_LIT( KCaAttrAppTypeValueJava, "java");
|
|
85 |
_LIT( KCaAttrAppTypeValueCWRT, "cwrt");
|
|
86 |
_LIT( KCaAttrAppTypeValueNative, "native");
|
|
87 |
_LIT( KCaAttrComponentId, "component_id" );
|
|
88 |
_LIT( KCaAttrAppSettingsPlugin, "app_settings_plugin");
|
|
89 |
// app settings plugin for java apps
|
|
90 |
_LIT( KCaAttrJavaAppSettingsPluginValue,
|
|
91 |
"/resource/qt/plugins/appsettings/javaapplicationsettingsview.qtplugin");
|
|
92 |
_LIT( KCaAttrAppWidgetUri, "widget:uri");
|
93
|
93 |
_LIT( KCaAttrAppWidgetServiceXml, "widget:servicexml");
|
|
94 |
|
92
|
95 |
_LIT( KCaAttrAppWidgetUriCWRTValue, "wrtwidgetuiplugin");
|
|
96 |
_LIT( KCaAttrAppWidgetParamWebAppId, "widgetparam:webAppId");
|
|
97 |
|
|
98 |
_LIT( KCaAppGroupName, "appgroup_name" );
|
85
|
99 |
|
94
|
100 |
_LIT( KCollectionIconFileName, "qtg_large_applications_user");
|
|
101 |
|
85
|
102 |
const TInt KGranularityOne = 1;
|
|
103 |
const TInt KUidChars = 10;
|
|
104 |
const TInt KDefaultGranularity = 5;
|
|
105 |
const TInt KDefaultExpandSize = 512;
|
|
106 |
const TInt KCaMaxAttrLenght = 255;
|
|
107 |
// MMC related constants
|
|
108 |
_LIT( KCaAttrMmcId, "mmc_id" );
|
|
109 |
_LIT( KCaMassStorage, "mass_storage" );
|
|
110 |
_LIT( KCaMmcHistoryFname, "mmchistory" );
|
93
|
111 |
// max(KCaMassStorage.Length(), KUidChars)
|
|
112 |
const TInt KMassStorageIdLength = 12;
|
85
|
113 |
|
|
114 |
//Ca constants
|
|
115 |
// ---------------------------------------------------------
|
|
116 |
|
|
117 |
|
|
118 |
// CONSTANTS
|
93
|
119 |
|
85
|
120 |
const TUid KSatUid =
|
|
121 |
{
|
|
122 |
0x101F4CE0
|
|
123 |
};
|
|
124 |
|
87
|
125 |
const TUid KHsAppUid =
|
|
126 |
{
|
|
127 |
0x20022F35
|
|
128 |
};
|
92
|
129 |
|
93
|
130 |
const TUid KMidletApplicationTypeUid =
|
92
|
131 |
{
|
93
|
132 |
0x10210E26
|
92
|
133 |
};
|
|
134 |
|
93
|
135 |
const TUid KCWRTApplicationTypeUid =
|
92
|
136 |
{
|
93
|
137 |
0x200267DC
|
92
|
138 |
};
|
|
139 |
|
85
|
140 |
const TInt KCenRepBufferSize = 255;
|
|
141 |
//
|
|
142 |
// Attributes commonly used for all items.
|
|
143 |
// These are the attributes that are normally used when displaying a menu of items
|
|
144 |
// in a menu UI. To get a consistent look of various items, it is recommended that
|
|
145 |
// some of these attributes are properly set (at least one of the xxx_name, and
|
|
146 |
// some kind of icon information for non-applications).
|
|
147 |
// Note, however, that none of these is guaranteed to be set, or be used by a menu UI.
|
|
148 |
// Menu clients always need to check that the necessary attributes are present.
|
|
149 |
//
|
|
150 |
_LIT( KCaAttrLongName, "long_name" ); ///< Long name.
|
94
|
151 |
_LIT( KCaComponentId, "component_id" ); ///< Long name.
|
85
|
152 |
|
|
153 |
// Built-in types and attributes.
|
|
154 |
//
|
|
155 |
//
|
|
156 |
// Command strings.
|
|
157 |
//
|
|
158 |
|
|
159 |
_LIT8( KCaCmdOpen, "open" ); ///< Open item.
|
|
160 |
_LIT8( KCaCmdRemove, "remove" ); ///< Remove item.
|
|
161 |
_LIT8( KCaCmdClose, "close" ); ///< Close item.
|
|
162 |
|
|
163 |
|
|
164 |
//Properties in database
|
|
165 |
|
|
166 |
_LIT( KCaDbPropVersion, "Version" ); /// db version
|
|
167 |
_LIT( KCaDbPropLanguage, "Language" ); // language of ca strings in db
|
93
|
168 |
_LIT( KCaDbPropQMfile, "QMfile" ); // prefix of qm file used in translation
|
85
|
169 |
|
|
170 |
|
|
171 |
|
|
172 |
_LIT(KComma, ",");
|
|
173 |
// Prefix hex format
|
|
174 |
_LIT(KHexFormat, "0x%X");
|
|
175 |
|
|
176 |
#endif // CADEF_H
|