mmsharing/mmshui/src/musuilivesharingcontroller.cpp
branchRCL_3
changeset 14 0da2e08216b6
parent 9 ff8a573c0e2e
child 15 95754dcd27ad
equal deleted inserted replaced
12:71306c87785a 14:0da2e08216b6
   156          MUS_LOG( "mus: [MUSUI ]  -> Playing, pause/stop to restart camera" );
   156          MUS_LOG( "mus: [MUSUI ]  -> Playing, pause/stop to restart camera" );
   157          TTimeIntervalMicroSeconds32 interval( KMusUiIntervalToPlay ); 
   157          TTimeIntervalMicroSeconds32 interval( KMusUiIntervalToPlay ); 
   158          PauseL();
   158          PauseL();
   159          EnableDisplayL(false);
   159          EnableDisplayL(false);
   160          EnableDisplayL(true);
   160          EnableDisplayL(true);
   161          User::After( interval );
       
   162          PlayL();
   161          PlayL();
   163          } 
   162          } 
   164      else
   163      else
   165          {
   164          {
   166          MUS_LOG( "mus: [MUSUI ]  -> Not Playing, try display to restart camera");
   165          MUS_LOG( "mus: [MUSUI ]  -> Not Playing, try display to restart camera");
   927         
   926         
   928     MUS_LOG( "mus: [MUSUI ] <- CMusUiLiveSharingController::InactivityTimeout" );
   927     MUS_LOG( "mus: [MUSUI ] <- CMusUiLiveSharingController::InactivityTimeout" );
   929     }
   928     }
   930 
   929 
   931 
   930 
   932 
   931 // -----------------------------------------------------------------------------
       
   932 //
       
   933 // -----------------------------------------------------------------------------
       
   934 //
       
   935 void CMusUiLiveSharingController::AsyncRefreshView()
       
   936     {
       
   937     TRAP_IGNORE( iCallbackService->AsyncEventL( EMusUiAsyncRefreshView ) );
       
   938     }
       
   939 
       
   940 // -----------------------------------------------------------------------------
       
   941 //
       
   942 // -----------------------------------------------------------------------------
       
   943 //
       
   944 void CMusUiLiveSharingController::HandleAsyncEventL( TMusUiAsyncEvent aEventId )
       
   945     {
       
   946     MUS_LOG( "mus: [MUSUI ]  -> CMusUiLiveSharingController::HandleAsyncEventL" );
       
   947     switch ( aEventId )
       
   948         {
       
   949         case EMusUiAsyncRefreshView:
       
   950             {
       
   951             iLiveObserver.DoRefreshView();
       
   952             break;
       
   953             }
       
   954         default:
       
   955             {
       
   956             // Not live sharing specific, let the base class handle
       
   957             CMusUiSendController::HandleAsyncEventL( aEventId );
       
   958             }
       
   959         }
       
   960     MUS_LOG( "mus: [MUSUI ]  <- CMusUiLiveSharingController::HandleAsyncEventL" );
       
   961     
       
   962     }
   933 
   963 
   934 
   964 
   935 // End of file
   965 // End of file
   936 
   966