videoplayback/videohelix/tsrc/ut_videohelixtest/src/mpxvideoaccessoryobserver_stub.cpp
branchRCL_3
changeset 8 ce5ada96ab30
parent 2 dec420019252
child 12 7f2b2a65da29
--- a/videoplayback/videohelix/tsrc/ut_videohelixtest/src/mpxvideoaccessoryobserver_stub.cpp	Fri Feb 19 22:52:52 2010 +0200
+++ b/videoplayback/videohelix/tsrc/ut_videohelixtest/src/mpxvideoaccessoryobserver_stub.cpp	Fri Mar 12 15:43:00 2010 +0200
@@ -15,7 +15,7 @@
  *
 */
 
-// Version : %version: 3 %
+// Version : %version: 4 %
 
 //
 //  INCLUDE FILES
@@ -65,6 +65,7 @@
     : iController( aController )
     , iTvOutConnected( EFalse )
     , iTvOutPlaybackAllowed( ETrue )
+    , iTvOutHDMI( EFalse )
 {
 }
 
@@ -104,6 +105,12 @@
     if ( iTvOutConnected != aTvOutConnected )
     {
         iTvOutConnected = aTvOutConnected;
+ 
+        if ( iTvOutConnected && iTvOutHDMI)
+        {
+            //  if HDMI playback is always allowed
+            iTvOutPlaybackAllowed = ETrue;
+        }
 
         iController->HandleTvOutEventL( iTvOutConnected );
     }
@@ -134,4 +141,12 @@
     return playAllowed;
 }
 
+void CMPXVideoAccessoryObserver::SetTvOutHDMI( TBool aTvOutHDMI )
+{
+    MPX_ENTER_EXIT(_L("CMPXVideoAccessoryObserver::SetTvOutHDMI()"),
+                   _L("aTvOutHDMI = %d"), aTvOutHDMI);
+
+    iTvOutHDMI = aTvOutHDMI;
+}
+
 //  End of File