persistentstorage/dbms/tdbms/t_dbwindow.cpp
changeset 55 44f437012c90
parent 0 08ec8eefde2f
equal deleted inserted replaced
51:7d4490026038 55:44f437012c90
     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".
   468 	if(err == KErrNone)
   468 	if(err == KErrNone)
   469 		{
   469 		{
   470 		TEntry entry;
   470 		TEntry entry;
   471 		if(fsSession.Entry(aFullName, entry) == KErrNone)
   471 		if(fsSession.Entry(aFullName, entry) == KErrNone)
   472 			{
   472 			{
   473 			RDebug::Print(_L("Deleting \"%S\" file.\n"), &aFullName);
   473 			test.Printf(_L("Deleting \"%S\" file.\n"), &aFullName);
   474 			err = fsSession.SetAtt(aFullName, 0, KEntryAttReadOnly);
   474 			err = fsSession.SetAtt(aFullName, 0, KEntryAttReadOnly);
   475 			if(err != KErrNone)
   475 			if(err != KErrNone)
   476 				{
   476 				{
   477 				RDebug::Print(_L("Error %d changing \"%S\" file attributes.\n"), err, &aFullName);
   477 				test.Printf(_L("Error %d changing \"%S\" file attributes.\n"), err, &aFullName);
   478 				}
   478 				}
   479 			err = fsSession.Delete(aFullName);
   479 			err = fsSession.Delete(aFullName);
   480 			if(err != KErrNone)
   480 			if(err != KErrNone)
   481 				{
   481 				{
   482 				RDebug::Print(_L("Error %d deleting \"%S\" file.\n"), err, &aFullName);
   482 				test.Printf(_L("Error %d deleting \"%S\" file.\n"), err, &aFullName);
   483 				}
   483 				}
   484 			}
   484 			}
   485 		fsSession.Close();
   485 		fsSession.Close();
   486 		}
   486 		}
   487 	else
   487 	else
   488 		{
   488 		{
   489 		RDebug::Print(_L("Error %d connecting file session. File: %S.\n"), err, &aFullName);
   489 		test.Printf(_L("Error %d connecting file session. File: %S.\n"), err, &aFullName);
   490 		}
   490 		}
   491 	}
   491 	}
   492 
   492 
   493 //
   493 //
   494 // Test streaming conversions.
   494 // Test streaming conversions.