diff -r f5d4820de50d -r 4fde310f06fe stif/TestEngine/inc/TestEngine.h --- a/stif/TestEngine/inc/TestEngine.h Tue May 25 18:01:01 2010 +0300 +++ b/stif/TestEngine/inc/TestEngine.h Mon Jun 14 11:37:33 2010 +0300 @@ -59,20 +59,25 @@ }; // Struct to Test report settings -class TTestReportSettings +NONSHARABLE_CLASS(CTestReportSettings) + :public CBase { public: + + /** + * NewL is two-phased constructor. + */ + static CTestReportSettings* NewL(); - TTestReportSettings(){ iCreateTestReport = ETrue; - iPath = NULL; - iName = NULL; - iFormat = CStifLogger::ETxt; - iOutput = CStifLogger::EFile; - iOverwrite = ETrue; - iXML = EFalse; - } - ~TTestReportSettings(){ delete iPath; delete iName; } + ~CTestReportSettings(); + + private: + CTestReportSettings(); + /** + * By default Symbian OS constructor is private. + */ + void ConstructL(); public: @@ -231,7 +236,7 @@ public: // Data // Test report settings - TTestReportSettings iTestReportSettings; + CTestReportSettings* iTestReportSettings; // Logger overwrite settings TLoggerSettings iLoggerSettings;