applayerprotocols/ftpengine/ftptest/FTPTEST.H
branchRCL_3
changeset 40 a0da872af3fa
parent 39 c0c2f28ace9c
equal deleted inserted replaced
39:c0c2f28ace9c 40:a0da872af3fa
     1 // Copyright (c) 1998-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1998-2009 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
       
    51 	TInt err;
    50 	TInt err;
    52 
    51 
    53 	err=User::LoadPhysicalDevice(PDD_NAME);
    52 	err=User::LoadPhysicalDevice(PDD_NAME);
    54 	if (err!=KErrNone && err!=KErrAlreadyExists)
    53 	if (err!=KErrNone && err!=KErrAlreadyExists)
    55 		User::Leave(err);
    54 		User::Leave(err);
    56 
    55 
    57 	err=User::LoadLogicalDevice(LDD_NAME);
    56 	err=User::LoadLogicalDevice(LDD_NAME);
    58 	if (err!=KErrNone && err!=KErrAlreadyExists)
    57 	if (err!=KErrNone && err!=KErrAlreadyExists)
    59 		User::Leave(err);
    58 		User::Leave(err);
    60 #endif //SIROCCO_CODE_MIGRATION
       
    61 	}
    59 	}
    62 
    60 
    63 LOCAL_C void callExampleL() // initialize and call example code under cleanup stack
    61 LOCAL_C void callExampleL() // initialize and call example code under cleanup stack
    64     {
    62     {
    65 	__FTPDebugConsole=Console::NewL(_L("FTP Test Code"),
    63 	__FTPDebugConsole=Console::NewL(_L("FTP Test Code"),