photosgallery/slideshow/engine/controlsrc/shwviewcontrol.cpp
branchRCL_3
changeset 35 420f6808bf21
parent 18 bcb43dc84c44
equal deleted inserted replaced
32:78ad99c24f08 35:420f6808bf21
    34 	: iList( aList ),
    34 	: iList( aList ),
    35 	iReadyToViewReceived( EFalse ),
    35 	iReadyToViewReceived( EFalse ),
    36 	iTransitionReadyReceived( EFalse ),
    36 	iTransitionReadyReceived( EFalse ),
    37 	iReadyToAdvanceReceived( EFalse ),
    37 	iReadyToAdvanceReceived( EFalse ),
    38 	iTimerReceived( EFalse ),
    38 	iTimerReceived( EFalse ),
       
    39 	iHDMIDecoded(ETrue),
    39 	iUserNavigated( EFalse ),
    40 	iUserNavigated( EFalse ),
    40 	iPaused( EFalse ),
    41 	iPaused( EFalse ),
    41 	iUserNavigatedWhilePaused( EFalse )
    42 	iUserNavigatedWhilePaused( EFalse )
    42 	{
    43 	{
    43 	// No implementation required
    44 	// No implementation required
   177 	else if ( dynamic_cast< TShwEventToggleControlUi* >( aEvent ) )
   178 	else if ( dynamic_cast< TShwEventToggleControlUi* >( aEvent ) )
   178         {
   179         {
   179         GLX_LOG_INFO( "CShwViewControl::NotifyL - TShwEventToggleControlUi" );
   180         GLX_LOG_INFO( "CShwViewControl::NotifyL - TShwEventToggleControlUi" );
   180         // Have to impliment if need comes
   181         // Have to impliment if need comes
   181         }	 
   182         }	 
       
   183 	else if( dynamic_cast< TShwEventHDMIDisConnected* >( aEvent ) )
       
   184 		{
       
   185 		GLX_LOG_INFO( "CShwViewControl::NotifyL - TShwEventHDMIDisConnected" );
       
   186 		iHDMIDecoded = ETrue ;
       
   187 		// check if we are ok to go to start transition
       
   188         CheckAndSendStartTransitionL();
       
   189 		}
       
   190 	else if( dynamic_cast< TShwEventHDMIImageDecodingStarted* >( aEvent ) )
       
   191 		{
       
   192 		GLX_LOG_INFO( "CShwViewControl::NotifyL - TShwEventHDMIImageDecodingStarted" );
       
   193 		iHDMIDecoded = EFalse ; 
       
   194 		}
       
   195 	else if( dynamic_cast< TShwEventHDMIImageDecodingCompleted* >( aEvent ) )
       
   196 		{
       
   197 		GLX_LOG_INFO( "CShwViewControl::NotifyL - TShwEventHDMIImageDecodingCompleted" );
       
   198 		iHDMIDecoded = ETrue ;
       
   199 		// check if we are ok to go to start transition
       
   200         CheckAndSendStartTransitionL();
       
   201 		}
   182 	}
   202 	}
   183 
   203 
   184 // -----------------------------------------------------------------------------
   204 // -----------------------------------------------------------------------------
   185 // CheckAndSendStartTransitionL.
   205 // CheckAndSendStartTransitionL.
   186 // -----------------------------------------------------------------------------
   206 // -----------------------------------------------------------------------------
   188     {
   208     {
   189     TRACER("CShwViewControl::CheckAndSendStartTransitionL");
   209     TRACER("CShwViewControl::CheckAndSendStartTransitionL");
   190     GLX_LOG_INFO( "CShwViewControl::CheckAndSendStartTransitionL" );
   210     GLX_LOG_INFO( "CShwViewControl::CheckAndSendStartTransitionL" );
   191 	// check if we got timer and ready to advance and 
   211 	// check if we got timer and ready to advance and 
   192 	// we are not paused and there is more than one item
   212 	// we are not paused and there is more than one item
   193 	if( iTimerReceived && iReadyToAdvanceReceived && 
   213 	if (iTimerReceived && iReadyToAdvanceReceived && iHDMIDecoded && (!iPaused)
   194 	    (!iPaused) && (iList.Count() > 1) )
   214 			&& (iList.Count() > 1))
   195 	    {
   215 	    {
   196         GLX_LOG_INFO( "CShwViewControl::Sending TShwEventStartTransition" );
   216         GLX_LOG_INFO( "CShwViewControl::Sending TShwEventStartTransition" );
   197         // reset timer and viewready flags
   217         // reset timer and viewready flags
   198         iReadyToAdvanceReceived = EFalse;
   218         iReadyToAdvanceReceived = EFalse;
   199         iTimerReceived = EFalse;
   219         iTimerReceived = EFalse;