378 */ |
378 */ |
379 void CMTPMoveObject::GetPreviousPropertiesL(const TDesC& aFileName) |
379 void CMTPMoveObject::GetPreviousPropertiesL(const TDesC& aFileName) |
380 { |
380 { |
381 __FLOG(_L8("GetPreviousPropertiesL - Entry")); |
381 __FLOG(_L8("GetPreviousPropertiesL - Entry")); |
382 User::LeaveIfError(iFramework.Fs().Modified(aFileName, iPreviousModifiedTime)); |
382 User::LeaveIfError(iFramework.Fs().Modified(aFileName, iPreviousModifiedTime)); |
|
383 if ( iIsFolder ) |
|
384 { |
|
385 TEntry fileEntry; |
|
386 User::LeaveIfError(iFramework.Fs().Entry( aFileName, fileEntry )); |
|
387 iIsHidden = fileEntry.IsHidden(); |
|
388 } |
383 __FLOG(_L8("GetPreviousPropertiesL - Exit")); |
389 __FLOG(_L8("GetPreviousPropertiesL - Exit")); |
384 } |
390 } |
385 |
391 |
386 /** |
392 /** |
387 Set the object properties after moving |
393 Set the object properties after moving |
388 */ |
394 */ |
389 void CMTPMoveObject::SetPreviousPropertiesL(const TDesC& aFileName) |
395 void CMTPMoveObject::SetPreviousPropertiesL(const TDesC& aFileName) |
390 { |
396 { |
391 __FLOG(_L8("SetPreviousPropertiesL - Entry")); |
397 __FLOG(_L8("SetPreviousPropertiesL - Entry")); |
392 User::LeaveIfError(iFramework.Fs().SetModified(aFileName, iPreviousModifiedTime)); |
398 User::LeaveIfError(iFramework.Fs().SetModified(aFileName, iPreviousModifiedTime)); |
|
399 if ( iIsFolder && iIsHidden ) |
|
400 { |
|
401 TEntry fileEntry; |
|
402 User::LeaveIfError(iFramework.Fs().Entry( aFileName, fileEntry )); |
|
403 fileEntry.iAtt &= ~KEntryAttHidden; |
|
404 fileEntry.iAtt |= KEntryAttHidden; |
|
405 User::LeaveIfError(iFramework.Fs().SetAtt( aFileName, fileEntry.iAtt, ~fileEntry.iAtt)); |
|
406 } |
393 __FLOG(_L8("SetPreviousPropertiesL - Exit")); |
407 __FLOG(_L8("SetPreviousPropertiesL - Exit")); |
394 } |
408 } |
395 |
409 |
396 /** |
410 /** |
397 Call back function, called when the timer expired for big file moving. |
411 Call back function, called when the timer expired for big file moving. |