photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlervideoplayback.cpp
branchRCL_3
changeset 35 420f6808bf21
parent 32 78ad99c24f08
--- a/photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlervideoplayback.cpp	Tue May 25 12:42:31 2010 +0300
+++ b/photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlervideoplayback.cpp	Wed Jun 09 09:41:51 2010 +0300
@@ -54,13 +54,6 @@
 
 const TUid KVideoHelixPlaybackPluginUid = { 0x10282551 };
 
-/**
- * Periodic interval for late construction.
- * GridView construction would take about 2 sec,
- * hence this can happen only after 2 secs 
- */
-const TTimeIntervalMicroSeconds32 KPeriodicInterval  = 2000000; // 2 sec
-
 #include "glxcommandfactory.h"
 
 // ---------------------------------------------------------------------------
@@ -99,12 +92,6 @@
     iUiUtility = CGlxUiUtility::UtilityL();
      
     iViewUtility = MMPXViewUtility::UtilityL(); 
-
-    //Start construct timer for late initialization of "MMPXPlaybackUtility"
-    TCallBack callback(
-            CGlxCommandHandlerVideoPlayback::LateConstructCallback, this);
-    iPbUtilityConstructTimer = CPeriodic::NewL(CActive::EPriorityIdle);
-    iPbUtilityConstructTimer->Start(KPeriodicInterval, 0, callback);
     
    	// Add supported commands
    	// Play videoplayback
@@ -132,12 +119,6 @@
         { 
         iViewUtility->Close(); 
         } 
-
-    if (iPbUtilityConstructTimer)
-        {
-        iPbUtilityConstructTimer->Cancel();
-        delete iPbUtilityConstructTimer;
-        }
     
     if ( iPlaybackUtility ) 
         { 
@@ -477,28 +458,6 @@
     } 
 
 // -----------------------------------------------------------------------------
-// CGlxCommandHandlerVideoPlayback::LateConstructCallback
-// -----------------------------------------------------------------------------
-TInt CGlxCommandHandlerVideoPlayback::LateConstructCallback(TAny* aPtr)
-    {
-    TRACER("CGlxCommandHandlerVideoPlayback::LateConstructCallback");
-    static_cast<CGlxCommandHandlerVideoPlayback*>(aPtr)->DoLateConstruct();
-    return KErrNone;
-    }
-
-// -----------------------------------------------------------------------------
-// CGlxCommandHandlerVideoPlayback::DoLateConstruct
-// -----------------------------------------------------------------------------
-void CGlxCommandHandlerVideoPlayback::DoLateConstruct()
-    {
-    TRACER("CGlxCommandHandlerVideoPlayback::DoLateConstruct");
-    //Cancel the periodic timer
-    iPbUtilityConstructTimer->Cancel();
-    //Start 'MMPXPlaybackUtility' construction
-    TRAP_IGNORE( PlaybackUtilityL());
-    }
-
-// -----------------------------------------------------------------------------
 // CGlxCommandHandlerVideoPlayback::PlaybackUtilityL
 // -----------------------------------------------------------------------------
 void CGlxCommandHandlerVideoPlayback::PlaybackUtilityL()