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_SERVER_H__)
25 #define __UPS_TEST_SERVER_H__
28 #include <test/tefexportconst.h>
29 #include <ups/upsclient.h>
30 #include "tupstesteractive.h"
31 #include "tups_clientapi_sysserver.h"
34 class CUPSTestServer : public CServer2
37 static CUPSTestServer* NewL(const TDesC& serverName);
39 IMPORT_C virtual ~CUPSTestServer();
40 IMPORT_C CSession2* NewSessionL(const TVersion& aVersion,const RMessage2& aMessage) const;
41 IMPORT_C virtual void ConstructL(const TDesC& aName);
43 inline const TDesC& Name() const {return iServerName;};
45 IMPORT_C CUPSTestServer();
46 inline void IncSessionCount() {++iSessionCount;};
50 TBuf<KMaxTestExecuteNameLength> iServerName;
53 UserPromptService::RUpsSession iUpsSession;
58 class CUPSTestSession : public CSession2
63 static CUPSTestSession* NewL(const CUPSTestServer *aServer, const RMessage2& aMessage);
64 virtual void ServiceL(const RMessage2& aMessage);
66 void CTUPSTesterActiveComplete(CTUPSTesterActive *aTester);
68 void ConstructL(CUPSTestServer *aServer, const RMessage2& aMessage);
70 IMPORT_C CUPSTestSession();
71 IMPORT_C virtual ~CUPSTestSession();
73 void makeRequestToUPsL(const RMessage2& aMessage);
75 CTUPSTesterActive *iUpsTestActiveObj;
78 UserPromptService::RUpsSubsession iUpsSubsession;
79 TUpsTestServiceRequestData iRequestData;