1 /* |
|
2 * Copyright (c) 2008 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_CAAPPHANDLERPLUGIN_H |
|
19 #define C_CAAPPHANDLERPLUGIN_H |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 #include "cahandlerplugin.h" |
|
24 |
|
25 class CEikonEnv; |
|
26 class CCaUninstallOperation; |
|
27 |
|
28 /** |
|
29 * ?one_line_short_description |
|
30 * ?more_complete_description |
|
31 * |
|
32 * @code |
|
33 * ?good_class_usage_example(s) |
|
34 * @endcode |
|
35 * |
|
36 * @lib ?library |
|
37 * @since S60 ?S60_version *** for example, S60 v3.0 |
|
38 */ |
|
39 NONSHARABLE_CLASS( CCaAppHandlerPlugin ): public CCaHandlerPlugin |
|
40 { |
|
41 |
|
42 public: |
|
43 |
|
44 static CCaAppHandlerPlugin* NewL(); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 virtual ~CCaAppHandlerPlugin(); |
|
50 |
|
51 protected: |
|
52 |
|
53 CCaAppHandlerPlugin(); |
|
54 |
|
55 void ConstructL(); |
|
56 |
|
57 public: |
|
58 |
|
59 // from CCaHandlerPlugin |
|
60 |
|
61 /** |
|
62 * Query support for item type. |
|
63 * @param aType Type. |
|
64 * @return ETrue if handler supports this type, EFalse otherwise. |
|
65 */ |
|
66 TBool SupportsType( const TDesC& aType ); |
|
67 |
|
68 /** |
|
69 * Handle command. |
|
70 * @param aItem Item of supported type. |
|
71 * @param aCommand Command. |
|
72 * @param aParams. Command parameters. |
|
73 * @param aStatus Observer request status. When the operation completes, |
|
74 * this status will be completed with the resulting error code. |
|
75 * @return Asynchronous operation. Owned by the caller. |
|
76 */ |
|
77 void HandleCommandL( CCaInnerEntry& aEntry, const TDesC8& aCommand ); |
|
78 |
|
79 private: |
|
80 |
|
81 void LaunchApplicationL( const TUid aUid, const TDesC8 &aParam, |
|
82 TInt aViewId ); |
|
83 void CloseApplicationL( CCaInnerEntry& aEntry ); |
|
84 |
|
85 private: |
|
86 // data |
|
87 |
|
88 CEikonEnv* iEikEnv; |
|
89 CCaUninstallOperation* iUninstallOperation; |
|
90 }; |
|
91 |
|
92 #endif // C_CAAPPHANDLERPLUGIN_H |
|