videoplayback/videohelix/tsrc/ut_videohelixtest/src/mpxvideoaccessoryobserver_stub.cpp
changeset 2 dec420019252
parent 0 96612d01cf9f
child 8 ce5ada96ab30
equal deleted inserted replaced
1:6711b85517b7 2:dec420019252
    13 *
    13 *
    14 * Description:  This class is the stub for the accessory observer.
    14 * Description:  This class is the stub for the accessory observer.
    15  *
    15  *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 2 %
    18 // Version : %version: 3 %
    19 
    19 
    20 //
    20 //
    21 //  INCLUDE FILES
    21 //  INCLUDE FILES
    22 //
    22 //
    23 #include "stifutilities.h"
    23 #include "stifutilities.h"
    73     MPX_ENTER_EXIT(_L("CMPXVideoAccessoryObserver::~CMPXVideoAccessoryObserver()"));
    73     MPX_ENTER_EXIT(_L("CMPXVideoAccessoryObserver::~CMPXVideoAccessoryObserver()"));
    74 }
    74 }
    75 
    75 
    76 void CMPXVideoAccessoryObserver::SetTvOutConnected( TBool aConnected )
    76 void CMPXVideoAccessoryObserver::SetTvOutConnected( TBool aConnected )
    77 {
    77 {
       
    78     MPX_ENTER_EXIT(_L("CMPXVideoAccessoryObserver::SetTvOutConnected()"),
       
    79                    _L("aConnected = %d"), aConnected);
       
    80 
    78     iTvOutConnected = aConnected;
    81     iTvOutConnected = aConnected;
    79 
    82 
    80     if ( ! iTvOutConnected )
    83     if ( ! iTvOutConnected )
    81     {
    84     {
    82         iTvOutPlaybackAllowed = ETrue;
    85         iTvOutPlaybackAllowed = ETrue;
    83     }
    86     }
    84 }
    87 }
    85 
    88 
    86 void CMPXVideoAccessoryObserver::SetTvOutPlaybackAllowed( TBool aAllowed )
    89 void CMPXVideoAccessoryObserver::SetTvOutPlaybackAllowed( TBool aAllowed )
    87 {
    90 {
       
    91     MPX_ENTER_EXIT(_L("CMPXVideoAccessoryObserver::SetTvOutPlaybackAllowed()"),
       
    92                    _L("aAllowed = %d"), aAllowed);
       
    93 
    88     iTvOutPlaybackAllowed = aAllowed;
    94     iTvOutPlaybackAllowed = aAllowed;
    89 }
    95 }
    90 
    96 
    91 void CMPXVideoAccessoryObserver::UpdateTvOutStatusL( TBool aTvOutConnected )
    97 void CMPXVideoAccessoryObserver::UpdateTvOutStatusL( TBool aTvOutConnected )
    92 {
    98 {
    96     //  Check if the TV-Out status has changed
   102     //  Check if the TV-Out status has changed
    97     //
   103     //
    98     if ( iTvOutConnected != aTvOutConnected )
   104     if ( iTvOutConnected != aTvOutConnected )
    99     {
   105     {
   100         iTvOutConnected = aTvOutConnected;
   106         iTvOutConnected = aTvOutConnected;
   101 
       
   102         if ( iTvOutConnected )
       
   103         {
       
   104             //
       
   105             //  Check the playablility of the clip
       
   106             //
       
   107             if ( iController )
       
   108             {
       
   109                 iTvOutPlaybackAllowed = iController->iPlaybackMode->IsTvOutAllowedL();
       
   110             }
       
   111         }
       
   112         else
       
   113         {
       
   114             iTvOutPlaybackAllowed = ETrue;
       
   115         }
       
   116 
   107 
   117         iController->HandleTvOutEventL( iTvOutConnected );
   108         iController->HandleTvOutEventL( iTvOutConnected );
   118     }
   109     }
   119 
   110 
   120     MPX_DEBUG(_L("    iTvOutConnected = %d"), iTvOutConnected);
   111     MPX_DEBUG(_L("    iTvOutConnected = %d"), iTvOutConnected);