equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: App UI engine |
14 * Description: App UI engine |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: e92_31 % |
18 // Version : %version: e92_33 % |
19 |
19 |
20 |
20 |
21 #ifndef CMPXVIDEOPLAYERAPPUIENGINE_H |
21 #ifndef CMPXVIDEOPLAYERAPPUIENGINE_H |
22 #define CMPXVIDEOPLAYERAPPUIENGINE_H |
22 #define CMPXVIDEOPLAYERAPPUIENGINE_H |
23 |
23 |
61 * Destructor. |
61 * Destructor. |
62 */ |
62 */ |
63 virtual ~CMpxVideoPlayerAppUiEngine(); |
63 virtual ~CMpxVideoPlayerAppUiEngine(); |
64 |
64 |
65 public: |
65 public: |
66 /* |
66 |
67 * Retrieve the playback utility pointer |
67 /* |
68 */ |
68 * Retrieves playback utility and creates it if needed |
69 inline MMPXPlaybackUtility* PlaybackUtility(); |
69 */ |
|
70 MMPXPlaybackUtility& PlaybackUtilityL(); |
70 |
71 |
71 /** |
72 /** |
72 * Opens the specified file in response to a corresponding message. |
73 * Opens the specified file in response to a corresponding message. |
73 * |
74 * |
74 * @param aFile File to be opened. |
75 * @param aFile File to be opened. |
184 * @param aErr Error code |
185 * @param aErr Error code |
185 * @param aCategory Type of item to be opened. |
186 * @param aCategory Type of item to be opened. |
186 */ |
187 */ |
187 void HandleEmbeddedOpenL( TInt aErr, TMPXGeneralCategory aCategory ); |
188 void HandleEmbeddedOpenL( TInt aErr, TMPXGeneralCategory aCategory ); |
188 |
189 |
189 void CreateEmbeddedPdlPlaybackUtilityMemberVariablesL(); |
190 void PreLoadPdlPlaybackViewL(); |
190 |
191 |
191 /* |
192 /* |
192 * Handles the "back" button. |
193 * Handles the "back" button. |
193 */ |
194 */ |
194 void HandleSoftKeyBackL(); |
195 void HandleSoftKeyBackL(); |
221 void ClearPdlInformation(); |
222 void ClearPdlInformation(); |
222 |
223 |
223 void InitializeFileL( const TDesC& aFileName ); |
224 void InitializeFileL( const TDesC& aFileName ); |
224 |
225 |
225 void ClosePlaybackPluginL(); |
226 void ClosePlaybackPluginL(); |
|
227 |
|
228 void SignalViewPdlReloadingL(); |
226 |
229 |
227 void SignalViewPdlReloading(); |
230 /* |
|
231 * Activates an active object to finish the |
|
232 * initialization of the standalone application |
|
233 */ |
|
234 void ActivateLateConstructTimerL(); |
228 |
235 |
229 private: |
236 private: |
230 /** |
237 /** |
231 * Constructor |
238 * Constructor |
232 */ |
239 */ |
263 * Handle collection message |
270 * Handle collection message |
264 * |
271 * |
265 * @param aMessage collection message |
272 * @param aMessage collection message |
266 */ |
273 */ |
267 void DoHandleCollectionMessageL( CMPXMessage* aMessage ); |
274 void DoHandleCollectionMessageL( CMPXMessage* aMessage ); |
268 |
|
269 void CreatePlaybackUtilityMemberVariablesL(); |
|
270 |
275 |
271 void CreateCollectionUtilityMemberVariablesL(); |
276 void CreateCollectionUtilityMemberVariablesL(); |
272 |
277 |
273 void CreateRemoteControlListenerL(); |
278 void CreateRemoteControlListenerL(); |
274 |
279 |
290 */ |
295 */ |
291 void UpdatePbPluginMediaL(); |
296 void UpdatePbPluginMediaL(); |
292 |
297 |
293 void InitializeStreamingLinkL( const TDesC& aUri ); |
298 void InitializeStreamingLinkL( const TDesC& aUri ); |
294 void InitializePlaylistL( const CMPXCollectionPlaylist& aPlaylist, TBool aPlay ); |
299 void InitializePlaylistL( const CMPXCollectionPlaylist& aPlaylist, TBool aPlay ); |
|
300 |
|
301 /* |
|
302 * Provides the static function for the callback to |
|
303 * finish the standalone application construction |
|
304 * Called by CPeriodic iConstructTimer |
|
305 * @param aPtr Pointer to callback class |
|
306 * @return KErrNone |
|
307 */ |
|
308 static TInt LateConstructCallback( TAny* aPtr ); |
|
309 |
|
310 /* |
|
311 * Called to finalize the standalone |
|
312 * application initialization. |
|
313 */ |
|
314 virtual void DoLateConstructL(); |
295 |
315 |
296 private: // data |
316 private: // data |
297 |
317 |
298 CMpxVideoPlayerAppUi* iAppUi; |
318 CMpxVideoPlayerAppUi* iAppUi; |
299 |
319 |
303 MMPXPlaybackUtility* iPlaybackUtility; |
323 MMPXPlaybackUtility* iPlaybackUtility; |
304 MMPXViewUtility* iViewUtility; |
324 MMPXViewUtility* iViewUtility; |
305 MMPXCollectionUtility* iCollectionUtility; |
325 MMPXCollectionUtility* iCollectionUtility; |
306 MMPXCollectionUiHelper* iCollectionUiHelper; // own |
326 MMPXCollectionUiHelper* iCollectionUiHelper; // own |
307 |
327 |
308 TUid iVideoCollectionId; |
328 CPeriodic* iConstructTimer; |
309 |
|
310 CIdle* iExitAo; |
329 CIdle* iExitAo; |
311 CMediaRecognizer* iRecognizer; // own |
330 CMediaRecognizer* iRecognizer; // own |
312 CMpxVideoEmbeddedPdlHandler* iPdlHandler; // own |
331 CMpxVideoEmbeddedPdlHandler* iPdlHandler; // own |
313 |
332 |
314 TInt iAccessPointId; |
333 TInt iAccessPointId; |
315 TBool iMultilinkPlaylist; |
334 TBool iMultilinkPlaylist; |
316 TBool iSeekable; |
335 TBool iSeekable; |
317 TBool iUpdateSeekInfo; |
336 TBool iUpdateSeekInfo; |
318 }; |
337 }; |
319 |
|
320 // |
|
321 // Inline methods |
|
322 // |
|
323 inline |
|
324 MMPXPlaybackUtility* CMpxVideoPlayerAppUiEngine::PlaybackUtility() |
|
325 { |
|
326 return iPlaybackUtility; |
|
327 } |
|
328 |
338 |
329 #endif // CMPXVIDEOPLAYERAPPUIENGINE_H |
339 #endif // CMPXVIDEOPLAYERAPPUIENGINE_H |