browserutilities/downloadmgr/DownloadMgrUiLib/Src/UserInteractionsEventHandler.cpp
changeset 8 7c90e6132015
parent 0 dd21522fd290
child 36 0ed94ceaa377
--- a/browserutilities/downloadmgr/DownloadMgrUiLib/Src/UserInteractionsEventHandler.cpp	Mon Mar 30 12:54:55 2009 +0300
+++ b/browserutilities/downloadmgr/DownloadMgrUiLib/Src/UserInteractionsEventHandler.cpp	Fri May 08 08:25:06 2009 +0300
@@ -18,6 +18,7 @@
 
 
 // INCLUDE FILES
+#include <platform/mw/Browser_platform_variant.hrh>
 #include    "UserInteractionsEventHandler.h"
 #include    "CUserInteractionsUtils.h"
 #include    "ProgressInfoCreator.h"
@@ -38,8 +39,12 @@
 #include    <etelpckt.h>
 #include    <AknNoteDialog.h>
 #include    <UriUtils.h>
+
+
+#ifdef BRDO_APP_GALLERY_SUPPORTED_FF
 #include    <MGXFileManagerFactory.h>
 #include    <CMGXFileManager.h>
+#endif
 
 #include    <pathinfo.h>
 #include    <driveinfo.h>
@@ -936,6 +941,8 @@
             EDlAttrDestFilename, fileNamePtr );
         CLOG_WRITE_FORMAT(" EDlAttrDestFilename: %S",&fileNamePtr);
         TBool havePath = (attErr == KErrNone) && (fileNamePtr.Length() > 0);
+        
+        #ifdef BRDO_APP_GALLERY_SUPPORTED_FF
         //
         CMGXFileManager* mgFileManager = MGXFileManagerFactory::NewFileManagerL(
             CEikonEnv::Static()->FsSession() );
@@ -948,10 +955,19 @@
             {
             TRAP_IGNORE( mgFileManager->UpdateL() );
             }
-        CleanupStack::PopAndDestroy( fileName );
+        
         delete mgFileManager;
         mgFileManager = NULL;
         
+        #else
+         if( havePath )
+            {
+            TRAP_IGNORE( iUiUtils.UpdateDCFRepositoryL( fileNamePtr ) );
+            }
+        #endif    
+        
+        CleanupStack::PopAndDestroy( fileName );
+        
         }
     else
         {