|
1 /* |
|
2 * Copyright (c) 2006-2006 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 "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: Writes IBY files |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CBSIBYWRITER_H |
|
21 #define CBSIBYWRITER_H |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 class RFs; |
|
26 |
|
27 /** |
|
28 * Writes IBY files |
|
29 * |
|
30 * @lib |
|
31 * @since S60 v3.2 |
|
32 */ |
|
33 class CBSIBYWriter : public CBase |
|
34 { |
|
35 public: |
|
36 |
|
37 static CBSIBYWriter* NewL(); |
|
38 |
|
39 static CBSIBYWriter* NewLC(); |
|
40 |
|
41 ~CBSIBYWriter(); |
|
42 |
|
43 /** |
|
44 * Initialize IBY file |
|
45 * |
|
46 * @param aFs file system handle |
|
47 * @param aFileName Full name of the iby file |
|
48 * @since S60 3.2 |
|
49 * @return none |
|
50 */ |
|
51 void InitIbyFileL( RFs& aFs, const TDesC& aFileName ); |
|
52 |
|
53 /** |
|
54 * File item included in IBY file |
|
55 * |
|
56 * @since S60 3.2 |
|
57 * @param aSrc source file |
|
58 * @param aDest destination file |
|
59 * @return none |
|
60 */ |
|
61 void SetFileItemL( const TDesC& aSrc, const TDesC& aDest ); |
|
62 |
|
63 /** |
|
64 * Writes Iby file from given file items |
|
65 * |
|
66 * @since S60 3.2 |
|
67 * @param aFs file system handle |
|
68 * @param aFileName Full name of the iby file |
|
69 * @return none |
|
70 */ |
|
71 void WriteIBYFileL( RFs& aFs, const TDesC& aFileName ); |
|
72 |
|
73 private: |
|
74 |
|
75 CBSIBYWriter(); |
|
76 |
|
77 void ConstructL(); |
|
78 |
|
79 private: // Data |
|
80 |
|
81 // Own. Source path array |
|
82 RPointerArray<HBufC8> iSourcePath; |
|
83 |
|
84 // Own. Source files |
|
85 RPointerArray<HBufC8> iSourceFiles; |
|
86 |
|
87 // Own. Destination files |
|
88 RPointerArray<HBufC8> iDestinations; |
|
89 |
|
90 // Own. Iby file name |
|
91 HBufC* iIbyFile; |
|
92 }; |
|
93 |
|
94 #endif //CBSIBYWRITER_H |