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 * Data structures and values which are used by both client and server
16 * implementations, but which are not exposed to the client.
27 #ifndef SCSTESTCOMMON_H
28 #define SCSTESTCOMMON_H
33 /** The server name, to which clients connect. */
34 _LIT(KServerName, "ScsTest");
36 const TInt KScsTestVerMajor = 1; ///< SCS test server version major component.
37 const TInt KScsTestVerMinor = 0; ///< SCS test server version minor component.
38 const TInt KScsTestVerBuild = 0; ///< SCS test server version build number.
40 inline TVersion Version();
42 /** Executable image which runs the server process. */
43 _LIT(KServerImageName, "scstestserver.exe");
45 /** SCS test server SID. */
46 const TUid KScsTestServerUid = {0x10283512};
48 inline TUidType ServerImageFullUid();
51 /** Functions supported by SCS test session. */
54 This unused function is provided for test code to confirm the
55 session handles unrecognized function identifiers correctly.
58 ESessDouble = 1, ///< Doubles a client-side TInt.
59 ESessTreble = 2, ///< Asynchronously trebles a client-side TInt.
60 ESessNukeServer = 4, ///< Call with no arguments which panics server
61 ESessSubsessFromInt = 4 ///< Create subsession curried on an integer value.
64 enum TSubsessionFunction
65 /** Functions supported by test server subsession. */
68 This function identifier is only defined to ensure the test subsession
69 implementation correctly handles unrecognized functions.
72 ESubsessQuadruple = 1, ///< Quadruple the curried value.
73 ESubsessTreble ///< Asynchronously trebles a client-side TInt.
76 /** Delay before the asynchronous treble request is completed after construction. */
77 static const TInt KTrebleTimerDelayUs = 5 * 1000 * 1000;
79 /** The server is shut down if no sessions have been connected for this amount of time. */
80 const TInt KShutdownPeriodUs = 2 * 1000 * 1000;
81 } // namespace UserPromptService
84 inline T TAnyPtrToFuncPtr(TAny* aPtr);
87 #include "scstestcommon.inl"
89 #endif // SCSTESTCOMMON_H