os/security/authorisation/userpromptservice/test/include/tups_clientapi_sysserver.h
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.
24 #if !(defined UPS_TEST_CLIENT_H)
25 #define UPS_TEST_CLIENT_H
28 #include <test/tefexportconst.h>
29 #include <ups/upsclient.h>
32 EUpsTest_ConnectServer,
33 EUpsTest_UseTestService, // Simulates the use of a service provided by the test system server.
34 EUpsTest_OpenSession, // Opens subsession to test system server.
35 EUpsTest_CloseSession, // Closes subsession to test system server.
36 EUpsTest_GetServerSid, // returns sid of server.
39 class TUpsTestServiceRequestData
42 inline TUpsTestServiceRequestData();
44 TBuf8<50> iOpaqueData;
45 TBool iMeasureResponceTime;
47 TBuf<60> iDestination;
52 inline TUpsTestServiceRequestData::TUpsTestServiceRequestData():
53 iOpaquePresent(0),iOpaqueData(0),iMeasureResponceTime(0),iServiceUid(TUid::Uid(0)),iDestination(0),iCancelRequest(0),iPlatSecPass(0)
59 class TUpsTestServiceReturn
62 inline TUpsTestServiceReturn();
63 TUpsDecision iDecision;
65 TBuf<50> iErrorMessage;
66 TUint32 iRequestDuration;
69 inline TUpsTestServiceReturn::TUpsTestServiceReturn():
70 iDecision(TUpsDecision(EUpsDecNo)),iError(0),iErrorMessage(0)
74 class RUpsTestServ : public RSessionBase
78 IMPORT_C TInt Connect(const TDesC& aServerName, TBool aDebugMode = EFalse);
79 IMPORT_C const TDesC& ServerName() const;
83 TBuf<KMaxTestExecuteNameLength> iServerName;
84 TVersion Version() const;
87 class RUpsTestSession : public RSubSessionBase
91 IMPORT_C TInt Open(RUpsTestServ& aServ);
92 IMPORT_C TInt UseTestService(TUpsTestServiceRequestData& aTestServiceRequestData,TUpsTestServiceReturn& aServiceCompoundReturn);
93 IMPORT_C void Close(void);
94 IMPORT_C TInt GetServerSid();
95 IMPORT_C void ShutdownUPS(void);