accessoryservices/pluggeddisplay/pluggeddisplayengine/src/compositecablestateconnected.cpp
branchRCL_3
changeset 19 94cb00198351
parent 12 4a5c47a50617
equal deleted inserted replaced
17:0b0048910c20 19:94cb00198351
    98 // ---------------------------------------------------------------------------
    98 // ---------------------------------------------------------------------------
    99 //
    99 //
   100 void CCompositeCableStateConnected::Enter( )
   100 void CCompositeCableStateConnected::Enter( )
   101     {
   101     {
   102     FUNC_LOG;    
   102     FUNC_LOG;    
   103     
   103 
       
   104 	iTVOutConfigForComposite.UpdateOverscanValues();
   104     ClearAvailableTvOutConfig();
   105     ClearAvailableTvOutConfig();
   105     
   106     
   106     iTVOutConfigForSettingChanges->ListenSettingsChanges();
   107     iTVOutConfigForSettingChanges->ListenSettingsChanges();
   107     iSubState = ESubStateStartListenSettingsChanges;    
   108     iSubState = ESubStateStartListenSettingsChanges;    
   108     }
   109     }
   190 void CCompositeCableStateConnected::CentRepKeyChanged(
   191 void CCompositeCableStateConnected::CentRepKeyChanged(
   191         TUid    aRepositoryId,
   192         TUid    aRepositoryId,
   192         TUint32 aId )
   193         TUint32 aId )
   193     {
   194     {
   194     FUNC_LOG;
   195     FUNC_LOG;
       
   196 	INFO("Cenrep Value Changed");
   195     if ( KCRUidTvoutSettings == aRepositoryId )
   197     if ( KCRUidTvoutSettings == aRepositoryId )
   196         {
   198         {
   197         if (    ( KSettingsTvAspectRatio == aId ) ||
   199         if (    ( KSettingsTvAspectRatio == aId ) ||
   198                 ( KSettingsTvoutFlickerFilter == aId  ) ||
   200                 ( KSettingsTvoutFlickerFilter == aId  ) ||
   199                 ( KSettingsTvSystemInfo == aId ) ||
   201                 ( KSettingsTvSystemInfo == aId ) )
   200                 ( KSettingsTvoutVerticalOverscan == aId) )
       
   201             {
   202             {
   202             Input( EPDEIfCentralRepositoryWatch, EPDEIfCentralRepositoryWatchEventKeyChanged );
   203             Input( EPDEIfCentralRepositoryWatch, EPDEIfCentralRepositoryWatchEventKeyChanged );
   203             }
   204             }
   204         else
   205         else if( KSettingsTvoutVerticalOverscan == aId )
       
   206 			{
       
   207 			if( iTVOutConfigForComposite.UpdateOverscanValues() )
       
   208 				{
       
   209 				INFO( "There is a real overscan change" );
       
   210 				Input( EPDEIfCentralRepositoryWatch, EPDEIfCentralRepositoryWatchEventOverscanKeyChanged );
       
   211 				}
       
   212 			}
       
   213 		else
   205             {
   214             {
   206             INFO_1("Unexpected CR key ID, aId 0x%x", aId );            
   215             INFO_1("Unexpected CR key ID, aId 0x%x", aId );            
   207             }       
   216             }       
   208         }
   217         }
   209     else
   218     else
   373 			iCRWatchForVOverScan->Cancel();
   382 			iCRWatchForVOverScan->Cancel();
   374             ClearAvailableTvOutConfig();
   383             ClearAvailableTvOutConfig();
   375 			iResettingInput = ETrue;
   384 			iResettingInput = ETrue;
   376             Enter();
   385             Enter();
   377             }
   386             }
       
   387 		else if ( EPDEIfCentralRepositoryWatchEventOverscanKeyChanged == aEvent )
       
   388 			{
       
   389 			INFO( "Event: EPDEIfCentralRepositoryWatchEventOverscanKeyChanged" );
       
   390 			iTVOutConfigForComposite.SetConfig( ETrue );
       
   391 			}
   378         else
   392         else
   379             {
   393             {
   380             INFO_1( "Unknown Event Id: %i", aEvent );        
   394             INFO_1( "Unknown Event Id: %i", aEvent );        
   381             }
   395             }
   382         break;
   396         break;
   383         }       
   397         }       
       
   398     case EPDEIfTVOutConfig:
       
   399         {       
       
   400         INFO( "Interface: EPDEIfTVOutConfig" );       
       
   401 		if ( EIfTVOutConfigEventSet == aEvent )
       
   402 			{
       
   403 			INFO( "Event: EIfTVOutConfigEventSet" );
       
   404 			// Stay on the same state
       
   405 			}
       
   406 		else if ( EIfTVOutConfigEventSetFailed == aEvent )
       
   407 			{
       
   408 			INFO( "Event: EIfTVOutConfigEventSetFailed" );
       
   409             iCRWatchForFlickerFilter->Cancel();
       
   410             iCRWatchForAspectRatio->Cancel();
       
   411             iCRWatchForTvSystem->Cancel();
       
   412 			iCRWatchForVOverScan->Cancel();
       
   413             ClearAvailableTvOutConfig();
       
   414             iTVOutConfigForComposite.Disable();
       
   415             iSubState = ESubStateDisabling;
       
   416 			}
       
   417 		break;
       
   418 		}
   384     default:
   419     default:
   385         {
   420         {
   386         INFO_2( "Event from unexpected interface. if Id, event id: %i", aInterfaceId, aEvent );        
   421         INFO_2( "Event from unexpected interface. if Id, event id: %i", aInterfaceId, aEvent );        
   387         break;
   422         break;
   388         }
   423         }