equal
deleted
inserted
replaced
75 * @since S60 5.0 |
75 * @since S60 5.0 |
76 */ |
76 */ |
77 virtual ~ChspsRomInstaller(); |
77 virtual ~ChspsRomInstaller(); |
78 |
78 |
79 public: // New functions |
79 public: // New functions |
80 |
|
81 /** |
|
82 * Finds plugin_*.dat and app_*.dat files from Z\private\200159C0\install |
|
83 * File names are stored into iImportsArrayV1 member array |
|
84 * @since S60 5.0 |
|
85 */ |
|
86 void FindImportsV1L(); |
|
87 |
|
88 /** |
|
89 * Imports. |
|
90 * Returns a reference to the imports list, which is maintained by the class. |
|
91 * Contents of the list is set in FindImportsL() function. |
|
92 * @since S60 5.0 |
|
93 * @return an array of *.DAT files which were found from the ROM drive. |
|
94 */ |
|
95 const RPointerArray<HBufC>& ImportsV1(); |
|
96 |
80 |
97 /** |
81 /** |
98 * InstallTheme |
82 * InstallTheme |
99 * Synchronous service for installing configurations from provided manifest files. |
83 * Synchronous service for installing configurations from provided manifest files. |
100 * @since S60 5.0 |
84 * @since S60 5.0 |
116 ThspsServiceCompletedMessage ReinstallThemeL( |
100 ThspsServiceCompletedMessage ReinstallThemeL( |
117 const TInt aAppUid, |
101 const TInt aAppUid, |
118 const TInt aConfigurationUid ); |
102 const TInt aConfigurationUid ); |
119 |
103 |
120 /** |
104 /** |
121 * Gets names of the folders which should be installed from Z\private\200159C0\install |
105 * Retrieves manifest files from both Z and C drives located in |
122 * @since S60 5.0 |
106 * \\private\200159C0\install\ paths. |
123 */ |
107 * @since S60 5.0 |
124 void GetInstallationFoldersL( |
108 */ |
|
109 void FindInstallationFilesL( |
125 RPointerArray<HBufC>& aFolders ); |
110 RPointerArray<HBufC>& aFolders ); |
126 |
111 |
127 #ifdef HSPS_LOG_ACTIVE |
112 #ifdef HSPS_LOG_ACTIVE |
128 /** |
113 /** |
129 * Set log bus. |
114 * Set log bus. |
173 * ConstructL. |
158 * ConstructL. |
174 * Performs the second phase construction of a ChspsRomInstaller object. |
159 * Performs the second phase construction of a ChspsRomInstaller object. |
175 * @since S60 5.0 |
160 * @since S60 5.0 |
176 */ |
161 */ |
177 void ConstructL(); |
162 void ConstructL(); |
178 |
163 |
179 /** |
164 void DoFindInstallationFilesL( |
180 * SetImportsFilterL. |
165 RPointerArray<HBufC>& aFolders, |
181 * Finds specific imports ("plugin_*.dat"/"app_*.dat" files) from ROM drive's |
166 const TDesC& aPath ); |
182 * import folder. Search results are appended into iImportsArray member. |
167 |
183 * @since S60 5.0 |
168 /** |
184 * @param aFileFilter is a filter for finding the imports |
169 * Finds an installation file from a directory structure |
185 * @param |
170 * which has UID in hex format as folder name. |
186 * @return ETrue if files were found and added into the array |
171 * @since S60 5.2 |
187 */ |
172 * @param aConfigurationUid Configuration to be found |
188 TBool SetImportsFilterL( |
173 * @param aManifest Found manifest file |
189 const TDesC& aFileFilter ); |
174 */ |
|
175 void FindInstallationFileL( |
|
176 const TInt aConfigurationUid, |
|
177 TFileName& aManifest ); |
190 |
178 |
191 private: // Data |
179 private: // Data |
192 |
180 |
193 ChspsThemeServer& iThemeServer; |
181 ChspsThemeServer& iThemeServer; |
194 |
182 |
197 |
185 |
198 // Installation handler |
186 // Installation handler |
199 ChspsInstallationHandler* iInstallationHandler; |
187 ChspsInstallationHandler* iInstallationHandler; |
200 |
188 |
201 // Required by the installation process |
189 // Required by the installation process |
202 TBuf8<KMaxHeaderDataLength8> iHeaderData; |
190 TBuf8<KMaxHeaderDataLength8> iHeaderData; |
203 |
|
204 // An array of found *.DAT files |
|
205 RPointerArray<HBufC> iImportsArrayV1; |
|
206 |
191 |
207 // Results of the previous installation |
192 // Results of the previous installation |
208 ThspsServiceCompletedMessage iRet; |
193 ThspsServiceCompletedMessage iRet; |
209 |
194 |
210 #ifdef HSPS_LOG_ACTIVE |
195 #ifdef HSPS_LOG_ACTIVE |