78 if ( iCRWatchForTvSystem ) |
78 if ( iCRWatchForTvSystem ) |
79 { |
79 { |
80 iCRWatchForTvSystem->Cancel(); |
80 iCRWatchForTvSystem->Cancel(); |
81 delete iCRWatchForTvSystem; |
81 delete iCRWatchForTvSystem; |
82 } |
82 } |
|
83 if ( iCRWatchForVOverScan ) |
|
84 { |
|
85 iCRWatchForVOverScan->Cancel(); |
|
86 delete iCRWatchForVOverScan; |
|
87 } |
83 if ( iTVOutConfigForSettingChanges ) |
88 if ( iTVOutConfigForSettingChanges ) |
84 { |
89 { |
85 iTVOutConfigForSettingChanges->Cancel(); |
90 iTVOutConfigForSettingChanges->Cancel(); |
86 delete iTVOutConfigForSettingChanges; |
91 delete iTVOutConfigForSettingChanges; |
87 } |
92 } |
93 // --------------------------------------------------------------------------- |
98 // --------------------------------------------------------------------------- |
94 // |
99 // |
95 void CCompositeCableStateConnected::Enter( ) |
100 void CCompositeCableStateConnected::Enter( ) |
96 { |
101 { |
97 FUNC_LOG; |
102 FUNC_LOG; |
98 |
103 |
|
104 iTVOutConfigForComposite.UpdateOverscanValues(); |
99 ClearAvailableTvOutConfig(); |
105 ClearAvailableTvOutConfig(); |
100 |
106 |
101 iTVOutConfigForSettingChanges->ListenSettingsChanges(); |
107 iTVOutConfigForSettingChanges->ListenSettingsChanges(); |
102 iSubState = ESubStateStartListenSettingsChanges; |
108 iSubState = ESubStateStartListenSettingsChanges; |
103 } |
109 } |
185 void CCompositeCableStateConnected::CentRepKeyChanged( |
191 void CCompositeCableStateConnected::CentRepKeyChanged( |
186 TUid aRepositoryId, |
192 TUid aRepositoryId, |
187 TUint32 aId ) |
193 TUint32 aId ) |
188 { |
194 { |
189 FUNC_LOG; |
195 FUNC_LOG; |
|
196 INFO("Cenrep Value Changed"); |
190 if ( KCRUidTvoutSettings == aRepositoryId ) |
197 if ( KCRUidTvoutSettings == aRepositoryId ) |
191 { |
198 { |
192 if ( ( KSettingsTvAspectRatio == aId ) || |
199 if ( ( KSettingsTvAspectRatio == aId ) || |
193 ( KSettingsTvoutFlickerFilter == aId ) || |
200 ( KSettingsTvoutFlickerFilter == aId ) || |
194 ( KSettingsTvSystemInfo == aId ) ) |
201 ( KSettingsTvSystemInfo == aId ) ) |
195 { |
202 { |
196 Input( EPDEIfCentralRepositoryWatch, EPDEIfCentralRepositoryWatchEventKeyChanged ); |
203 Input( EPDEIfCentralRepositoryWatch, EPDEIfCentralRepositoryWatchEventKeyChanged ); |
197 } |
204 } |
198 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 |
199 { |
214 { |
200 INFO_1("Unexpected CR key ID, aId 0x%x", aId ); |
215 INFO_1("Unexpected CR key ID, aId 0x%x", aId ); |
201 } |
216 } |
202 } |
217 } |
203 else |
218 else |
284 if ( !iCableDisconnectedWhileEnabling ) |
299 if ( !iCableDisconnectedWhileEnabling ) |
285 { |
300 { |
286 iCRWatchForFlickerFilter->Watch(); |
301 iCRWatchForFlickerFilter->Watch(); |
287 iCRWatchForAspectRatio->Watch(); |
302 iCRWatchForAspectRatio->Watch(); |
288 iCRWatchForTvSystem->Watch(); |
303 iCRWatchForTvSystem->Watch(); |
|
304 iCRWatchForVOverScan->Watch(); |
289 iSubState = ESubStateEnabled; |
305 iSubState = ESubStateEnabled; |
290 } |
306 } |
291 else |
307 else |
292 { |
308 { |
293 iCableDisconnectedWhileEnabling = EFalse; |
309 iCableDisconnectedWhileEnabling = EFalse; |
341 { |
357 { |
342 INFO( "Event: EPDEIfAccessoryConnectionEventCableDisconnected" ); |
358 INFO( "Event: EPDEIfAccessoryConnectionEventCableDisconnected" ); |
343 iCRWatchForFlickerFilter->Cancel(); |
359 iCRWatchForFlickerFilter->Cancel(); |
344 iCRWatchForAspectRatio->Cancel(); |
360 iCRWatchForAspectRatio->Cancel(); |
345 iCRWatchForTvSystem->Cancel(); |
361 iCRWatchForTvSystem->Cancel(); |
|
362 iCRWatchForVOverScan->Cancel(); |
346 ClearAvailableTvOutConfig(); |
363 ClearAvailableTvOutConfig(); |
347 iTVOutConfigForComposite.Disable(); |
364 iTVOutConfigForComposite.Disable(); |
348 iSubState = ESubStateDisabling; |
365 iSubState = ESubStateDisabling; |
349 } |
366 } |
350 else |
367 else |
360 { |
377 { |
361 INFO( "Event: EPDEIfCentralRepositoryWatchEventKeyChanged" ); |
378 INFO( "Event: EPDEIfCentralRepositoryWatchEventKeyChanged" ); |
362 iCRWatchForFlickerFilter->Cancel(); |
379 iCRWatchForFlickerFilter->Cancel(); |
363 iCRWatchForAspectRatio->Cancel(); |
380 iCRWatchForAspectRatio->Cancel(); |
364 iCRWatchForTvSystem->Cancel(); |
381 iCRWatchForTvSystem->Cancel(); |
|
382 iCRWatchForVOverScan->Cancel(); |
|
383 ClearAvailableTvOutConfig(); |
|
384 iResettingInput = ETrue; |
|
385 Enter(); |
|
386 } |
|
387 else if ( EPDEIfCentralRepositoryWatchEventOverscanKeyChanged == aEvent ) |
|
388 { |
|
389 INFO( "Event: EPDEIfCentralRepositoryWatchEventOverscanKeyChanged" ); |
|
390 iTVOutConfigForComposite.SetConfig( ETrue ); |
|
391 } |
|
392 else |
|
393 { |
|
394 INFO_1( "Unknown Event Id: %i", aEvent ); |
|
395 } |
|
396 break; |
|
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(); |
365 ClearAvailableTvOutConfig(); |
413 ClearAvailableTvOutConfig(); |
366 iTVOutConfigForComposite.Disable(); |
414 iTVOutConfigForComposite.Disable(); |
367 iResettingInput = ETrue; |
415 iSubState = ESubStateDisabling; |
368 Enter(); |
416 } |
369 } |
417 break; |
370 else |
418 } |
371 { |
|
372 INFO_1( "Unknown Event Id: %i", aEvent ); |
|
373 } |
|
374 break; |
|
375 } |
|
376 default: |
419 default: |
377 { |
420 { |
378 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 ); |
379 break; |
422 break; |
380 } |
423 } |
763 } |
808 } |
764 |
809 |
765 iCRWatchForFlickerFilter->Cancel(); |
810 iCRWatchForFlickerFilter->Cancel(); |
766 iCRWatchForAspectRatio->Cancel(); |
811 iCRWatchForAspectRatio->Cancel(); |
767 iCRWatchForTvSystem->Cancel(); |
812 iCRWatchForTvSystem->Cancel(); |
|
813 iCRWatchForVOverScan->Cancel(); |
768 } |
814 } |
769 else if ( EIfTVOutConfigEventSetFailed == aEvent ) |
815 else if ( EIfTVOutConfigEventSetFailed == aEvent ) |
770 { |
816 { |
771 INFO( "Event: EIfTVOutConfigEventSetFailed" ); |
817 INFO( "Event: EIfTVOutConfigEventSetFailed" ); |
772 iCableDisconnectedWhileResetting = EFalse; |
818 iCableDisconnectedWhileResetting = EFalse; |
846 FUNC_LOG; |
892 FUNC_LOG; |
847 // Create Central Repository Watchers |
893 // Create Central Repository Watchers |
848 iCRWatchForAspectRatio = CCentralRepositoryWatch::NewL(*this, KCRUidTvoutSettings, KSettingsTvAspectRatio ); |
894 iCRWatchForAspectRatio = CCentralRepositoryWatch::NewL(*this, KCRUidTvoutSettings, KSettingsTvAspectRatio ); |
849 iCRWatchForFlickerFilter = CCentralRepositoryWatch::NewL(*this, KCRUidTvoutSettings, KSettingsTvoutFlickerFilter ); |
895 iCRWatchForFlickerFilter = CCentralRepositoryWatch::NewL(*this, KCRUidTvoutSettings, KSettingsTvoutFlickerFilter ); |
850 iCRWatchForTvSystem = CCentralRepositoryWatch::NewL(*this, KCRUidTvoutSettings, KSettingsTvSystemInfo ); |
896 iCRWatchForTvSystem = CCentralRepositoryWatch::NewL(*this, KCRUidTvoutSettings, KSettingsTvSystemInfo ); |
|
897 iCRWatchForVOverScan = CCentralRepositoryWatch::NewL(*this, KCRUidTvoutSettings, KSettingsTvoutVerticalOverscan ); |
851 iTVOutConfigForSettingChanges = CTVOutConfigForComposite::NewL(iCompositeCableStatusFSM); |
898 iTVOutConfigForSettingChanges = CTVOutConfigForComposite::NewL(iCompositeCableStatusFSM); |
852 iResettingInput = EFalse; |
899 iResettingInput = EFalse; |
853 } |
900 } |
854 |
901 |
855 |
902 |