Update contrib.
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __SIMULPROCSERVER_H__
17 #define __SIMULPROCSERVER_H__
20 #include <testframework.h>
30 class CSimulProcTestStep
33 virtual void StartProcessing(TRequestStatus& aStatus)= 0;
34 virtual TVerdict EndProcessingAndReturnResult(TDes8& aMessage) = 0;
35 IMPORT_C virtual ~CSimulProcTestStep();
37 IMPORT_C CSimulProcTestStep();
42 class CSimulProcServer : public CServer2
45 IMPORT_C virtual CSession2* NewSessionL(const TVersion& aVersion,const RMessage2& aMessage) const;
46 // IMPORT_C virtual void ConstructL(const TDesC& aName);
48 virtual CSimulProcTestStep* CreateTestStep(const TDesC& aStepName) const = 0;
49 IMPORT_C virtual void SessionClosed();
50 IMPORT_C virtual ~CSimulProcServer();
53 IMPORT_C CSimulProcServer();
63 class CSimulProcSession : public CSession2
66 class CActiveCallback : public CActive
69 CActiveCallback(const RMessage2& aMessage);
75 TRequestStatus& ActiveStatus();
78 const RMessage2& iMessage;
82 IMPORT_C CSimulProcSession();
83 IMPORT_C virtual ~CSimulProcSession();
84 IMPORT_C virtual void ServiceL(const RMessage2& aMessage);
86 CSimulProcTestStep* iTestStep;
87 CActiveCallback* iActiveCallback;