|
1 /* |
|
2 * Copyright (c) 2006 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: MPX Avkon view plugin definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CMPXAKNVIEWPLUGIN_H |
|
21 #define CMPXAKNVIEWPLUGIN_H |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include "mpxviewplugin.h" |
|
26 |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CAknView; |
|
30 |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * MPX Avkon view plugin definition. |
|
36 * |
|
37 * @lib mpxviewplugin.lib |
|
38 */ |
|
39 class CMPXAknViewPlugin : public CMPXViewPlugin |
|
40 { |
|
41 public: |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 * |
|
46 * @since S60 3.0 |
|
47 */ |
|
48 IMPORT_C virtual ~CMPXAknViewPlugin(); |
|
49 |
|
50 protected: |
|
51 |
|
52 /** |
|
53 * Interface method to construct Avkon view. |
|
54 * |
|
55 * @since S60 3.0 |
|
56 * @return Pointer to a newly created Avkon view. |
|
57 */ |
|
58 virtual CAknView* ConstructViewLC() = 0; |
|
59 |
|
60 // from base class CMPXViewPlugin |
|
61 |
|
62 /** |
|
63 * Interface method to create view. |
|
64 * From CMPXViewPlugin |
|
65 * |
|
66 * @since S60 3.0 |
|
67 */ |
|
68 IMPORT_C virtual void CreateViewL(); |
|
69 |
|
70 /** |
|
71 * Interface method to destroy view. |
|
72 * From CMPXViewPlugin |
|
73 * |
|
74 * @since S60 v.0 |
|
75 */ |
|
76 IMPORT_C virtual void DestroyView(); |
|
77 |
|
78 /** |
|
79 * Interface method to activate view. |
|
80 * From CMPXViewPlugin |
|
81 * |
|
82 * @since S60 3.0 |
|
83 * @param aParam Parameter required to activate the view. |
|
84 */ |
|
85 IMPORT_C virtual void ActivateViewL( const TDesC* aParam = NULL ); |
|
86 |
|
87 /** |
|
88 * Interface method to activate as default view. |
|
89 * Will not bring to foreground. |
|
90 * From CMPXViewPlugin |
|
91 * |
|
92 * @since S60 3.0 |
|
93 */ |
|
94 IMPORT_C virtual void SetAsDefaultViewL(); |
|
95 |
|
96 /** |
|
97 * Interface method to deactivate view. |
|
98 * From CMPXViewPlugin |
|
99 * |
|
100 * @since S60 3.0 |
|
101 */ |
|
102 IMPORT_C virtual void DeactivateView(); |
|
103 |
|
104 protected: // data |
|
105 |
|
106 /** |
|
107 * Avkon view that associates with this plugin. |
|
108 * Not own. |
|
109 */ |
|
110 CAknView* iView; |
|
111 }; |
|
112 |
|
113 #endif // CMPXAKNVIEWPLUGIN_H |
|
114 |
|
115 // End of File |