|
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 * The functions defined in this file provide constant data which is |
|
16 * used by both the SCR Helper server and client side implementations. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 /** |
|
22 @file |
|
23 @internalComponent |
|
24 @released |
|
25 */ |
|
26 |
|
27 #ifndef SCRHELPERCOMMON_INL |
|
28 #define SCRHELPERCOMMON_INL |
|
29 |
|
30 #include <usif/scr/scrcommon.h> |
|
31 |
|
32 namespace Usif |
|
33 { |
|
34 inline TVersion ScrHelperServerVersion() |
|
35 /** |
|
36 This function is defined because there is no literal constructor for TVersion. |
|
37 |
|
38 @return Defines a version number which the client side code |
|
39 can use to open the SCR Helper server. If the client code |
|
40 was built with a higher version number, then it cannot |
|
41 open the SCR Helper server. This ensures that a client only |
|
42 talks to the SCR Helper server version is at least as high as its own. |
|
43 */ |
|
44 { |
|
45 TVersion version(KScrHelperServerVersionMajor, KScrHelperServerVersionMinor, KScrHelperServerVersionBuild); |
|
46 return version; |
|
47 } |
|
48 |
|
49 inline TUidType ScrHelperServerImageFullUid() |
|
50 /** |
|
51 This function is defined because there is no literal constructor |
|
52 for TUidType. It returns the SCR Helper server executable's UID, which is used |
|
53 to ensure the client side code launches the correct server process, as opposed |
|
54 to another application which uses the same executable name. |
|
55 |
|
56 @return TUidType The SCR Helper server executable's full UID. |
|
57 */ |
|
58 { |
|
59 TUidType typ(KExecutableImageUid, KNullUid, KScrHelperServerUid3); |
|
60 return typ; |
|
61 } |
|
62 |
|
63 } // End of namespace Usif |
|
64 |
|
65 #endif // SCRHELPERCOMMON_INL |