browserutilities/downloadmgr/DownloadMgrUiLib/Src/UserInteractionsEventHandler.cpp
branchRCL_3
changeset 67 4917f9bf7995
parent 37 cb62a4f66ebe
child 84 800203832575
equal deleted inserted replaced
64:ac77f89b1d9e 67:4917f9bf7995
    56 
    56 
    57 
    57 
    58 // LOCAL CONSTANTS AND MACROS
    58 // LOCAL CONSTANTS AND MACROS
    59 _LIT( KListBoxSeparator, "\t" );
    59 _LIT( KListBoxSeparator, "\t" );
    60 _LIT( KDownloadPath,"download");
    60 _LIT( KDownloadPath,"download");
    61 
    61 const TInt KMyFavApplicationUid   = 0x200110D5;
    62 
    62 
    63 const TInt KDownloadConfSizeLimit = 100000;
    63 const TInt KDownloadConfSizeLimit = 100000;
    64 
    64 
    65 // ============================ MEMBER FUNCTIONS ===============================
    65 // ============================ MEMBER FUNCTIONS ===============================
    66 
    66 
   245             {
   245             {
   246             ret = ETrue;                                
   246             ret = ETrue;                                
   247             }                                            
   247             }                                            
   248         else
   248         else
   249             {
   249             {
   250             ret = ShowDownloadConfirmationL( aDownload, aCbaResource );
   250             // For mimetype that download confirmation dialog should not be shown
       
   251             TUid pdPlayerUid = { 0 };
       
   252             TDataType dataType ( *contentType );
       
   253             CDocumentHandler* docHandler = CDocumentHandler::NewLC();
       
   254             TBool pdSupported = docHandler->CanHandleProgressivelyL( dataType , pdPlayerUid );
       
   255             CleanupStack::PopAndDestroy ( docHandler );
       
   256             if ( pdPlayerUid == KMyFavApplicationUid)
       
   257                 {
       
   258                 ret = ETrue;
       
   259                 }
       
   260             else 
       
   261                 {
       
   262                 ret = ShowDownloadConfirmationL( aDownload, aCbaResource );
       
   263                 }
   251             }
   264             }
   252         CleanupStack::PopAndDestroy( contentType );            
   265         CleanupStack::PopAndDestroy( contentType );            
   253         }
   266         }
   254 
   267 
   255     CLOG_LEAVEFN("CUserInteractionsEventHandler::ShowDownloadConfirmationL aForce");
   268     CLOG_LEAVEFN("CUserInteractionsEventHandler::ShowDownloadConfirmationL aForce");