diff -r 7e41d162e158 -r abbed5a4b42a networkingtestandutils/networkingintegrationtest/Te_Msg/src/TeMsgStep.cpp --- a/networkingtestandutils/networkingintegrationtest/Te_Msg/src/TeMsgStep.cpp Thu Aug 19 11:25:30 2010 +0300 +++ b/networkingtestandutils/networkingintegrationtest/Te_Msg/src/TeMsgStep.cpp Tue Aug 31 16:45:15 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -29,6 +29,7 @@ #include #include #include +#include _LIT(KIap, "Iap"); @@ -46,9 +47,9 @@ #define PDD_NAME _L("EUART1") #define LDD_NAME _L("ECOMM") #endif - +#ifndef SIROCCO_CODE_MIGRATION const TInt iapCount = 2; - +#endif CTestConnectStep::CTestConnectStep():iIapNumber(0), iPort(0), iScheduler(NULL) /** * Constructor @@ -80,6 +81,9 @@ { iScheduler = new CActiveScheduler(); CActiveScheduler::Install(iScheduler); +#ifdef SIROCCO_CODE_MIGRATION + TInt err; +#else INFO_PRINTF1(_L("Load PDD")); TInt err = User::LoadPhysicalDevice(PDD_NAME); if (err != KErrNone && err != KErrAlreadyExists) @@ -88,7 +92,7 @@ SetTestStepResult(EFail); User::Leave(err); } - +#endif INFO_PRINTF1(_L("Load LDD")); err = User::LoadLogicalDevice(LDD_NAME); if (err != KErrNone && err != KErrAlreadyExists) @@ -155,6 +159,16 @@ INFO_PRINTF2((_L("IapNumber = %d")), iIapNumber); TRequestStatus status; +#ifdef SIROCCO_CODE_MIGRATION + TCommDbConnPref prefs; + prefs.SetIapId(iIapNumber); + prefs.SetDialogPreference(ECommDbDialogPrefDoNotPrompt); + const TUid KMyPropertyCat = {0x101FD9C5}; + const TUint32 KMyPropertyDestPortv4 = 67; + TInt err = RProperty::Define(KMyPropertyCat, KMyPropertyDestPortv4, RProperty::EInt, TSecurityPolicy(TSecurityPolicy::EAlwaysPass), + TSecurityPolicy(ECapabilityWriteDeviceData)); + User::LeaveIfError(RProperty::Set(KMyPropertyCat, KMyPropertyDestPortv4, 93)); +#else TInt rank = 1; @@ -179,6 +193,7 @@ } prefs.SetConnectionAttempts(rank-1); +#endif // Start the connection iConnection.Start(prefs, status);