|
1 /* |
|
2 * Copyright (c) 2002-2006 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CFCONSTANTS_H__ |
|
20 #define __CFCONSTANTS_H__ |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 // CONSTANTS |
|
26 // The name of the context database |
|
27 _LIT( KContextDbName, "context.db" ); |
|
28 |
|
29 // The location of the context database |
|
30 _LIT( KCEpoc32exData, "C:\\epoc32ex\\data\\" ); |
|
31 |
|
32 /** |
|
33 * Defines the string for carriage return & line feed pair (for ToStringLC() |
|
34 * method). |
|
35 */ |
|
36 _LIT( KCrLf, "\r\n" ); |
|
37 |
|
38 /** |
|
39 * Defines the tabulator literal for indenting string output (for ToStringLC() |
|
40 * method). |
|
41 */ |
|
42 //_LIT( KTab, "\t" ); |
|
43 |
|
44 // Output format of timestamp. |
|
45 _LIT( KTimeOutputFormat, "%/0%1%/1%2%/2%3%/3 %-B%:0%J%:1%T%:2%S.%C%+B" ); |
|
46 |
|
47 |
|
48 // The size of the SQL buffer in the Silo |
|
49 const TInt KCFContextSiloSQLBufferSize = 500; |
|
50 |
|
51 /** |
|
52 * Context's confidence change magnitude required for store decision. |
|
53 * When only the confidence of the context has changed, it must change at least |
|
54 * the amount of this constant to be stored by the data manager. |
|
55 * Otherwise, the context is not stored! |
|
56 */ |
|
57 const TInt KCFContextSiloRequiredConfidenceChangeMagnitudeOfContext = 20; |
|
58 |
|
59 /** |
|
60 * Treshold value defining when the database should be compacted. |
|
61 * This should be compared against a counter for database operations that change |
|
62 * the contents of the database, i.e. insert & update. When the treshold value |
|
63 * is reached, the database should be compacted. |
|
64 */ |
|
65 const TInt KCFContextSiloDatabaseCompactTreshold = 100; |
|
66 |
|
67 /** |
|
68 * Default value of the confidence |
|
69 */ |
|
70 const TInt KCFContextObjectDefaultConfidence = 100; |
|
71 |
|
72 /** |
|
73 * Default value of the visibility |
|
74 */ |
|
75 const TInt KCFContextObjectDefaultVisibility = 0; |
|
76 |
|
77 /** |
|
78 * Default value of the priority |
|
79 */ |
|
80 const TInt KCFContextObjectDefaultPriority = 0; |
|
81 |
|
82 |
|
83 // ScriptEngineSession |
|
84 _LIT8( KSeparatorChar, "-" ); |
|
85 |
|
86 // SEServer and ScriptEngine |
|
87 _LIT( KCFScriptEngineDataFolderPath, "\\System\\Apps\\ScriptEngine\\" ); |
|
88 |
|
89 // SEServer |
|
90 _LIT( KCFSettingsFileName, "SESettings.dat" ); |
|
91 _LIT( KEmulatorSettingsFilename, "C:\\System\\Apps\\ScriptEngine\\SESettings.dat" ); |
|
92 _LIT( KEmulatorServerFilename, "C:\\System\\Programs\\SEServer.dll" ); |
|
93 |
|
94 |
|
95 |
|
96 #endif // __CFCONSTANTS_H__ |
|
97 |
|
98 // End of File |