20 #define XNAPPUIADAPTER_H |
20 #define XNAPPUIADAPTER_H |
21 |
21 |
22 // System includes |
22 // System includes |
23 #include <aknViewAppUi.h> |
23 #include <aknViewAppUi.h> |
24 |
24 |
|
25 // User includes |
|
26 |
25 // Forward declarations |
27 // Forward declarations |
|
28 class TAiFwPublisherInfo; |
|
29 class THsPublisherInfo; |
26 class TXnUiEngineAppIf; |
30 class TXnUiEngineAppIf; |
27 class CXnNodeAppIf; |
31 class CXnNodeAppIf; |
|
32 class CXnNode; |
28 class CXnDomNode; |
33 class CXnDomNode; |
29 class CXnAppUiAdapterImpl; |
34 class CXnAppUiAdapterImpl; |
30 class CXnUiEngine; |
35 class CXnUiEngine; |
31 class CXnUiStateListener; |
36 class CXnUiStateListener; |
32 class CXnViewManager; |
37 class CXnViewManager; |
33 class CXnViewAdapter; |
38 class CXnViewAdapter; |
34 class MHsContentControlUi; |
39 class MHsContentControlUi; |
35 class CXnEffectManager; |
40 class CXnEffectManager; |
36 class MHsContentControl; |
41 class MHsContentControl; |
|
42 class CXnItemActivator; |
37 |
43 |
38 // Class declaration |
44 // Class declaration |
39 /** |
45 /** |
40 * Avkon adapter for Xuikon. |
46 * Avkon adapter for Xuikon. |
41 * |
47 * |
98 * Handles data plugin loading. |
104 * Handles data plugin loading. |
99 * To be overriden by subclass. |
105 * To be overriden by subclass. |
100 * |
106 * |
101 * @since S60 5.0 |
107 * @since S60 5.0 |
102 * @param aPublisher Publisher to load |
108 * @param aPublisher Publisher to load |
103 * @param aReason Load reason |
109 */ |
104 * @return KErrNone if succesful, system wide error code otherwise |
110 IMPORT_C virtual void LoadPublisher( |
105 */ |
111 const TAiFwPublisherInfo& aPublisher ); |
106 IMPORT_C virtual TInt LoadPublisher( |
|
107 CXnNodeAppIf& aPublisher, TInt aReason ); |
|
108 |
112 |
109 /** |
113 /** |
110 * Handles data plugin destroying. |
114 * Handles data plugin destroying. |
111 * To be overriden by subclass. |
115 * To be overriden by subclass. |
112 * |
116 * |
113 * @since S60 5.0 |
117 * @since S60 5.0 |
114 * @param aPublisher Publisher to destroy |
118 * @param aPublisher Publisher to destroy |
115 * @param aReason Destroy reason |
119 */ |
116 * @return KErrNone if succesful, system wide error code otherwise |
120 IMPORT_C virtual void DestroyPublisher( |
117 */ |
121 const TAiFwPublisherInfo& aPublisher ); |
118 IMPORT_C virtual TInt DestroyPublisher( |
|
119 CXnNodeAppIf& aPublisher, TInt aReason ); |
|
120 |
122 |
121 /** |
123 /** |
122 * Handles dynamic menuitem element initialisation. |
124 * Handles dynamic menuitem element initialisation. |
123 * To be overriden by subclass. |
125 * To be overriden by subclass. |
124 * |
126 * |
157 * @param aDestination Destination node for the event |
159 * @param aDestination Destination node for the event |
158 */ |
160 */ |
159 IMPORT_C virtual void HandleEventL( const TDesC& aEvent, |
161 IMPORT_C virtual void HandleEventL( const TDesC& aEvent, |
160 CXnNodeAppIf& aDestination ); |
162 CXnNodeAppIf& aDestination ); |
161 |
163 |
|
164 /** |
|
165 * Constructs THsPublisherInfo from aNode |
|
166 * To be overriden by subclass. |
|
167 * |
|
168 * @since S60 5.2 |
|
169 * @param aNode <contentsource> elements |
|
170 * @param aInfo Publisher info which is constructed from aNode |
|
171 * @return KErrNone if aInfo is succesfully build |
|
172 */ |
|
173 EXPORT_C virtual TInt PublisherInfo( CXnNodeAppIf& aNode, |
|
174 THsPublisherInfo& aInfo ); |
|
175 |
|
176 /** |
|
177 * Constructs THsPublisherInfo from aNode |
|
178 * |
|
179 * @since S60 5.2 |
|
180 * @param aNode <contentsource> elements |
|
181 * @param aInfo Publisher info which is constructed from aNode |
|
182 * @return KErrNone if aInfo is succesfully build |
|
183 */ |
|
184 TInt PublisherInfo( CXnNode& aNode, THsPublisherInfo& aInfo ); |
|
185 |
162 /** |
186 /** |
163 * This is called when (initial) view is ready |
187 * This is called when (initial) view is ready |
164 * To be overriden by subclass. |
188 * To be overriden by subclass. |
165 * |
189 * |
166 * @since S60 5.2 |
190 * @since S60 5.2 |
262 * @return Interface to content control server, NULL if not present |
286 * @return Interface to content control server, NULL if not present |
263 */ |
287 */ |
264 MHsContentControl* HsContentControlSrv() const; |
288 MHsContentControl* HsContentControlSrv() const; |
265 |
289 |
266 /** |
290 /** |
|
291 * Gets a Item activator |
|
292 * |
|
293 * @since S60 5.0 |
|
294 * @return Item activator |
|
295 */ |
|
296 CXnItemActivator& ItemActivator() const; |
|
297 |
|
298 /** |
267 * Queries whether the focus control is visible |
299 * Queries whether the focus control is visible |
268 * |
300 * |
269 * @since S60 5.0 |
301 * @since S60 5.0 |
270 * @return ETrue focus is shown, EFalse otherwise |
302 * @return ETrue focus is shown, EFalse otherwise |
271 */ |
303 */ |