browserutilities/downloadmgr/DownloadMgrUiLib/Src/CDownloadMgrUiUserInteractions.cpp
equal
deleted
inserted
replaced
264 // ----------------------------------------------------------------------------- |
264 // ----------------------------------------------------------------------------- |
265 // |
265 // |
266 CDownloadMgrUiUserInteractions::CDownloadMgrUiUserInteractions |
266 CDownloadMgrUiUserInteractions::CDownloadMgrUiUserInteractions |
267 ( CDownloadMgrUiLibRegistry& aRegistryModel ) |
267 ( CDownloadMgrUiLibRegistry& aRegistryModel ) |
268 : CDownloadMgrUiBase( aRegistryModel ), |
268 : CDownloadMgrUiBase( aRegistryModel ), |
269 iDlgActive ( EFalse ) |
269 iDlgActive ( EFalse ), |
|
270 iProgressiveDownloadLaunched ( EFalse ) |
270 { |
271 { |
271 } |
272 } |
272 |
273 |
273 // ----------------------------------------------------------------------------- |
274 // ----------------------------------------------------------------------------- |
274 // CDownloadMgrUiUserInteractions::ConstructL |
275 // CDownloadMgrUiUserInteractions::ConstructL |
498 const TDesC8& aViewActivationMsg ) |
499 const TDesC8& aViewActivationMsg ) |
499 { |
500 { |
500 CLOG_ENTERFN("CDownloadMgrUiUserInteractions::PrepareToExit"); |
501 CLOG_ENTERFN("CDownloadMgrUiUserInteractions::PrepareToExit"); |
501 |
502 |
502 // send a message to all running PD applications and tell that browser is exiting |
503 // send a message to all running PD applications and tell that browser is exiting |
503 TRAP_IGNORE( iUiUtils->SendMsgTerminateToPdAppsL()); |
504 TRAP_IGNORE( iUiUtils->SendMsgTerminateToPdAppsL( iProgressiveDownloadLaunched )); |
504 |
505 |
505 TRAPD( err, PrepareToExitL( &aAppUi, aExitType, aViewId, aCustomMessageId, |
506 TRAPD( err, PrepareToExitL( &aAppUi, aExitType, aViewId, aCustomMessageId, |
506 aViewActivationMsg ) ); |
507 aViewActivationMsg ) ); |
507 CLOG_WRITE_FORMAT(" err: %d",err); |
508 CLOG_WRITE_FORMAT(" err: %d",err); |
508 |
509 |
520 TUint32 aCustomMessageId ) |
521 TUint32 aCustomMessageId ) |
521 { |
522 { |
522 CLOG_ENTERFN("CDownloadMgrUiUserInteractions::PrepareToExit 2"); |
523 CLOG_ENTERFN("CDownloadMgrUiUserInteractions::PrepareToExit 2"); |
523 |
524 |
524 // send a message to all running PD applications and tell that browser is exiting |
525 // send a message to all running PD applications and tell that browser is exiting |
525 TRAP_IGNORE( iUiUtils->SendMsgTerminateToPdAppsL()); |
526 TRAP_IGNORE( iUiUtils->SendMsgTerminateToPdAppsL( iProgressiveDownloadLaunched )); |
526 |
527 |
527 // Convert parameters to the necessary form |
528 // Convert parameters to the necessary form |
528 TVwsViewId viewId( TUid::Uid(aAppUid), TUid::Uid(aViewId) ); |
529 TVwsViewId viewId( TUid::Uid(aAppUid), TUid::Uid(aViewId) ); |
529 TUid customMessageId( TUid::Uid(aCustomMessageId) ); |
530 TUid customMessageId( TUid::Uid(aCustomMessageId) ); |
530 |
531 |