equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef LOG_H_ |
|
17 #define LOG_H_ |
|
18 |
|
19 #include <e32std.h> |
|
20 #include <e32base.h> |
|
21 #include <f32file.h> |
|
22 |
|
23 |
|
24 class CLog : public CBase |
|
25 { |
|
26 public: // Constructors and destructor |
|
27 ~CLog(); |
|
28 static CLog* NewL(RFs &aFs, const TDesC &aFileName); |
|
29 static CLog* NewLC(RFs &aFs, const TDesC &aFileName); |
|
30 |
|
31 //write log |
|
32 TInt WriteLog(const TDesC& aInfo); |
|
33 TInt WriteLog(const TDesC8& aInfo); |
|
34 private: |
|
35 //Constructor for performing 1st stage construction |
|
36 CLog(); |
|
37 |
|
38 //EPOC default constructor for performing 2nd stage construction |
|
39 void ConstructL(RFs &aFs, const TDesC &aFileName); |
|
40 |
|
41 RFile iFile; //log file object |
|
42 TFileText iText; |
|
43 RBuf8 iBuf; |
|
44 }; |
|
45 |
|
46 |
|
47 #endif /*LOG_H_*/ |