applayerprotocols/ftpengine/ftptest/FTPTEST.H
branchRCL_3
changeset 19 c0c2f28ace9c
parent 0 b16258d2340f
child 20 a0da872af3fa
equal deleted inserted replaced
18:5f1cd966e0d9 19:c0c2f28ace9c
     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".
    45 	__UHEAP_MARKEND;
    45 	__UHEAP_MARKEND;
    46 	return 0; // and return
    46 	return 0; // and return
    47     }
    47     }
    48 LOCAL_C void InitCommsL()
    48 LOCAL_C void InitCommsL()
    49 	{
    49 	{
       
    50 #ifndef SIROCCO_CODE_MIGRATION
    50 	TInt err;
    51 	TInt err;
    51 
    52 
    52 	err=User::LoadPhysicalDevice(PDD_NAME);
    53 	err=User::LoadPhysicalDevice(PDD_NAME);
    53 	if (err!=KErrNone && err!=KErrAlreadyExists)
    54 	if (err!=KErrNone && err!=KErrAlreadyExists)
    54 		User::Leave(err);
    55 		User::Leave(err);
    55 
    56 
    56 	err=User::LoadLogicalDevice(LDD_NAME);
    57 	err=User::LoadLogicalDevice(LDD_NAME);
    57 	if (err!=KErrNone && err!=KErrAlreadyExists)
    58 	if (err!=KErrNone && err!=KErrAlreadyExists)
    58 		User::Leave(err);
    59 		User::Leave(err);
       
    60 #endif //SIROCCO_CODE_MIGRATION
    59 	}
    61 	}
    60 
    62 
    61 LOCAL_C void callExampleL() // initialize and call example code under cleanup stack
    63 LOCAL_C void callExampleL() // initialize and call example code under cleanup stack
    62     {
    64     {
    63 	__FTPDebugConsole=Console::NewL(_L("FTP Test Code"),
    65 	__FTPDebugConsole=Console::NewL(_L("FTP Test Code"),