|
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: See class definition below. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __CTCFILEHANDLER_H__ |
|
19 #define __CTCFILEHANDLER_H__ |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> |
|
23 #include "RTcFileHandler.h" |
|
24 |
|
25 // CLASS DEFINITION |
|
26 // |
|
27 class CTcFileHandler : public CBase |
|
28 { |
|
29 public: // Constructors and destructor |
|
30 |
|
31 /// Static constructor. |
|
32 IMPORT_C static CTcFileHandler* NewL(); |
|
33 |
|
34 /// Destructor |
|
35 IMPORT_C ~CTcFileHandler(); |
|
36 |
|
37 IMPORT_C void CreateFileL( const TDesC8& aDestinationPath, |
|
38 const TDesC8& aData ); |
|
39 |
|
40 IMPORT_C void CopyFileL( const TDesC8& aSourcePath, |
|
41 const TDesC8& aDestiantionPath ); |
|
42 |
|
43 IMPORT_C void DeleteFileL( const TDesC8& aDestinationPath ); |
|
44 |
|
45 private: // Constructors |
|
46 |
|
47 /// Default constructor. |
|
48 CTcFileHandler(); |
|
49 |
|
50 // Second phase constructor |
|
51 void ConstructL(); |
|
52 |
|
53 private: // Data |
|
54 |
|
55 /// FileHandler client. Owned. |
|
56 RTcFileHandler iHandler; |
|
57 |
|
58 }; |
|
59 |
|
60 #endif // __CTCFILEHANDLER_H__ |