Update contrib.
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * The functions defined in this file provide constant data which is
16 * used by both the client and server implementations.
31 #include "upscommon.h"
34 namespace UserPromptService
36 inline TVersion Version()
38 This function is defined because there is no literal constructor for TVersion.
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.
48 TVersion v(KUpsVerMajor, KUpsVerMinor, KUpsVerBuild);
52 inline TUidType ServerImageFullUid()
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.
59 @return TUidType The server executable's full UID.
62 TUidType uidType(KExecutableImageUid, KNullUid, KUpsServerUid);
65 } // namespace UserPromptService
67 #endif // #ifndef UPSCOMMON_INL