1 /* |
|
2 * Copyright (c) 2008-2009 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 the License "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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalComponent |
|
22 @released |
|
23 */ |
|
24 |
|
25 #ifndef SCRHELPERCOMMON_H |
|
26 #define SCRHELPERCOMMON_H |
|
27 |
|
28 #include <e32cmn.h> |
|
29 #include <e32std.h> |
|
30 #include <e32ver.h> |
|
31 #include <e32uid.h> |
|
32 #include "usiflog.h" |
|
33 |
|
34 namespace Usif |
|
35 { |
|
36 /** Identifies the Scr Helper Symbian OS Server. */ |
|
37 _LIT(KScrHelperServerName, "!ScrHelper"); |
|
38 |
|
39 /** |
|
40 Executable which hosts SCR Helper Server. Required to launch the process. |
|
41 @see KScrHelperServerUid3 |
|
42 */ |
|
43 _LIT(KScrHelperServerImg, "scrhelperserver.exe"); |
|
44 |
|
45 /** |
|
46 Hosting the executable's secure ID. Required to launch the process. |
|
47 @see KScrHelperServerImg |
|
48 */ |
|
49 static const TUid KScrHelperServerUid3 = {0x102866F2}; |
|
50 |
|
51 static const TInt KScrHelperServerVersionMajor = 1; ///< SCR Helper Server version major component. |
|
52 static const TInt KScrHelperServerVersionMinor = 0; ///< SCR Helper Server version minor component. |
|
53 static const TInt KScrHelperServerVersionBuild = 0; ///< SCR Helper Server version build component. |
|
54 |
|
55 enum TScrHelperServerMessages |
|
56 /** |
|
57 Functions supported by a SCR Helper Server session. |
|
58 */ |
|
59 { |
|
60 EGetDatabaseFileHandle, |
|
61 EGetJournalFileHandle |
|
62 }; |
|
63 |
|
64 /** The path of SCR database file */ |
|
65 _LIT(KScrDatabaseFilePath, "!:\\sys\\install\\scr\\scr.db"); |
|
66 |
|
67 /** The path of SCR database journal file */ |
|
68 _LIT(KScrJournalFilePath, "!:\\sys\\install\\scr\\scr.db-journal"); |
|
69 |
|
70 /** The full path of the default SCR database stored in ROM. */ |
|
71 _LIT(KScrDbRomPath,"z:\\sys\\install\\scr\\provisioned\\scr.db"); |
|
72 |
|
73 /** |
|
74 Delay in microseconds before the SCR Helper Server is shut down, |
|
75 after the last remaining session has been closed. |
|
76 */ |
|
77 const TInt KScrHelperServerShutdownPeriod = 2 * 1000 * 1000; |
|
78 |
|
79 } // namespace Usif |
|
80 |
|
81 #include "scrhelpercommon.inl" |
|
82 |
|
83 #endif /* SCRHELPERCOMMON_H */ |
|