commsprocess/commsrootserverconfig/ts_rootserver/TestSuiteRootServer.h
changeset 72 ae47d0499bee
parent 68 5da8188e392b
child 77 c9776eadbffd
equal deleted inserted replaced
68:5da8188e392b 72:ae47d0499bee
     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 // This contains CTestSuiteRootServer 
       
    15 // This is the container class for all the RootServer test steps
       
    16 // 
       
    17 //
       
    18 
       
    19 #if (!defined __TESTSUITROOTSERVER_H__)
       
    20 #define __TESTSUITROOTSERVER_H__
       
    21 
       
    22 #include <networking/testsuite.h>
       
    23 #include <c32root.h>
       
    24 
       
    25 class  CTestSuiteRootServer : public CTestSuite
       
    26 {
       
    27 public:
       
    28 	void InitialiseL( void );
       
    29 	CTestSuiteRootServer();
       
    30 	~CTestSuiteRootServer();
       
    31 	
       
    32 	void AddTestStepL( CTestStepRootServer * ptrTestStep );
       
    33 	TPtrC GetVersion( void );
       
    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 
       
    47 //	RRootServ iRootServer;
       
    48 
       
    49 
       
    50 private:
       
    51 	RRootServ iRootServer;
       
    52 	TInt iNextServerNumber;
       
    53 };
       
    54 
       
    55 
       
    56 
       
    57 // CSelfPopScheduler - thin extension of CActiveScheduler to give useful installation & removal cleanup-stack behaviour
       
    58 class CSelfPopScheduler : public CActiveScheduler
       
    59 	{
       
    60 public:
       
    61 	static CSelfPopScheduler* CreateLC();
       
    62 	operator TCleanupItem();
       
    63 private:
       
    64 	static void Cleanup(TAny* aItem);
       
    65 	};
       
    66 #endif /* __TESTSUITROOTSERVER_H__ */
       
    67