diff -r bbd31066657e -r 8bb370ba6d1d testexecfw/stf/stffw/logger/STFLoggingServer/inc/HtmlLogger.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testexecfw/stf/stffw/logger/STFLoggingServer/inc/HtmlLogger.h Fri Apr 09 10:46:28 2010 +0800 @@ -0,0 +1,149 @@ +/* +* Copyright (c) 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: This file contains the header file of the CHtmlLogger. +* +*/ + +#ifndef HTMLLOGGER_H +#define HTMLLOGGER_H + +// INCLUDES +#include "StifLoggerBase.h" +#include "FileOutput.h" +#include "RDebugOutput.h" + +// CONSTANTS +// None + +// MACROS +// None + +// DATA TYPES +// None + +// FUNCTION PROTOTYPES +// None + +// FORWARD DECLARATIONS +class COutput; + +// CLASS DECLARATION + +// DESCRIPTION +// CHtmlLogger is a STIF Test Framework StifLoggerBase class. +// Class contains a file logging operations. + +class CHtmlLogger + :public CStifLoggerBase + { + public: // Enumerations + + private: // Enumerations + + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CHtmlLogger* NewL( const TDesC& aTestPath, + const TDesC& aTestFile, + CStifLogger::TLoggerType aLoggerType, + CStifLogger::TOutput aOutput, + TBool aOverWrite, + TBool aWithTimeStamp, + TBool aWithLineBreak, + TBool aWithEventRanking, + TBool aThreadIdToLogFile, + TBool aCreateLogDir, + TInt aStaticBufferSize, + TBool aUnicode, + TInt aThreadId); + + /** + * Destructor. + */ + ~CHtmlLogger(); + + public: // New functions + + /** + * Initialize html page. + */ + void StartHtmlPage( const TDesC& aTestFile, TBool aThreadIdToLogFile ); + + /** + * Finalize html page. + */ + void EndHtmlPage(); + + /** + * Start style information logging. + */ + void StyleStarting( TInt aStyle, TBool& aTimeStamp, + TBool& aEventRanking ); + + /** + * End style information logging. + */ + void StyleEnding( TInt aStyle ); + + /** + * Send style information and data to the output module. + * 16 bit. + */ + TInt Send( TInt aStyle, const TDesC& aData ); + + /** + * Send style information and data to the output module. + * 8 bit. + */ + TInt Send( TInt aStyle, const TDesC8& aData ); + + public: // Functions from base classes + + protected: // New functions + + protected: // Functions from base classes + + private: + + /** + * C++ default constructor. + */ + CHtmlLogger( COutput* output, + const TDesC& aTestFile, + TBool aThreadIdToLogFile ); + + /** + * By default Symbian OS constructor is private. + */ + void ConstructL(); + + public: // Data + + protected: // Data + + private: // Data + + public: // Friend classes + + protected: // Friend classes + + private: // Friend classes + + }; + +#endif // HTMLLOGGER_H + +// End of File