72
|
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".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
/**
|
|
15 |
*
|
|
16 |
* Header for TE_RootServerSuite class. This is the container
|
|
17 |
* class for all the RConnection multihoming test steps
|
|
18 |
*
|
|
19 |
*/
|
|
20 |
#if (!defined __TE_RootServerSUITE_H__)
|
|
21 |
#define __TE_RootServerSUITE_H__
|
|
22 |
|
|
23 |
#include <test/TestExecuteServerBase.h>
|
|
24 |
#include "c32root.h"
|
|
25 |
|
|
26 |
class CTestStepRootServer;
|
|
27 |
|
|
28 |
class CTE_RootServerServer : public CTestServer
|
|
29 |
{
|
|
30 |
public:
|
|
31 |
static CTE_RootServerServer* NewL();
|
|
32 |
virtual CTestStep* CreateTestStep(const TDesC& aStepName);
|
|
33 |
|
|
34 |
|
|
35 |
TInt StartRootServer();
|
|
36 |
TBool ShutdownRootServer();
|
|
37 |
|
|
38 |
RRootServ& RootSess()
|
|
39 |
{
|
|
40 |
return iRootServer;
|
|
41 |
}
|
|
42 |
TInt NextServerNumber()
|
|
43 |
{
|
|
44 |
return iNextServerNumber++;
|
|
45 |
}
|
|
46 |
// this should be a pure virtual so every test ddl
|
|
47 |
// has to provide a version but for now defaults to ?.?
|
|
48 |
virtual TPtrC GetVersion( void );
|
|
49 |
|
|
50 |
private:
|
|
51 |
RRootServ iRootServer;
|
|
52 |
TInt iNextServerNumber;
|
|
53 |
|
|
54 |
};
|
|
55 |
|
|
56 |
// CSelfPopScheduler - thin extension of CActiveScheduler to give useful installation & removal cleanup-stack behaviour
|
|
57 |
class CSelfPopScheduler : public CActiveScheduler
|
|
58 |
{
|
|
59 |
public:
|
|
60 |
static CSelfPopScheduler* CreateLC();
|
|
61 |
operator TCleanupItem();
|
|
62 |
private:
|
|
63 |
static void Cleanup(TAny* aItem);
|
|
64 |
};
|
|
65 |
|
|
66 |
#endif
|