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