32 #include <mpxplaybackobserver.h> |
32 #include <mpxplaybackobserver.h> |
33 #include <mpxviewactivationobserver.h> |
33 #include <mpxviewactivationobserver.h> |
34 #include <mpxcollectionobserver.h> |
34 #include <mpxcollectionobserver.h> |
35 #include <mpxcollectionuihelperobserver.h> |
35 #include <mpxcollectionuihelperobserver.h> |
36 |
36 |
37 class CMpxVideoEmbeddedPdlHandler; |
|
38 class CMPXCommonUiHelper; |
37 class CMPXCommonUiHelper; |
39 class MMPXCollectionUiHelper; |
38 class MMPXCollectionUiHelper; |
40 class CAiwGenericParamList; |
|
41 class CVideoPlaylistUtility; |
39 class CVideoPlaylistUtility; |
42 class QMpxVideoPlaybackWrapper; |
40 class QMpxVideoPlaybackWrapper; |
43 |
41 |
44 /** |
42 /** |
45 * Application UI class. |
43 * Application UI class. |
69 |
67 |
70 /** |
68 /** |
71 * Opens the specified file in response to a corresponding message. |
69 * Opens the specified file in response to a corresponding message. |
72 * |
70 * |
73 * @param aFile File to be opened. |
71 * @param aFile File to be opened. |
74 * @param aParams aiw generic parameters for the file |
72 */ |
75 */ |
73 void OpenFileL( const TDesC& aFileName ); |
76 void OpenFileL( RFile& aFile, const CAiwGenericParamList* aParams ); |
74 |
77 |
|
78 /** |
75 /** |
79 * Opens the specified file in response to a corresponding message. |
76 * Opens the specified file in response to a corresponding message. |
80 * |
77 * |
81 * @param aFile File to be opened. |
78 * @param aFile File to be opened. |
82 */ |
79 */ |
83 void OpenFileL( const TDesC& aFileName ); |
80 void OpenFileL( RFile& aFile ); |
84 |
81 |
85 /** |
82 /** |
86 * Opens the specified mpx media object. |
83 * Opens the specified mpx media object. |
87 * |
84 * |
88 * @param aMedia Media to be opened. |
85 * @param aMedia Media to be opened. |
105 * Sets mpx components ready for application shutdown |
102 * Sets mpx components ready for application shutdown |
106 */ |
103 */ |
107 void PrepareCloseMpxL(); |
104 void PrepareCloseMpxL(); |
108 |
105 |
109 /** |
106 /** |
110 * Sets AppUiEngine in stand alone "mode" |
|
111 */ |
|
112 void StartStandAloneL(); |
|
113 |
|
114 /** |
|
115 * Handle media properties. |
107 * Handle media properties. |
116 */ |
108 */ |
117 void DoHandelCollectionMediaL( const CMPXMedia& aMedia ); |
109 void DoHandelCollectionMediaL( const CMPXMedia& aMedia ); |
118 |
|
119 /** |
|
120 * Steps one level up in collection path |
|
121 */ |
|
122 void StepBackCollectionPathL(); |
|
123 |
|
124 /** |
|
125 * Initialize the playback engine with a collection path |
|
126 * @param aPath The collection path to create the playlist from |
|
127 */ |
|
128 void InitPlaybackEngineL( CMPXCollectionPath& aPath ); |
|
129 |
|
130 /** |
|
131 * Process activation message. |
|
132 * @param aMsg reference to activation message |
|
133 */ |
|
134 void ProcessActivationMessageL( const TDesC8 &aMsg ); |
|
135 |
110 |
136 /* |
111 /* |
137 * Handle embedded playback message |
112 * Handle embedded playback message |
138 * @param aMessageUid message identification uid |
113 * @param aMessageUid message identification uid |
139 * @param aMessageParameters aiw generic parameters |
114 * @param aMessageParameters aiw generic parameters |
216 * @since 3.1 |
191 * @since 3.1 |
217 * @param aErr Error code |
192 * @param aErr Error code |
218 * @param aCategory Type of item to be opened. |
193 * @param aCategory Type of item to be opened. |
219 */ |
194 */ |
220 void HandleEmbeddedOpenL( TInt aErr, TMPXGeneralCategory aCategory ); |
195 void HandleEmbeddedOpenL( TInt aErr, TMPXGeneralCategory aCategory ); |
221 |
196 |
222 void CreateEmbeddedPdlPlaybackUtilityMemberVariablesL(); |
|
223 |
|
224 /* |
|
225 * Handles the "back" button. |
|
226 */ |
|
227 void HandleSoftKeyBackL(); |
|
228 |
|
229 /* |
|
230 * Processes shell commands. |
|
231 * @param aCommand |
|
232 * @param aDocumentName |
|
233 * @param aTail |
|
234 * @return ETrue if document name exists |
|
235 */ |
|
236 TBool ProcessCommandParametersL( TApaCommand aCommand, |
|
237 TFileName& aDocumentName, |
|
238 const TDesC8& aTail ); |
|
239 |
|
240 /* |
|
241 * Provides the static function for the callback to exit the application |
|
242 * Called by CIdle iIdle |
|
243 * @since 9.2 |
|
244 * @param aPtr Pointer to callback class |
|
245 * @return KErrNone |
|
246 */ |
|
247 static TInt ExitApplicationL( TAny* aPtr ); |
|
248 |
|
249 /* |
197 /* |
250 * Late initializatoin of members that can be delayed |
198 * Late initializatoin of members that can be delayed |
251 * to help improve startup time |
199 * to help improve startup time |
252 * @since 10.1 |
200 * @since 10.1 |
253 */ |
201 */ |
280 * |
228 * |
281 * @param aUrl - the ulr to be handled |
229 * @param aUrl - the ulr to be handled |
282 */ |
230 */ |
283 void HandleUrlDesL(const TDesC& aUrl); |
231 void HandleUrlDesL(const TDesC& aUrl); |
284 |
232 |
285 TPtrC GetLinkLC( const TDesC& aFileName, |
233 /** |
286 CMediaRecognizer::TMediaType aMediaType, |
234 * Handle collection message |
287 TBool aUseFileHandle = EFalse ); |
235 * |
288 |
236 * @param aMessage collection message |
289 TInt HandleAiwGenericParamListL( const CAiwGenericParamList* aParams ); |
237 */ |
290 |
|
291 /** |
|
292 * Handle collection message |
|
293 * |
|
294 * @param aMessage collection message |
|
295 */ |
|
296 void DoHandleCollectionMessageL( CMPXMessage* aMessage ); |
238 void DoHandleCollectionMessageL( CMPXMessage* aMessage ); |
297 |
239 |
298 void CreatePlaybackUtilityMemberVariablesL(); |
240 void CreatePlaybackUtilityL(); |
299 |
241 |
300 void CreateCollectionUtilityMemberVariablesL(); |
242 void CreateCollectionUtilityMemberVariablesL(); |
301 |
243 |
302 void CreateRemoteControlListenerL(); |
|
303 |
|
304 /* |
|
305 * Activates an active object to exit the application |
|
306 * @since 5.0 |
|
307 */ |
|
308 void ActivateExitActiveObject(); |
|
309 |
|
310 /* |
|
311 * Called to stop and exit the application |
|
312 * @since 9.2 |
|
313 * @return void |
|
314 */ |
|
315 virtual void DoExitApplicationL(); |
|
316 |
|
317 /* |
244 /* |
318 * used to send media info to plugin |
245 * used to send media info to plugin |
319 */ |
246 */ |
320 void UpdatePbPluginMediaL(); |
247 void UpdatePbPluginMediaL(); |
321 |
248 |
325 |
252 |
326 // |
253 // |
327 // Owned Utilities |
254 // Owned Utilities |
328 // |
255 // |
329 MMPXPlaybackUtility* iPlaybackUtility; |
256 MMPXPlaybackUtility* iPlaybackUtility; |
330 //Do we need this? MMPXViewUtility* iViewUtility; |
|
331 MMPXCollectionUtility* iCollectionUtility; |
257 MMPXCollectionUtility* iCollectionUtility; |
332 MMPXCollectionUiHelper* iCollectionUiHelper; // own |
258 MMPXCollectionUiHelper* iCollectionUiHelper; // own |
333 |
259 |
334 TUid iVideoCollectionId; |
260 TUid iVideoCollectionId; |
335 |
261 |
336 CIdle* iExitAo; |
|
337 CMediaRecognizer* iRecognizer; // own |
262 CMediaRecognizer* iRecognizer; // own |
338 CMpxVideoEmbeddedPdlHandler* iPdlHandler; // own |
|
339 |
263 |
340 TInt iAccessPointId; |
264 TInt iAccessPointId; |
341 TBool iMultilinkPlaylist; |
265 TBool iMultilinkPlaylist; |
342 TBool iSeekable; |
266 TBool iSeekable; |
343 TBool iUpdateSeekInfo; |
267 TBool iUpdateSeekInfo; |