equal
deleted
inserted
replaced
1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2007-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". |
433 TInt err = iSWIProcess.Create(KDummySWIPath, _L("1")); // 1 = install success |
433 TInt err = iSWIProcess.Create(KDummySWIPath, _L("1")); // 1 = install success |
434 TESTDIAGNOSTICERROR(err==KErrNone, |
434 TESTDIAGNOSTICERROR(err==KErrNone, |
435 _L("RProcess::Create expects KErrNone, returned value is = %d"),err); |
435 _L("RProcess::Create expects KErrNone, returned value is = %d"),err); |
436 if( err==KErrNone ) |
436 if( err==KErrNone ) |
437 { |
437 { |
438 iSWIProcess.Resume(); |
438 RApaLsSession ls; |
|
439 CApaCommandLine* cmdLine; |
|
440 User::LeaveIfError(ls.Connect()); |
|
441 CleanupClosePushL(ls); |
|
442 cmdLine = CApaCommandLine::NewLC(); |
|
443 cmdLine->SetExecutableNameL(KDummySWIPath); |
|
444 cmdLine->SetProcessEnvironmentL(iSWIProcess); |
|
445 iSWIProcess.Resume(); |
|
446 CleanupStack::PopAndDestroy(2); |
|
447 cmdLine = NULL; |
439 } |
448 } |
440 |
449 |
441 // Install the Active Scheduler. We need this for the SWIListener Active Object on the server to |
450 // Install the Active Scheduler. We need this for the SWIListener Active Object on the server to |
442 // be able to subscribe to the P&S install property. |
451 // be able to subscribe to the P&S install property. |
443 iActivescheduler = new(ELeave) CActiveScheduler(); |
452 iActivescheduler = new(ELeave) CActiveScheduler(); |