equal
deleted
inserted
replaced
22 #include <eikenv.h> |
22 #include <eikenv.h> |
23 #include <data_caging_path_literals.hrh> |
23 #include <data_caging_path_literals.hrh> |
24 |
24 |
25 #include "CUIUtils.h" |
25 #include "CUIUtils.h" |
26 |
26 |
27 #include "WidgetInstallerUI.h" |
27 #include "WidgetInstallerUi.h" |
28 #include "WidgetUIOperationsWatcher.h" |
28 #include "WidgetUIOperationsWatcher.h" |
29 #include "BAUTILS.H" |
29 #include "bautils.h" |
30 |
30 |
31 using namespace SwiUI; |
31 using namespace SwiUI; |
32 |
32 |
33 _LIT( KResourceFileName, "\\resource\\WidgetInstallerUI.rsc" ); |
33 _LIT( KResourceFileName, "\\resource\\WidgetInstallerUI.rsc" ); |
34 _LIT( KResourceDir, "Z:WidgetInstallerUI.rsc" ); |
34 _LIT( KResourceDir, "Z:WidgetInstallerUI.rsc" ); |
144 // ============================================================================ |
144 // ============================================================================ |
145 // |
145 // |
146 void CWidgetInstallerUI::SilentInstallL( RFile& aFile, |
146 void CWidgetInstallerUI::SilentInstallL( RFile& aFile, |
147 TInstallReq& aInstallParams, |
147 TInstallReq& aInstallParams, |
148 TBool /*aIsDRM*/, |
148 TBool /*aIsDRM*/, |
149 TInstallOptions& aOptions, |
149 TInstallOptions& /*aOptions*/, |
150 TRequestStatus& aStatus ) |
150 TRequestStatus& aStatus ) |
151 { |
151 { |
152 __ASSERT_ALWAYS( !iWatcher, User::Leave( KErrInUse ) ); |
152 __ASSERT_ALWAYS( !iWatcher, User::Leave( KErrInUse ) ); |
153 TRAPD( err , |
153 TRAPD( err , |
154 iWatcher = CWidgetUIOperationsWatcher::NewL(); |
154 iWatcher = CWidgetUIOperationsWatcher::NewL(); |
155 iWatcher->SilentInstallL( aFile, aInstallParams.iMIME, aOptions.iDrive, aStatus ); |
155 iWatcher->SilentInstallL( aFile, aInstallParams.iMIME, aStatus ); |
156 ); |
156 ); |
157 if ( KErrNone != err ) |
157 if ( KErrNone != err ) |
158 { |
158 { |
159 delete iWatcher; |
159 delete iWatcher; |
160 iWatcher = NULL; |
160 iWatcher = NULL; |