|
1 // Copyright (c) 2007-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 #ifndef __CMDSTARTAPP_H__ |
|
17 #define __CMDSTARTAPP_H__ |
|
18 |
|
19 #include "cmdstarterbase.h" |
|
20 |
|
21 class RReadStream; |
|
22 class TSsmCommandParameters; |
|
23 class CSsmStartupProperties; |
|
24 |
|
25 /** |
|
26 Built-in command to start an application |
|
27 @internalComponent |
|
28 @released |
|
29 */ |
|
30 NONSHARABLE_CLASS(CCmdStartApp) : public CCmdStarterBase |
|
31 { |
|
32 public: |
|
33 static CCmdStartApp* NewL(RReadStream& aReadStream); |
|
34 static CCmdStartApp* NewL(TCmdErrorSeverity aSeverity, const CSsmStartupProperties *aAppInfo); |
|
35 #ifdef SYMBIAN_SSM_FLEXIBLE_MERGE |
|
36 static CCmdStartApp* NewL(TCmdErrorSeverity aSeverity, const CSsmStartupProperties *aAppInfo, const TUint16 aPriority); |
|
37 #endif |
|
38 static CCmdStartApp* NewL(TSsmCommandParameters& aCommandParameters); |
|
39 //Must be used only by CLE to reconstruct the command |
|
40 static CCmdStartApp* NewLC(const CCmdStartApp& aCmdStartApp, CSsmCommandUtilProvider* aUtilProvider); |
|
41 ~CCmdStartApp(); |
|
42 |
|
43 private: |
|
44 CCmdStartApp(); |
|
45 CCmdStartApp(TCmdErrorSeverity aSeverity); |
|
46 #ifdef SYMBIAN_SSM_FLEXIBLE_MERGE |
|
47 CCmdStartApp(TCmdErrorSeverity aSeverity, const TUint16 aPriority); |
|
48 #endif |
|
49 static TInt MaxSupportedVersion(); |
|
50 void ConstructL(TSsmCommandParameters& aCommandParameters); |
|
51 void ConstructL(RReadStream& aReadStream); |
|
52 void ConstructL(const CSsmStartupProperties *aAppInfo); |
|
53 void ConstructL(const CCmdStartApp& aCmdStartApp, CSsmCommandUtilProvider* aUtilProvider); |
|
54 }; |
|
55 |
|
56 #endif // __CMDSTARTAPP_H__ |