widgets/widgetinstaller/src/WidgetInstallerUi.cpp
branchRCL_3
changeset 41 4bd5176e1bc8
parent 0 dd21522fd290
child 48 79859ed3eea9
equal deleted inserted replaced
40:8bfb9186a8b8 41:4bd5176e1bc8
   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, aStatus );
   155            iWatcher->SilentInstallL( aFile, aInstallParams.iMIME, aOptions.iDrive, 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;