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