testexecmdw/tef/tef/utils/inc/testexecutelogbase.h
branchRCL_3
changeset 3 9397a16b6eb8
parent 1 6edeef394eb7
equal deleted inserted replaced
1:6edeef394eb7 3:9397a16b6eb8
     1 /*
       
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "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".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file TestExecuteLogBase.h
       
    22 */
       
    23 
       
    24 #if !(defined __TESTEXECUTE_LOG_BASE_H__)
       
    25 #define __TESTEXECUTE_LOG_BASE_H__
       
    26 
       
    27 #include <e32base.h>
       
    28 #include <test/testexecutelog.h>
       
    29 #include <test/testexecutepipslog.h>
       
    30 #include <test/rfilelogger.h>
       
    31 #include <test/blockitems.h>
       
    32 
       
    33 // Abstract base class for all logging operations for TEF
       
    34 class MTestExecuteLogBase
       
    35 /**
       
    36 @internalComponent
       
    37 @test
       
    38 */
       
    39 	{
       
    40 public:
       
    41 	virtual ~MTestExecuteLogBase() {};
       
    42 	IMPORT_C virtual void InitialiseLoggingL(const TDesC& aScriptFilePath, TBool aSeparateLogFileMode, TInt aLogLevel) = 0;
       
    43 	IMPORT_C virtual void TerminateLoggingL(const TInt aCommentedCommandsCount, const TInt aRemotePanicsCount, const TInt aRunScriptFailCount) = 0;
       
    44 	IMPORT_C virtual void LogExtra(const TText8* aFile, TInt aLine, TInt aSeverity,TRefByValue<const TDesC> aFmt,...) = 0;
       
    45 	IMPORT_C virtual void LogTestCaseResult(const TDesC& aFile, TInt aLine, TInt aSeverity, const TDesC& aCommand, const TDesC& aTestCaseName, TVerdict aResult) = 0;
       
    46 	IMPORT_C virtual void LogToXml(const TText8* aFile, TInt aLine, TInt aSeverity,const TDesC& aCommandName, const TInt aNumberOfParams, TExtraLogField* aLogFields) = 0;
       
    47 	IMPORT_C virtual void LogToXml(const TText8* aFile, TInt aLine, TInt aSeverity,const TDesC& aCommandName) = 0;
       
    48 	IMPORT_C virtual void PrintCurrentScriptLine(TDes& aCurrentScriptLine) = 0;
       
    49 	IMPORT_C virtual void LogResult(TVerdict aResult, const TDesC& aPanicString, TInt aScriptLineNumber,const TDesC& aCommand,const TDesC& aScriptFile,TInt aSeverity) = 0;
       
    50 	IMPORT_C virtual TVerdict LogBlock( TTEFItemArray* aItemArray, const TInt aScriptLineNumber ) = 0;
       
    51 	IMPORT_C virtual void SetLoggerOptions(TInt aLogMode) = 0;
       
    52 	IMPORT_C virtual TInt Connect() = 0;
       
    53 	IMPORT_C virtual void Close() = 0;
       
    54 	IMPORT_C virtual RTestExecuteLogServ& HtmlLogger() = 0;
       
    55 	IMPORT_C virtual RTestExecutePIPSLogServ& PIPSLogger() = 0;
       
    56 	IMPORT_C virtual RFileFlogger& XmlLogger() = 0;
       
    57 	IMPORT_C virtual TInt ShareAuto() = 0;
       
    58 	IMPORT_C virtual void Write(const TDesC& aLogBuffer) = 0;
       
    59 	IMPORT_C virtual void WriteFormat(TRefByValue<const TDesC> aFmt,...) = 0;
       
    60 	IMPORT_C virtual void Write(const TDesC8& aLogBuffer) = 0;
       
    61 	IMPORT_C virtual void WriteFormat(TRefByValue<const TDesC8> aFmt,...) = 0;
       
    62 	};
       
    63 
       
    64 #endif