357 */ |
357 */ |
358 void CMTPCopyObject::GetPreviousPropertiesL(const TDesC& aFileName) |
358 void CMTPCopyObject::GetPreviousPropertiesL(const TDesC& aFileName) |
359 { |
359 { |
360 __FLOG(_L8("GetPreviousPropertiesL - Entry")); |
360 __FLOG(_L8("GetPreviousPropertiesL - Entry")); |
361 User::LeaveIfError(iFramework.Fs().Modified(aFileName, iPreviousModifiedTime)); |
361 User::LeaveIfError(iFramework.Fs().Modified(aFileName, iPreviousModifiedTime)); |
|
362 if ( iIsFolder ) |
|
363 { |
|
364 TEntry fileEntry; |
|
365 User::LeaveIfError(iFramework.Fs().Entry( aFileName, fileEntry )); |
|
366 iIsHidden = fileEntry.IsHidden(); |
|
367 } |
362 __FLOG(_L8("GetPreviousPropertiesL - Exit")); |
368 __FLOG(_L8("GetPreviousPropertiesL - Exit")); |
363 } |
369 } |
364 |
370 |
365 /** |
371 /** |
366 Set the object properties after doing the copy |
372 Set the object properties after doing the copy |
367 */ |
373 */ |
368 void CMTPCopyObject::SetPreviousPropertiesL(const TDesC& aFileName) |
374 void CMTPCopyObject::SetPreviousPropertiesL(const TDesC& aFileName) |
369 { |
375 { |
370 __FLOG(_L8("SetPreviousPropertiesL - Entry")); |
376 __FLOG(_L8("SetPreviousPropertiesL - Entry")); |
371 User::LeaveIfError(iFramework.Fs().SetModified(aFileName, iPreviousModifiedTime)); |
377 User::LeaveIfError(iFramework.Fs().SetModified(aFileName, iPreviousModifiedTime)); |
|
378 if ( iIsFolder && iIsHidden ) |
|
379 { |
|
380 TEntry fileEntry; |
|
381 User::LeaveIfError(iFramework.Fs().Entry( aFileName, fileEntry )); |
|
382 fileEntry.iAtt &= ~KEntryAttHidden; |
|
383 fileEntry.iAtt |= KEntryAttHidden; |
|
384 User::LeaveIfError(iFramework.Fs().SetAtt( aFileName, fileEntry.iAtt, ~fileEntry.iAtt)); |
|
385 } |
372 __FLOG(_L8("SetPreviousPropertiesL - Exit")); |
386 __FLOG(_L8("SetPreviousPropertiesL - Exit")); |
373 } |
387 } |
374 |
388 |
375 /** |
389 /** |
376 Update object info in the database. |
390 Update object info in the database. |