diff -r 76f9aaeefbab -r e13acd883fbe common/tools/ats/smoketest/lbs/common/inc/ctlbsclientlog.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/common/tools/ats/smoketest/lbs/common/inc/ctlbsclientlog.h Tue Nov 10 13:50:58 2009 +0000 @@ -0,0 +1,97 @@ +/* +* Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Symbian Foundation License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + + +#ifndef __CT_LBS_CLIENT_LOG_H__ +#define __CT_LBS_CLIENT_LOG_H__ + +// INCLUDES +#include +#include "TestExecuteStepBase.h" + +// CONSTANTS + +// FORWARD DECLARATIONS + +// CLASS DECLARATION + +/** +* Implements the CLbsLog interface, and puts log entries in TEF log. +*/ +class CT_LbsClientLog : public CBase + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + IMPORT_C static CT_LbsClientLog* NewL(CTestExecuteLogger& aLogger); + + /** + * Two-phased constructor. + */ + IMPORT_C static CT_LbsClientLog* NewLC(CTestExecuteLogger& aLogger); + + /** + * Destructor. + */ + virtual ~CT_LbsClientLog(); + + public: // New functions + + void SetLogger(CTestExecuteLogger& aLogger){ iLogger = aLogger; }; + CTestExecuteLogger& Logger() {return iLogger;}; + + public: // Functions from base classes + + /** + * Add a line to the log file. + * @param aLine The line of text to append. + */ + void Put(const TDesC& aLine); + + /** + * Add an error line to the log file. + * @param aLine The error line of text to append. + */ + void PutError(const TDesC& aLine); + + private: + + /** + * C++ default constructor. + */ + CT_LbsClientLog(); + + /** + * By default EPOC constructor is private. + */ + void ConstructL(CTestExecuteLogger& aLogger); + + // By default, prohibit copy constructor + CT_LbsClientLog( const CT_LbsClientLog& ); + // Prohibit assigment operator + CT_LbsClientLog& operator= ( const CT_LbsClientLog& ); + + private: // Data + CTestExecuteLogger iLogger; + }; + +#endif // __CT_LBS_CLIENT_LOG_H__ + +// End of File