--- a/homescreenpluginsrv/hspsmanager/src/hspsserverutil.cpp Mon Jun 21 16:00:38 2010 +0300
+++ b/homescreenpluginsrv/hspsmanager/src/hspsserverutil.cpp Thu Jul 15 18:59:18 2010 +0300
@@ -30,7 +30,7 @@
#include "bautils.h"
#include "sysutil.h"
#include <syslangutil.h>
-#include <DriveInfo.h>
+#include <driveinfo.h>
_LIT(KHspsFolder, "\\200159c0\\themes\\" );
@@ -724,17 +724,7 @@
aTargetPath,
0,
KEntryAttReadOnly,
- TTime( 0 ) ); // TTime(0) = preserve original time stamp.
-
-#ifdef HSPS_LOG_ACTIVE
- if ( iLogBus )
- {
- iLogBus->LogText(
- _L( "hspsServerUtil::CopyResourceFileL(): - %S was copied" ),
- &aTargetPath
- );
- }
-#endif
+ TTime( 0 ) ); // TTime(0) = preserve original time stamp.
}
}
@@ -2225,6 +2215,32 @@
}
// -----------------------------------------------------------------------------
+// Removes plugin resources from the provided ODT
+// -----------------------------------------------------------------------------
+//
+TInt hspsServerUtil::RemovePluginResourcesL(
+ ChspsODT& aAppODT,
+ const TInt aPluginUid )
+ {
+ // Loop resources of the application configuration
+ for(TInt aresIndex = 0; aresIndex < aAppODT.ResourceCount(); aresIndex++ )
+ {
+ ChspsResource& ares = aAppODT.ResourceL( aresIndex );
+
+ // If the plugin resource was found at resource list of the application configuration
+ if ( ares.ConfigurationUid() == aPluginUid )
+ {
+ // Deletes resource from the application configuration
+ aAppODT.DeleteResourceL( aresIndex );
+ aresIndex--;
+ }
+
+ }
+
+ return KErrNone;
+ }
+
+// -----------------------------------------------------------------------------
// hspsServerUtil::hspsServerUtil
// -----------------------------------------------------------------------------
//