|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #if !defined (__APPSTARTER2_H__) |
|
17 #define __APPSTARTER2_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include "StartupCommand.h" |
|
21 #include "startuputilprovider.h" |
|
22 |
|
23 /** A startup command object responsible for starting an application |
|
24 @internalComponent |
|
25 @deprecated |
|
26 */ |
|
27 class CAppStarter : public CBase, public MStartupCommand |
|
28 { |
|
29 public: |
|
30 static CAppStarter* NewL(CStartupProperties* aAppInfo, CStartupUtilProvider& aProvider); |
|
31 static CAppStarter* NewLC(CStartupProperties* aAppInfo, CStartupUtilProvider& aProvider); |
|
32 ~CAppStarter(); |
|
33 |
|
34 // from MStartupCommand |
|
35 void Execute(TRequestStatus& aCallerStatus); |
|
36 void Release(); |
|
37 |
|
38 CStartupProperties& AppInfo(); |
|
39 RProcess& Process(); |
|
40 TRequestStatus& CommandStatus(); |
|
41 |
|
42 private: |
|
43 CAppStarter(CStartupProperties* aAppInfo, CStartupUtilProvider& aProvider); |
|
44 |
|
45 private: |
|
46 CStartupUtilProvider& iProvider; |
|
47 CStartupProperties *iAppInfo; |
|
48 |
|
49 RProcess iProcess; |
|
50 TRequestStatus iCommandStatus; |
|
51 }; |
|
52 |
|
53 #endif // __APPSTARTER2_H__ |