equal
deleted
inserted
replaced
28 #include "hspsdomattribute.h" |
28 #include "hspsdomattribute.h" |
29 #include "hspsmanifest.h" |
29 #include "hspsmanifest.h" |
30 #include "bautils.h" |
30 #include "bautils.h" |
31 #include "sysutil.h" |
31 #include "sysutil.h" |
32 #include <syslangutil.h> |
32 #include <syslangutil.h> |
33 #include <DriveInfo.h> |
33 #include <driveinfo.h> |
34 |
34 |
35 |
35 |
36 _LIT(KHspsFolder, "\\200159c0\\themes\\" ); |
36 _LIT(KHspsFolder, "\\200159c0\\themes\\" ); |
37 _LIT(KSourcesFolder, "\\sources\\"); |
37 _LIT(KSourcesFolder, "\\sources\\"); |
38 _LIT( KThemesFolder, "\\themes\\" ); |
38 _LIT( KThemesFolder, "\\themes\\" ); |
722 // Clear readonly file attribs that might be inherited from the source file |
722 // Clear readonly file attribs that might be inherited from the source file |
723 aFilemanager.Attribs( |
723 aFilemanager.Attribs( |
724 aTargetPath, |
724 aTargetPath, |
725 0, |
725 0, |
726 KEntryAttReadOnly, |
726 KEntryAttReadOnly, |
727 TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
727 TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
728 |
|
729 #ifdef HSPS_LOG_ACTIVE |
|
730 if ( iLogBus ) |
|
731 { |
|
732 iLogBus->LogText( |
|
733 _L( "hspsServerUtil::CopyResourceFileL(): - %S was copied" ), |
|
734 &aTargetPath |
|
735 ); |
|
736 } |
|
737 #endif |
|
738 } |
728 } |
739 } |
729 } |
740 |
730 |
741 return error; |
731 return error; |
742 } |
732 } |
2223 } |
2213 } |
2224 return KErrNotFound; |
2214 return KErrNotFound; |
2225 } |
2215 } |
2226 |
2216 |
2227 // ----------------------------------------------------------------------------- |
2217 // ----------------------------------------------------------------------------- |
|
2218 // Removes plugin resources from the provided ODT |
|
2219 // ----------------------------------------------------------------------------- |
|
2220 // |
|
2221 TInt hspsServerUtil::RemovePluginResourcesL( |
|
2222 ChspsODT& aAppODT, |
|
2223 const TInt aPluginUid ) |
|
2224 { |
|
2225 // Loop resources of the application configuration |
|
2226 for(TInt aresIndex = 0; aresIndex < aAppODT.ResourceCount(); aresIndex++ ) |
|
2227 { |
|
2228 ChspsResource& ares = aAppODT.ResourceL( aresIndex ); |
|
2229 |
|
2230 // If the plugin resource was found at resource list of the application configuration |
|
2231 if ( ares.ConfigurationUid() == aPluginUid ) |
|
2232 { |
|
2233 // Deletes resource from the application configuration |
|
2234 aAppODT.DeleteResourceL( aresIndex ); |
|
2235 aresIndex--; |
|
2236 } |
|
2237 |
|
2238 } |
|
2239 |
|
2240 return KErrNone; |
|
2241 } |
|
2242 |
|
2243 // ----------------------------------------------------------------------------- |
2228 // hspsServerUtil::hspsServerUtil |
2244 // hspsServerUtil::hspsServerUtil |
2229 // ----------------------------------------------------------------------------- |
2245 // ----------------------------------------------------------------------------- |
2230 // |
2246 // |
2231 hspsServerUtil::hspsServerUtil() |
2247 hspsServerUtil::hspsServerUtil() |
2232 { |
2248 { |