|
1 /* |
|
2 * Copyright (c) 2007-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 client and server implementations. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 /** |
|
22 @file |
|
23 @internalComponent |
|
24 @released |
|
25 */ |
|
26 |
|
27 |
|
28 #ifndef UPSCOMMON_INL |
|
29 #define UPSCOMMON_INL |
|
30 |
|
31 #include "upscommon.h" |
|
32 |
|
33 |
|
34 namespace UserPromptService |
|
35 { |
|
36 inline TVersion Version() |
|
37 /** |
|
38 This function is defined because there is no literal constructor for TVersion. |
|
39 |
|
40 @return Defines a version number which the client |
|
41 can use to open the server. If the client |
|
42 was built with a higher version number, then |
|
43 it cannot open the server. This ensures that |
|
44 a client only talks to a server whose version |
|
45 is at least as high as its own. |
|
46 */ |
|
47 { |
|
48 TVersion v(KUpsVerMajor, KUpsVerMinor, KUpsVerBuild); |
|
49 return v; |
|
50 } |
|
51 |
|
52 inline TUidType ServerImageFullUid() |
|
53 /** |
|
54 This function is defined because there is no literal constructor |
|
55 for TUidType. It returns the server executable's UID, which is used |
|
56 to ensure the client launches the correct server process, as opposed |
|
57 to another application which uses the same executable name. |
|
58 |
|
59 @return TUidType The server executable's full UID. |
|
60 */ |
|
61 { |
|
62 TUidType uidType(KExecutableImageUid, KNullUid, KUpsServerUid); |
|
63 return uidType; |
|
64 } |
|
65 } // namespace UserPromptService |
|
66 |
|
67 #endif // #ifndef UPSCOMMON_INL |
|
68 |