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: Action Handler test Plugin |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_AH_TEST_PLUGIN_H |
|
20 #define C_AH_TEST_PLUGIN_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <ahplugin.h> |
|
24 |
|
25 |
|
26 // FORWARD DECLARATION |
|
27 class CLiwMap; |
|
28 class TLiwVariant; |
|
29 class CEikonEnv; |
|
30 |
|
31 |
|
32 /** |
|
33 * Exemplary Action Handler Plugin. |
|
34 * Class extends the CAHPlugin in order to be able to be used |
|
35 * as a plugin for action handler. |
|
36 * |
|
37 * @lib exemplaryactionhandler |
|
38 * @since S60 S60 v5.0 |
|
39 */ |
|
40 class CActionHandlerTestPlugin : public CAHPlugin |
|
41 { |
|
42 |
|
43 public: |
|
44 |
|
45 /** |
|
46 * Standard Symbian 2 phase constructor |
|
47 */ |
|
48 static CActionHandlerTestPlugin* NewL(); |
|
49 |
|
50 /** |
|
51 * Standard Symbian 2 phase constructor |
|
52 */ |
|
53 static CActionHandlerTestPlugin* NewLC(); |
|
54 |
|
55 /** |
|
56 * Standard C++ destructor. |
|
57 */ |
|
58 ~CActionHandlerTestPlugin (); |
|
59 |
|
60 /** |
|
61 * Executes provided action |
|
62 * |
|
63 * @return status code |
|
64 */ |
|
65 TInt ExecuteActionL( const CLiwMap* aMap ); |
|
66 private: |
|
67 /** |
|
68 * Standard Symbian 2nd phase constructor. |
|
69 */ |
|
70 void ConstructL(); |
|
71 |
|
72 private: |
|
73 |
|
74 /** |
|
75 * Extract Variant |
|
76 */ |
|
77 TInt ExtractVariantL( const CLiwMap* aMap, |
|
78 TLiwVariant& aVariant, |
|
79 const TDesC8& aMapName ); |
|
80 |
|
81 }; |
|
82 |
|
83 #endif /* C_AH_TEST_PLUGIN_H */ |
|