|
1 /* |
|
2 * Copyright (c) 2001-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 the License "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CT_LBS_CLIENT_LOG_H__ |
|
21 #define __CT_LBS_CLIENT_LOG_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include "TestExecuteStepBase.h" |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Implements the CLbsLog interface, and puts log entries in TEF log. |
|
35 */ |
|
36 class CT_LbsClientLog : public CBase |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 */ |
|
43 IMPORT_C static CT_LbsClientLog* NewL(CTestExecuteLogger& aLogger); |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 */ |
|
48 IMPORT_C static CT_LbsClientLog* NewLC(CTestExecuteLogger& aLogger); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CT_LbsClientLog(); |
|
54 |
|
55 public: // New functions |
|
56 |
|
57 void SetLogger(CTestExecuteLogger& aLogger){ iLogger = aLogger; }; |
|
58 CTestExecuteLogger& Logger() {return iLogger;}; |
|
59 |
|
60 public: // Functions from base classes |
|
61 |
|
62 /** |
|
63 * Add a line to the log file. |
|
64 * @param aLine The line of text to append. |
|
65 */ |
|
66 void Put(const TDesC& aLine); |
|
67 |
|
68 /** |
|
69 * Add an error line to the log file. |
|
70 * @param aLine The error line of text to append. |
|
71 */ |
|
72 void PutError(const TDesC& aLine); |
|
73 |
|
74 private: |
|
75 |
|
76 /** |
|
77 * C++ default constructor. |
|
78 */ |
|
79 CT_LbsClientLog(); |
|
80 |
|
81 /** |
|
82 * By default EPOC constructor is private. |
|
83 */ |
|
84 void ConstructL(CTestExecuteLogger& aLogger); |
|
85 |
|
86 // By default, prohibit copy constructor |
|
87 CT_LbsClientLog( const CT_LbsClientLog& ); |
|
88 // Prohibit assigment operator |
|
89 CT_LbsClientLog& operator= ( const CT_LbsClientLog& ); |
|
90 |
|
91 private: // Data |
|
92 CTestExecuteLogger iLogger; |
|
93 }; |
|
94 |
|
95 #endif // __CT_LBS_CLIENT_LOG_H__ |
|
96 |
|
97 // End of File |