applayerprotocols/httpexamples/httpexampleclient/httpexampleutils.cpp
branchRCL_3
changeset 39 c0c2f28ace9c
parent 0 b16258d2340f
child 40 a0da872af3fa
equal deleted inserted replaced
37:5f1cd966e0d9 39:c0c2f28ace9c
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2001-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".
    33 #define LDD_NAME		_L("ECOMM")
    33 #define LDD_NAME		_L("ECOMM")
    34 
    34 
    35 
    35 
    36 void CHttpExampleUtils::InitCommsL()
    36 void CHttpExampleUtils::InitCommsL()
    37 	{
    37 	{
       
    38 #ifndef SIROCCO_CODE_MIGRATION
    38 	TInt ret = User::LoadPhysicalDevice(PDD_NAME);
    39 	TInt ret = User::LoadPhysicalDevice(PDD_NAME);
    39 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
    40 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
    40 
    41 
    41 #ifndef __WINS__
    42 #ifndef __WINS__
    42 	ret = User::LoadPhysicalDevice(PDD2_NAME);
    43 	ret = User::LoadPhysicalDevice(PDD2_NAME);
    46 
    47 
    47 	ret = User::LoadLogicalDevice(LDD_NAME);
    48 	ret = User::LoadLogicalDevice(LDD_NAME);
    48 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
    49 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
    49 	ret = StartC32();
    50 	ret = StartC32();
    50 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
    51 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
       
    52 #endif //SIROCCO_CODE_MIGRATION
    51 	}
    53 	}
    52 
    54 
    53 
    55 
    54 CHttpExampleUtils* CHttpExampleUtils::NewL(const TDesC& aTestName)
    56 CHttpExampleUtils* CHttpExampleUtils::NewL(const TDesC& aTestName)
    55 	{
    57 	{