136 * @return value of the name attribute in a configuration node |
136 * @return value of the name attribute in a configuration node |
137 */ |
137 */ |
138 static TPtrC8 FindConfigurationAttrL( |
138 static TPtrC8 FindConfigurationAttrL( |
139 const ChspsODT& aOdt, |
139 const ChspsODT& aOdt, |
140 const TDesC8& aAttr ); |
140 const TDesC8& aAttr ); |
141 |
141 |
|
142 /** |
|
143 * Removes plug-in resources from the client app. |
|
144 * @since S60 5.2 |
|
145 * @param aFilemanager File manager instance |
|
146 * @param aAppUid UID of the application configuration |
|
147 * @param aPluginODT Plugin configuration |
|
148 */ |
|
149 static void RemoveResourceFilesL( |
|
150 CFileMan& aFilemanager, |
|
151 RFs& aFs, |
|
152 const TInt aAppUid, |
|
153 const ChspsODT& aPluginODT ); |
|
154 |
|
155 /** |
|
156 * Finds language specific resources from a plug-in and handles copying |
|
157 * of the resources to a destination folder. |
|
158 * @since S60 5.0 |
|
159 * @param aAppODT Application configuration |
|
160 * @param aFs Reference to OPEN file server session handle. |
|
161 * @param aFilemanager File manager instance |
|
162 * @param aDeviceLanguage Device language |
|
163 * @param aConfUid Idenifies the plug-in which is to be processed |
|
164 * @param aDestination Target path where the files should be copied to |
|
165 * @param aIsRelevant Set if the source file should be copied without the checks |
|
166 */ |
|
167 static TInt CopyResourceFilesL( |
|
168 ChspsODT& aAppODT, |
|
169 RFs& aFs, |
|
170 CFileMan& aFilemanager, |
|
171 const TInt aDeviceLanguage, |
|
172 const TInt aConfUid, |
|
173 const TDesC& aDestination, |
|
174 const TBool aIsRelevant = EFalse ); |
|
175 |
142 /** |
176 /** |
143 * Copies a file to a target path when neccessary. |
177 * Copies a file to a target path when neccessary. |
144 * Target path is created if it's missing. |
178 * Target path is created if it's missing. |
145 * File is copied if the target's size or date are different or |
179 * File is copied if the target's size or date are different or |
146 * if the file is missing. |
180 * if the file is missing. |
147 * @since S60 5.0 |
181 * @since S60 5.0 |
148 * @param aFs Reference to OPEN file server session handle. |
182 * @param aFs Reference to OPEN file server session handle. |
149 * @param aFilemanager Referemce to file manager instance |
183 * @param aFilemanager Referemce to file manager instance |
150 * @param aTargetPath Path where the file should be copied to |
184 * @param aTargetPath Path where the file should be copied to |
151 * @param aFilename Path and name of the file to be copied |
185 * @param aFilename Path and name of the file to be copied |
|
186 * @param aIsRelevant Set if the source file should be copied without the checks |
152 * @return error code |
187 * @return error code |
153 */ |
188 */ |
154 static TInt CopyResourceFileL( |
189 static TInt CopyResourceFileL( |
155 RFs& aFs, |
190 RFs& aFs, |
156 CFileMan& aFilemanager, |
191 CFileMan& aFilemanager, |
157 const TPath& aTargetPath, |
192 const TPath& aTargetPath, |
158 const TFileName& aSourceFile ); |
193 const TFileName& aSourceFile, |
|
194 const TBool aIsRelevant = EFalse ); |
159 |
195 |
160 /** |
196 /** |
161 * Checks: |
197 * Checks: |
162 * - Is there enough space for target file? |
198 * - Is there enough space for target file? |
163 * - Do source and target files have same timestamp and size |
199 * - Do source and target files have same timestamp and size |
471 static TBool IsLogoFile( |
507 static TBool IsLogoFile( |
472 const TDesC& aFileDeclaration, |
508 const TDesC& aFileDeclaration, |
473 TFileName& aFilename ); |
509 TFileName& aFilename ); |
474 |
510 |
475 /** |
511 /** |
476 * Resolve resource files that need to be copied. |
512 * Resolve resource files that need to be copied, |
|
513 * plug-in may not have requested localization. |
477 * |
514 * |
478 * @since S60 5.1 |
515 * @since S60 5.1 |
479 * |
516 * |
480 * @param aODT Configuration. |
517 * @param aODT Configuration. |
481 * @param aConfUid Plugin which is to be processed. |
518 * @param aConfUid Plugin which is to be processed. |
482 * @param aActiveLanguage Active language. |
519 * @param aActiveLanguage Active language. |
483 * @param aWidgetResources Target array. Will receive list |
520 * @param aWidgetResources Target array. Will receive list |
484 * of resources if any applicable. |
521 * of resources if any applicable. |
485 * Ownership of given resources is not transferred! |
522 * Ownership of given resources is not transferred! |
486 */ |
523 */ |
487 static void GetValidResourcesL( |
524 static void GetResourcesForLanguageL( |
488 ChspsODT& aODT, |
525 ChspsODT& aODT, |
489 const TInt aConfUid, |
526 const TInt aConfUid, |
490 const TLanguage aActiveLanguage, |
527 const TLanguage aActiveLanguage, |
491 RPointerArray<ChspsResource>& aWidgetResources ); |
528 RPointerArray<ChspsResource>& aWidgetResources ); |
492 |
529 |