photosgallery/viewframework/commandhandlers/commoncommandhandlers/inc/glxcommandhandlervideoplayback.h
branchRCL_3
changeset 32 78ad99c24f08
parent 0 4e91876724a2
child 35 420f6808bf21
--- a/photosgallery/viewframework/commandhandlers/commoncommandhandlers/inc/glxcommandhandlervideoplayback.h	Tue May 11 16:13:40 2010 +0300
+++ b/photosgallery/viewframework/commandhandlers/commoncommandhandlers/inc/glxcommandhandlervideoplayback.h	Tue May 25 12:42:31 2010 +0300
@@ -129,6 +129,25 @@
     void DoHandlePlaybackMessageL( const CMPXMessage& aMessage ); 
  
     void HandlePlaybackPlayerChangedL(); 
+    
+    /**
+	 *  Provides the static function for the callback to 
+	 *  finish the MMPXPlaybackUtility construction
+	 *  Called by CPeriodic iConstructTimer
+	 *  @param aPtr Pointer to callback class
+	 *  @return KErrNone
+	 */
+	static TInt LateConstructCallback( TAny* aPtr );
+	
+	/**
+	 *  Called to finalize the MMPXPlaybackUtility construction.
+	 */
+	virtual void DoLateConstruct();
+	
+	/**
+	 *  Retrieves playback utility and creates it if needed
+	 */
+	void PlaybackUtilityL();
   
 private:
     // Pointer to the CGlxHuiUtility (reference counted).
@@ -148,6 +167,12 @@
     
     MMPXPlaybackUtility*   iPlaybackUtility; 
     MMPXViewUtility*       iViewUtility; 
+    
+    /**
+	 * For Late construction of 'MMPXPlaybackUtility'.
+	 */
+	CPeriodic* iPbUtilityConstructTimer;
+        
  	};
 
 #endif // C_GLXCOMMANDHANDLERVIDEOPLAYBACK_H