mmappcomponents/mmmtpdataprovider/mmmtpdpplugins/abstractmediamtpdataprovider/src/cabstractmediamtpdataproviderrenameobject.cpp
equal
deleted
inserted
replaced
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 #include <badesca.h> |
19 #include <badesca.h> |
20 #include <mtp/mmtpdataproviderframework.h> |
|
21 #include <mtp/mmtpobjectmgr.h> |
20 #include <mtp/mmtpobjectmgr.h> |
|
21 #include <mtp/tmtptypeuint32.h> |
22 #include <mtp/cmtpobjectmetadata.h> |
22 #include <mtp/cmtpobjectmetadata.h> |
23 #include <mtp/tmtptypeuint32.h> |
|
24 |
23 |
25 #include "cabstractmediamtpdataproviderrenameobject.h" |
24 #include "cabstractmediamtpdataproviderrenameobject.h" |
26 #include "mmmtpdplogger.h" |
25 #include "mmmtpdplogger.h" |
27 #include "cmmmtpdpmetadataaccesswrapper.h" |
26 #include "cmmmtpdpmetadataaccesswrapper.h" |
28 |
27 |
90 iWrapper.AddDummyFileL( iFileName ); |
89 iWrapper.AddDummyFileL( iFileName ); |
91 // Do not update MPX db to keep the same behavior in mass storage and device file manager. |
90 // Do not update MPX db to keep the same behavior in mass storage and device file manager. |
92 } |
91 } |
93 else |
92 else |
94 { |
93 { |
95 TRAPD( err, iWrapper.RenameObjectL( iOldFileName, iFileName ) ); |
94 TRAPD( err, iWrapper.RenameObjectL( *iObjectInfo, iFileName ) ); |
96 |
95 |
97 // should not fail for 1 file, keep it going, as folder already renamed |
96 // should not fail for 1 file, keep it going, as folder already renamed |
98 if ( err != KErrNone ) |
97 if ( err != KErrNone ) |
99 PRINT1( _L( "MM MTP <> CRenameObject::PerformAdditionalActionL err = %d" ), err ); |
98 PRINT1( _L( "MM MTP <> CRenameObject::PerformAdditionalActionL err = %d" ), err ); |
100 } |
99 } |