1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: ECOM Component |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_ACTION_HANDLER_APPLAUNCHER_H |
|
20 #define C_ACTION_HANDLER_APPLAUNCHER_H |
|
21 #include <apadef.h> |
|
22 #include "ahplugin.h" |
|
23 // FORWARD DECLARATION |
|
24 class CEikonEnv; |
|
25 class CLiwMap; |
|
26 class TLiwVariant; |
|
27 class TVwsViewId; |
|
28 |
|
29 /** |
|
30 * Application Launcher Plugin |
|
31 * |
|
32 * |
|
33 * @lib ?library |
|
34 * @since S60 ?S60_version *** for example, S60 v3.0 |
|
35 */ |
|
36 class CAHAppLauncher : public CAHPlugin |
|
37 { |
|
38 |
|
39 public: |
|
40 |
|
41 /** |
|
42 * Two phase contruction |
|
43 */ |
|
44 static CAHAppLauncher* NewL(); |
|
45 |
|
46 /** |
|
47 * Two phase contruction |
|
48 */ |
|
49 static CAHAppLauncher* NewLC(); |
|
50 |
|
51 /** |
|
52 * Destructor |
|
53 */ |
|
54 ~CAHAppLauncher(); |
|
55 |
|
56 /** |
|
57 * Executes provided action |
|
58 * |
|
59 * @return status code |
|
60 */ |
|
61 TInt ExecuteActionL( const CLiwMap* aMap ); |
|
62 private: |
|
63 |
|
64 TInt ExecuteTypeLaunchL( const CLiwMap* aMap ); |
|
65 TInt ExecuteCommmandLineL( const CLiwMap* aMap ); |
|
66 TInt ExecuteApaMessageL( const CLiwMap* aMap ); |
|
67 TInt ExecuteActivateViewL( const CLiwMap* aMap ); |
|
68 TInt StartDocumentL( const CLiwMap* aMap ); |
|
69 TInt StartAppL( const CLiwMap* aMap ); |
|
70 |
|
71 TInt ExtractDesL( const CLiwMap* aMap, RBuf& aString, |
|
72 const TDesC8& aMapName ); |
|
73 |
|
74 TInt ExtractDes8L( const CLiwMap* aMap, RBuf8& aString, |
|
75 const TDesC8& aMapName ); |
|
76 |
|
77 TInt ExtractUidL( const CLiwMap* aMap, TUid& aUid, |
|
78 const TDesC8& aMapName ); |
|
79 |
|
80 TInt ExtractViewIdL( const CLiwMap* aMap, TVwsViewId& aViewId ); |
|
81 |
|
82 TApaCommand GetCommandL( const CLiwMap* aMap ); |
|
83 |
|
84 /** |
|
85 * 2nd phase contructor |
|
86 */ |
|
87 void ConstructL(); |
|
88 |
|
89 private: |
|
90 //data |
|
91 |
|
92 /** |
|
93 * A static CEikonEnv |
|
94 */ |
|
95 CEikonEnv* iEnv; |
|
96 }; |
|
97 |
|
98 #endif // C_ACTION_HANDLER_APPLAUNCHER_H |
|