traceservices/tracefw/ost_trace_api/unit_test/te_ost/inc/te_suite_step_base.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 22 Jan 2010 11:06:30 +0200
changeset 0 08ec8eefde2f
child 23 26645d81f48d
permissions -rw-r--r--
Revision: 201003 Kit: 201003

// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//



/**
 @file te_suite_step_base.h
 @internalTechnology
*/

#ifndef TE_SUITE_STEP_BASE__
#define TE_SUITE_STEP_BASE__
#include <TestExecuteStepBase.h>
#include "te_tracer.h"
#include "te_logger.h"


/****************************************************************************
* The reason to have a new step base is that it is very much possible
* that the all individual test steps have project related common variables
* and members
* and this is the place to define these common variable and members.
*
****************************************************************************/
class TTraceConfigs;

class CTe_UTraceSuiteStepBase : public CTestStep
	{
public:
	virtual ~CTe_UTraceSuiteStepBase();
	CTe_UTraceSuiteStepBase();
	virtual TVerdict doTestStepPreambleL();
	virtual TVerdict doTestStepPostambleL();

public: 
	//Please add your class members which will be common to all individual test steps:
protected:
	TInt StartLoggingL(TTraceConfigs& aTraceData);
	TInt StopLogging();
	void SetLogFilename(const TDesC& aFilename);
	void DeleteLogFile();
protected:
	TTraceTester	iTraceTester;
	TTraceConfigs	iTraceData;
	TLogger 		iLogger;
private:
	TInt ReadGeneralConfigs();	
	};

#endif //TE_SUITE_STEP_BASE__