printingservices/printerdriversupport/tps/T_PDR.CPP
changeset 110 7f25ef56562d
parent 0 5d03bc08d59c
child 152 9f1c3fea0f87
equal deleted inserted replaced
98:bf7481649c98 110:7f25ef56562d
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-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".
    19  @internalComponent Internal Symbian test code
    19  @internalComponent Internal Symbian test code
    20 */
    20 */
    21 
    21 
    22 #include "T_PDR.H"
    22 #include "T_PDR.H"
    23 #include <graphics/fbsdefs.h>
    23 #include <graphics/fbsdefs.h>
       
    24 #include "prnpath.h"
    24 
    25 
    25 
    26 
    26 #if defined (__WINS__)
    27 #if defined (__WINS__)
    27 #define PDD_NAME _L("ECDRV")
    28 #define PDD_NAME _L("ECDRV")
    28 #define LDD_NAME _L("ECOMM")
    29 #define LDD_NAME _L("ECOMM")
   371 
   372 
   372 	RFile file;
   373 	RFile file;
   373 	RFs fs;
   374 	RFs fs;
   374 	ret=fs.Connect();
   375 	ret=fs.Connect();
   375 	TEST(ret==KErrNone);
   376 	TEST(ret==KErrNone);
   376 #if defined(__X86GCC__)
       
   377 	_LIT(KPath,"C:\\system\\data\\");
   377 	_LIT(KPath,"C:\\system\\data\\");
   378 	fs.MkDirAll(KPath);
   378 	fs.MkDirAll(KPath);
   379 #endif	//__X86GCC__
       
   380 	ret=file.Replace(fs,_L("C:\\system\\data\\WIDTHS.TMP"),EFileStream|EFileWrite);
   379 	ret=file.Replace(fs,_L("C:\\system\\data\\WIDTHS.TMP"),EFileStream|EFileWrite);
   381 	if (ret!=KErrNone)
   380 	if (ret!=KErrNone)
   382 		{
   381 		{
   383 		_LIT(KLog,"Doing Replace on file C:\\system\\data\\WIDTHS.TMP gave error %d");
   382 		_LIT(KLog,"Doing Replace on file C:\\system\\data\\WIDTHS.TMP gave error %d");
   384 		INFO_PRINTF2(KLog,ret);
   383 		INFO_PRINTF2(KLog,ret);