persistentstorage/dbms/tdbms/t_dblimit.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".
   260 	if(err == KErrNone)
   260 	if(err == KErrNone)
   261 		{
   261 		{
   262 		TEntry entry;
   262 		TEntry entry;
   263 		if(fsSession.Entry(aFullName, entry) == KErrNone)
   263 		if(fsSession.Entry(aFullName, entry) == KErrNone)
   264 			{
   264 			{
   265 			RDebug::Print(_L("Deleting \"%S\" file.\n"), &aFullName);
   265 			test.Printf(_L("Deleting \"%S\" file.\n"), &aFullName);
   266 			err = fsSession.SetAtt(aFullName, 0, KEntryAttReadOnly);
   266 			err = fsSession.SetAtt(aFullName, 0, KEntryAttReadOnly);
   267 			if(err != KErrNone)
   267 			if(err != KErrNone)
   268 				{
   268 				{
   269 				RDebug::Print(_L("Error %d changing \"%S\" file attributes.\n"), err, &aFullName);
   269 				test.Printf(_L("Error %d changing \"%S\" file attributes.\n"), err, &aFullName);
   270 				}
   270 				}
   271 			err = fsSession.Delete(aFullName);
   271 			err = fsSession.Delete(aFullName);
   272 			if(err != KErrNone)
   272 			if(err != KErrNone)
   273 				{
   273 				{
   274 				RDebug::Print(_L("Error %d deleting \"%S\" file.\n"), err, &aFullName);
   274 				test.Printf(_L("Error %d deleting \"%S\" file.\n"), err, &aFullName);
   275 				}
   275 				}
   276 			}
   276 			}
   277 		fsSession.Close();
   277 		fsSession.Close();
   278 		}
   278 		}
   279 	else
   279 	else
   280 		{
   280 		{
   281 		RDebug::Print(_L("Error %d connecting file session. File: %S.\n"), err, &aFullName);
   281 		test.Printf(_L("Error %d connecting file session. File: %S.\n"), err, &aFullName);
   282 		}
   282 		}
   283 	}
   283 	}
   284 
   284 
   285 GLDEF_C TInt E32Main()
   285 GLDEF_C TInt E32Main()
   286 //
   286 //