photosgallery/viewframework/tvout/src/glxtv.cpp
branchRCL_3
changeset 18 78ad99c24f08
parent 15 191387a8b767
equal deleted inserted replaced
17:a60acebbbd9d 18:78ad99c24f08
   354 //-----------------------------------------------------------------------------
   354 //-----------------------------------------------------------------------------
   355 // From class MGlxTvConnectionObserver.
   355 // From class MGlxTvConnectionObserver.
   356 // Called when TV connection state changes
   356 // Called when TV connection state changes
   357 //-----------------------------------------------------------------------------
   357 //-----------------------------------------------------------------------------
   358 //
   358 //
   359 void CGlxTv::HandleTvConnectionStatusChangedL( )
   359 void CGlxTv::HandleTvConnectionStatusChangedL(TTvChangeType aChangeType)
   360     {
   360     {
   361     TRACER("CGlxTv::HandleTvConnectionStatusChangedL()");
   361 	TRACER("CGlxTv::HandleTvConnectionStatusChangedL()");
   362 
   362 
   363     if ( iTvConnectionMonitor->IsConnected() )
   363 	if (iTvConnectionMonitor->IsConnected())
   364         {
   364 		{
   365         // Start monitoring the environment for changes
   365 		// Start monitoring the environment for changes
   366         MonitorEnvironmentL();
   366 		MonitorEnvironmentL();
   367         // Calculate the TV Out screen buffer
   367 		// Calculate the TV Out screen buffer
   368         CalcTvScreenSzL();
   368 		CalcTvScreenSzL();
   369         }
   369 		}
   370     else
   370 	else
   371         {
   371 		{
   372         StopMonitoringEnvironment();
   372 		StopMonitoringEnvironment();
   373         }
   373 		}
   374     iTvObserver.HandleTvStatusChangedL( ETvConnectionChanged );
   374 	
   375     }
   375 	iTvObserver.HandleTvStatusChangedL(aChangeType);
   376     
   376 	}
   377         
       
   378    
   377    
   379 //-----------------------------------------------------------------------------
   378 //-----------------------------------------------------------------------------
   380 // Retrieve the TV display aspect ratio
   379 // Retrieve the TV display aspect ratio
   381 //-----------------------------------------------------------------------------
   380 //-----------------------------------------------------------------------------
   382 //
   381 //