51 #include <hspsodtdump.h> |
51 #include <hspsodtdump.h> |
52 #include <hspslogbusfile.h> |
52 #include <hspslogbusfile.h> |
53 #endif |
53 #endif |
54 |
54 |
55 // CONSTANTS |
55 // CONSTANTS |
56 |
|
57 // Directory for the SISX installation files |
|
58 _LIT( KImportDirectoryC, "c:\\private\\200159c0\\import\\" ); |
|
59 |
56 |
60 // Directories for backup folders |
57 // Directories for backup folders |
61 _LIT( KBackupThemesDirectoryC, "c:\\private\\200159c0\\backup\\themes\\" ); |
58 _LIT( KBackupThemesDirectoryC, "c:\\private\\200159c0\\backup\\themes\\" ); |
62 |
59 |
63 // Name of the installation file |
60 // Name of the installation file |
2609 |
2606 |
2610 // ----------------------------------------------------------------------------- |
2607 // ----------------------------------------------------------------------------- |
2611 // ChspsThemeServer::InstallUDAWidgetsL() |
2608 // ChspsThemeServer::InstallUDAWidgetsL() |
2612 // ----------------------------------------------------------------------------- |
2609 // ----------------------------------------------------------------------------- |
2613 // |
2610 // |
2614 void ChspsThemeServer::InstallUDAWidgetsL() |
2611 void ChspsThemeServer::InstallUDAWidgetsL( const TDesC& aImportDirectory ) |
2615 { |
2612 { |
2616 //Get list of uda dir's |
2613 //Get list of uda dir's |
2617 TPtrC filter( KFilterAllPluginImportsV1 ); |
2614 TPtrC filter( KFilterAllPluginImportsV1 ); |
2618 CDir* importDir( NULL ); |
2615 CDir* importDir( NULL ); |
2619 TFindFile fileFinder( iFsSession ); |
2616 TFindFile fileFinder( iFsSession ); |
2620 fileFinder.FindWildByDir( filter, KImportDirectoryC, importDir ); |
2617 fileFinder.FindWildByDir( filter, aImportDirectory, importDir ); |
2621 CleanupStack::PushL( importDir ); |
2618 CleanupStack::PushL( importDir ); |
2622 |
2619 |
2623 if ( importDir && importDir->Count() > 0 ) |
2620 if ( importDir && importDir->Count() > 0 ) |
2624 { |
2621 { |
2625 CHSPSInstaller* installer = CHSPSInstaller::NewL( *this ); |
2622 CHSPSInstaller* installer = CHSPSInstaller::NewL( *this ); |
2629 { |
2626 { |
2630 TPtrC udaName( (*importDir)[i].iName ); |
2627 TPtrC udaName( (*importDir)[i].iName ); |
2631 // Get manifest path |
2628 // Get manifest path |
2632 HBufC* manifestBuf = GetManifestFromImportLC( |
2629 HBufC* manifestBuf = GetManifestFromImportLC( |
2633 udaName, |
2630 udaName, |
2634 KImportDirectoryC ); |
2631 aImportDirectory ); |
2635 |
2632 |
2636 //install |
2633 //install |
2637 TRAPD( err, installer->InstallConfigurationL( *manifestBuf ) ); |
2634 TRAPD( err, installer->InstallConfigurationL( *manifestBuf ) ); |
2638 if ( err != KErrNone ) |
2635 if ( err != KErrNone ) |
2639 { |
2636 { |
2682 ( fwVersion.Length() == 0 ) ) |
2679 ( fwVersion.Length() == 0 ) ) |
2683 { |
2680 { |
2684 // Install widgets from \private\200159C0\install\ directories (ROM and UDA image) |
2681 // Install widgets from \private\200159C0\install\ directories (ROM and UDA image) |
2685 InstallWidgetsL(); |
2682 InstallWidgetsL(); |
2686 |
2683 |
2687 // Install widgets from \private\200159C0\imports\ directory (UDA image) |
2684 // Install widgets from \private\200159C0\imports\ directory (UDA image) C & E |
2688 InstallUDAWidgetsL(); |
2685 InstallUDAWidgetsL( KImportDirectoryC ); |
|
2686 InstallUDAWidgetsL( KImportDirectoryE ); |
2689 |
2687 |
2690 // Post RFS installations have been done, prevent re-installations at next startup |
2688 // Post RFS installations have been done, prevent re-installations at next startup |
2691 // by reading firmware version and saving it to cenrep. |
2689 // by reading firmware version and saving it to cenrep. |
2692 GetFWVersion( fwVersion ); |
2690 GetFWVersion( fwVersion ); |
2693 |
2691 |
2763 |
2761 |
2764 // ----------------------------------------------------------------------------- |
2762 // ----------------------------------------------------------------------------- |
2765 // ChspsThemeServer::InstallWidgetsL() |
2763 // ChspsThemeServer::InstallWidgetsL() |
2766 // ----------------------------------------------------------------------------- |
2764 // ----------------------------------------------------------------------------- |
2767 // |
2765 // |
2768 void ChspsThemeServer::InstallWidgetsL() |
2766 void ChspsThemeServer::InstallWidgetsL( |
|
2767 const TBool aInstallUdaEmmc ) |
2769 { |
2768 { |
2770 __ASSERT_DEBUG( !iRomInstaller, User::Leave( KErrGeneral) ); |
2769 __ASSERT_DEBUG( !iRomInstaller, User::Leave( KErrGeneral) ); |
2771 iRomInstaller = ChspsRomInstaller::NewL( *this, iFsSession ); |
2770 iRomInstaller = ChspsRomInstaller::NewL( *this, iFsSession, aInstallUdaEmmc ); |
2772 #ifdef HSPS_LOG_ACTIVE |
2771 #ifdef HSPS_LOG_ACTIVE |
2773 iRomInstaller->SetLogBus( iLogBus ); |
2772 iRomInstaller->SetLogBus( iLogBus ); |
2774 #endif |
2773 #endif |
2775 |
2774 |
2776 iRomInstaller->InstallL(); |
2775 iRomInstaller->InstallL(); |
2777 |
2776 |
2778 delete iRomInstaller; |
2777 delete iRomInstaller; |
2779 iRomInstaller = 0; |
2778 iRomInstaller = 0; |
2780 |
2779 |
2781 // Force updating of the header cache |
2780 // Force updating of the header cache |
2782 ThspsRepositoryInfo info( EhspsCacheUpdate ); |
2781 TRAP_IGNORE( UpdateHeaderListCacheL() ); |
2783 iDefinitionRepository->RegisterNotification( info ); |
|
2784 } |
2782 } |
2785 |
2783 |
2786 // ----------------------------------------------------------------------------- |
2784 // ----------------------------------------------------------------------------- |
2787 // ChspsThemeServer::GetConfigurationHeader() |
2785 // ChspsThemeServer::GetConfigurationHeader() |
2788 // ----------------------------------------------------------------------------- |
2786 // ----------------------------------------------------------------------------- |