equal
deleted
inserted
replaced
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1998-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
315 if(err == KErrNone) |
315 if(err == KErrNone) |
316 { |
316 { |
317 TEntry entry; |
317 TEntry entry; |
318 if(fsSession.Entry(aFullName, entry) == KErrNone) |
318 if(fsSession.Entry(aFullName, entry) == KErrNone) |
319 { |
319 { |
320 RDebug::Print(_L("Deleting \"%S\" file.\n"), &aFullName); |
320 test.Printf(_L("Deleting \"%S\" file.\n"), &aFullName); |
321 err = fsSession.SetAtt(aFullName, 0, KEntryAttReadOnly); |
321 err = fsSession.SetAtt(aFullName, 0, KEntryAttReadOnly); |
322 if(err != KErrNone) |
322 if(err != KErrNone) |
323 { |
323 { |
324 RDebug::Print(_L("Error %d changing \"%S\" file attributes.\n"), err, &aFullName); |
324 test.Printf(_L("Error %d changing \"%S\" file attributes.\n"), err, &aFullName); |
325 } |
325 } |
326 err = fsSession.Delete(aFullName); |
326 err = fsSession.Delete(aFullName); |
327 if(err != KErrNone) |
327 if(err != KErrNone) |
328 { |
328 { |
329 RDebug::Print(_L("Error %d deleting \"%S\" file.\n"), err, &aFullName); |
329 test.Printf(_L("Error %d deleting \"%S\" file.\n"), err, &aFullName); |
330 } |
330 } |
331 } |
331 } |
332 fsSession.Close(); |
332 fsSession.Close(); |
333 } |
333 } |
334 else |
334 else |
335 { |
335 { |
336 RDebug::Print(_L("Error %d connecting file session. File: %S.\n"), err, &aFullName); |
336 test.Printf(_L("Error %d connecting file session. File: %S.\n"), err, &aFullName); |
337 } |
337 } |
338 } |
338 } |
339 |
339 |
340 // |
340 // |
341 // Test the streaming framework. |
341 // Test the streaming framework. |