|
1 /* |
|
2 * Copyright (c) 2008-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 "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: |
|
15 * Class for Patching Exported Data |
|
16 * @internalComponent |
|
17 * @released |
|
18 * |
|
19 */ |
|
20 |
|
21 #include "patchdataprocessor.h" |
|
22 |
|
23 /** |
|
24 Add patchdata statement to the vector containing all patchdata statements |
|
25 |
|
26 @param aPatchDataStatement new patchdata statement. |
|
27 |
|
28 @internalComponent |
|
29 @released |
|
30 */ |
|
31 void CPatchDataProcessor::AddPatchDataStatement(StringVector aPatchDataStatement) |
|
32 { |
|
33 iPatchDataStatements.push_back(aPatchDataStatement); |
|
34 } |
|
35 |
|
36 /** |
|
37 Get the vector containing patchdata statements |
|
38 |
|
39 @return iPatchDataStatements list of patchdata statements. |
|
40 |
|
41 @internalComponent |
|
42 @released |
|
43 */ |
|
44 VectorOfStringVector CPatchDataProcessor::GetPatchDataStatements(void) const |
|
45 { |
|
46 return iPatchDataStatements; |
|
47 } |
|
48 |
|
49 /** |
|
50 Add a new entry to renamed file map. |
|
51 |
|
52 @param aCurrentName current name of the file. |
|
53 @param aNewName new name of the file. |
|
54 |
|
55 @internalComponent |
|
56 @released |
|
57 */ |
|
58 void CPatchDataProcessor::AddToRenamedFileMap(String aCurrentName, String aNewName) |
|
59 { |
|
60 iRenamedFileMap[aCurrentName]=aNewName; |
|
61 } |
|
62 |
|
63 /** |
|
64 Get renamed file map. |
|
65 |
|
66 @return iRenamedFileMap renamed file map |
|
67 |
|
68 @internalComponent |
|
69 @released |
|
70 */ |
|
71 MapOfString CPatchDataProcessor::GetRenamedFileMap() const |
|
72 { |
|
73 return iRenamedFileMap; |
|
74 } |
|
75 |
|
76 /** |
|
77 Add link to the patchdata linked list |
|
78 |
|
79 @param aDllData pointer to a patchdata link. |
|
80 |
|
81 @internalComponent |
|
82 @released |
|
83 */ |
|
84 void DllDataEntry::AddDllDataEntry(DllDataEntry *aDllData) |
|
85 { |
|
86 iNextDllEntry=aDllData; |
|
87 } |
|
88 |
|
89 /** |
|
90 Get the next node in the patchdata linked list |
|
91 |
|
92 @return pointer to the next node. |
|
93 |
|
94 @internalComponent |
|
95 @released |
|
96 */ |
|
97 DllDataEntry* DllDataEntry::NextDllDataEntry() const |
|
98 { |
|
99 if (iNextDllEntry) |
|
100 { |
|
101 return iNextDllEntry; |
|
102 } |
|
103 else |
|
104 { |
|
105 return NULL; |
|
106 } |
|
107 } |