4735 // ChspsMaintenanceHandler::HandleReinstallationL |
4735 // ChspsMaintenanceHandler::HandleReinstallationL |
4736 // ----------------------------------------------------------------------------- |
4736 // ----------------------------------------------------------------------------- |
4737 // |
4737 // |
4738 void ChspsMaintenanceHandler::HandleReinstallationL( |
4738 void ChspsMaintenanceHandler::HandleReinstallationL( |
4739 const TBool aInstallUdaEmmc ) |
4739 const TBool aInstallUdaEmmc ) |
4740 { |
4740 { |
4741 // Install plug-in configurations from the "install" directories |
4741 // Install plug-in configurations from the "install" directories |
4742 iThemeServer.InstallWidgetsL( aInstallUdaEmmc ); |
4742 iThemeServer.InstallWidgetsL( aInstallUdaEmmc ); |
4743 if( aInstallUdaEmmc ) |
4743 if( aInstallUdaEmmc ) |
4744 { |
4744 { |
4745 // Install plug-in configurations from the "import" directories in C and E |
4745 // Install plug-in configurations from the "import" directories in C |
|
4746 // and emmc(if exists) |
4746 iThemeServer.InstallUDAWidgetsL( KImportDirectoryC ); |
4747 iThemeServer.InstallUDAWidgetsL( KImportDirectoryC ); |
4747 iThemeServer.InstallUDAWidgetsL( KImportDirectoryE ); |
4748 |
|
4749 TInt drive = hspsServerUtil::GetEmmcDrivePath( |
|
4750 iServerSession->FileSystem() ); |
|
4751 if ( drive != KErrNotFound ) |
|
4752 { |
|
4753 TDriveUnit unit(drive); |
|
4754 HBufC* importDirectoryE = HBufC::NewLC( |
|
4755 KImportDirectory().Length() + unit.Name().Length() ); |
|
4756 importDirectoryE->Des().Append( unit.Name() ); |
|
4757 importDirectoryE->Des().Append( KImportDirectory ); |
|
4758 |
|
4759 iThemeServer.InstallUDAWidgetsL( *importDirectoryE ); |
|
4760 CleanupStack::PopAndDestroy( importDirectoryE ); |
|
4761 } |
4748 } |
4762 } |
4749 |
4763 |
4750 // Force updating of the header cache |
4764 // Force updating of the header cache |
4751 iThemeServer.UpdateHeaderListCacheL(); |
4765 iThemeServer.UpdateHeaderListCacheL(); |
4752 } |
4766 } |