browserutilities/downloadmgr/DownloadMgrUiLib/Src/UserInteractionsEventHandler.cpp
equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 |
19 |
20 // INCLUDE FILES |
20 // INCLUDE FILES |
|
21 #include <platform/mw/Browser_platform_variant.hrh> |
21 #include "UserInteractionsEventHandler.h" |
22 #include "UserInteractionsEventHandler.h" |
22 #include "CUserInteractionsUtils.h" |
23 #include "CUserInteractionsUtils.h" |
23 #include "ProgressInfoCreator.h" |
24 #include "ProgressInfoCreator.h" |
24 #include "CDownloadMgrUiLibRegistry.h" |
25 #include "CDownloadMgrUiLibRegistry.h" |
25 #include "CDownloadMgrUiDownloadsList.h" |
26 #include "CDownloadMgrUiDownloadsList.h" |
36 #include <SysUtil.h> |
37 #include <SysUtil.h> |
37 #include <exterror.h> |
38 #include <exterror.h> |
38 #include <etelpckt.h> |
39 #include <etelpckt.h> |
39 #include <AknNoteDialog.h> |
40 #include <AknNoteDialog.h> |
40 #include <UriUtils.h> |
41 #include <UriUtils.h> |
|
42 |
|
43 |
|
44 #ifdef BRDO_APP_GALLERY_SUPPORTED_FF |
41 #include <MGXFileManagerFactory.h> |
45 #include <MGXFileManagerFactory.h> |
42 #include <CMGXFileManager.h> |
46 #include <CMGXFileManager.h> |
|
47 #endif |
43 |
48 |
44 #include <pathinfo.h> |
49 #include <pathinfo.h> |
45 #include <driveinfo.h> |
50 #include <driveinfo.h> |
46 |
51 |
47 #include <apmrec.h> |
52 #include <apmrec.h> |
934 TPtr fileNamePtr = fileName->Des(); |
939 TPtr fileNamePtr = fileName->Des(); |
935 TInt attErr = iDownload.GetStringAttribute( |
940 TInt attErr = iDownload.GetStringAttribute( |
936 EDlAttrDestFilename, fileNamePtr ); |
941 EDlAttrDestFilename, fileNamePtr ); |
937 CLOG_WRITE_FORMAT(" EDlAttrDestFilename: %S",&fileNamePtr); |
942 CLOG_WRITE_FORMAT(" EDlAttrDestFilename: %S",&fileNamePtr); |
938 TBool havePath = (attErr == KErrNone) && (fileNamePtr.Length() > 0); |
943 TBool havePath = (attErr == KErrNone) && (fileNamePtr.Length() > 0); |
|
944 |
|
945 #ifdef BRDO_APP_GALLERY_SUPPORTED_FF |
939 // |
946 // |
940 CMGXFileManager* mgFileManager = MGXFileManagerFactory::NewFileManagerL( |
947 CMGXFileManager* mgFileManager = MGXFileManagerFactory::NewFileManagerL( |
941 CEikonEnv::Static()->FsSession() ); |
948 CEikonEnv::Static()->FsSession() ); |
942 if( havePath ) |
949 if( havePath ) |
943 { |
950 { |
946 } |
953 } |
947 else |
954 else |
948 { |
955 { |
949 TRAP_IGNORE( mgFileManager->UpdateL() ); |
956 TRAP_IGNORE( mgFileManager->UpdateL() ); |
950 } |
957 } |
951 CleanupStack::PopAndDestroy( fileName ); |
958 |
952 delete mgFileManager; |
959 delete mgFileManager; |
953 mgFileManager = NULL; |
960 mgFileManager = NULL; |
|
961 |
|
962 #else |
|
963 if( havePath ) |
|
964 { |
|
965 TRAP_IGNORE( iUiUtils.UpdateDCFRepositoryL( fileNamePtr ) ); |
|
966 } |
|
967 #endif |
|
968 |
|
969 CleanupStack::PopAndDestroy( fileName ); |
954 |
970 |
955 } |
971 } |
956 else |
972 else |
957 { |
973 { |
958 // Normal completed state. Handling depends on EDlAttrAction |
974 // Normal completed state. Handling depends on EDlAttrAction |