equal
deleted
inserted
replaced
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2007-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". |
18 #include <ssm/ssmcmd.hrh> |
18 #include <ssm/ssmcmd.hrh> |
19 #include "timeoutwaiter.h" |
19 #include "timeoutwaiter.h" |
20 #include "rvobservernotification.h" |
20 #include "rvobservernotification.h" |
21 #include "ssconst.h" |
21 #include "ssconst.h" |
22 #include "ssmdebug.h" |
22 #include "ssmdebug.h" |
23 |
23 |
|
24 #include <f32file.h> |
24 /** |
25 /** |
25 We are either starting for the first time, or an app or process has rendezvouzed. |
26 We are either starting for the first time, or an app or process has rendezvouzed. |
26 If the latter, check if it has done so without error and behave as appropriate. |
27 If the latter, check if it has done so without error and behave as appropriate. |
27 */ |
28 */ |
28 void CRvObserver::RunL() |
29 void CRvObserver::RunL() |
185 // This is done only when trying to start an already running server(process), as when we try to start an application |
186 // This is done only when trying to start an already running server(process), as when we try to start an application |
186 // which is already running, it doesn't return KErrAlreadyExists. It would be started as another instance of same application. |
187 // which is already running, it doesn't return KErrAlreadyExists. It would be started as another instance of same application. |
187 TFullName searchTerm(iStartupProperties->FileName()); |
188 TFullName searchTerm(iStartupProperties->FileName()); |
188 _LIT(KSearchAny, "*"); |
189 _LIT(KSearchAny, "*"); |
189 searchTerm += KSearchAny; |
190 searchTerm += KSearchAny; |
190 TFindProcess find(searchTerm); |
191 TFindProcess find(TParsePtrC(searchTerm).NameAndExt()); |
191 TFullName name; |
192 TFullName name; |
192 err = find.Next(name); |
193 err = find.Next(name); |
193 if(err == KErrNone) |
194 if(err == KErrNone) |
194 { |
195 { |
195 err = iProcess.Open(find); |
196 err = iProcess.Open(find); |