equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004 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 "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Definition and attributes for the class TFileUtil |
|
15 ** |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __FILEUTIL_H |
|
22 #define __FILEUTIL_H |
|
23 |
|
24 #include <f32file.h> |
|
25 #include <e32base.h> |
|
26 #include <e32cons.h> |
|
27 |
|
28 |
|
29 class TFileUtil |
|
30 { |
|
31 public: |
|
32 enum TDataType |
|
33 { |
|
34 EInteger, |
|
35 EUInteger, |
|
36 EFloat, |
|
37 EDouble, |
|
38 ECharacter, |
|
39 EHexadecimal |
|
40 }; |
|
41 |
|
42 public: |
|
43 |
|
44 static TInt LogMessage(const TFileName&, const TDesC8&); |
|
45 |
|
46 static TInt WriteLogFile(const TDesC& name, const TDesC8& p); |
|
47 static TInt InitLogFile( const TFileName& name ); |
|
48 |
|
49 static TInt WriteLogFile(const TDesC& name, const TDesC& p); |
|
50 static TInt LogMessage(const TFileName&, const TDesC&); |
|
51 |
|
52 static void LogToFile(const TDesC& name, TRefByValue<const TDesC> aFmt, ...); |
|
53 static void LogMsg(TDes& aDes, TRefByValue<const TDesC> aFmt, ...); |
|
54 }; |
|
55 |
|
56 #endif __FILEUTIL_H |
|
57 |
|
58 |