equal
deleted
inserted
replaced
159 CFileMan* fileManager = CFileMan::NewL(aFs); |
159 CFileMan* fileManager = CFileMan::NewL(aFs); |
160 CleanupStack::PushL(fileManager); |
160 CleanupStack::PushL(fileManager); |
161 User::LeaveIfError(fileManager->Copy(KScrDbRomPath, aTargetPath, 0)); |
161 User::LeaveIfError(fileManager->Copy(KScrDbRomPath, aTargetPath, 0)); |
162 |
162 |
163 // Reset the read-only attribute on the copied file |
163 // Reset the read-only attribute on the copied file |
164 TTime time; |
|
165 User::LeaveIfError(aFs.SetAtt(aTargetPath, 0, KEntryAttReadOnly)); |
164 User::LeaveIfError(aFs.SetAtt(aTargetPath, 0, KEntryAttReadOnly)); |
166 CleanupStack::PopAndDestroy(fileManager); |
165 CleanupStack::PopAndDestroy(fileManager); |
167 } |
166 } |
168 |
167 |
169 void CScrHelperSession::GetFileHandleL(RFs& aFs, const RMessage2& aMessage, const TDesC& aFileName) |
168 void CScrHelperSession::GetFileHandleL(RFs& aFs, const RMessage2& aMessage, const TDesC& aFileName) |