photosgallery/viewframework/tvout/src/glxtvconnectionmonitor.cpp
branchRCL_3
changeset 9 6b87b143d312
parent 4 57d388cc48c1
child 25 191387a8b767
equal deleted inserted replaced
5:f7f0874bfe7d 9:6b87b143d312
   175 //-----------------------------------------------------------------------------
   175 //-----------------------------------------------------------------------------
   176 //
   176 //
   177 void CGlxTvConnectionMonitor::IssueNotificationL()
   177 void CGlxTvConnectionMonitor::IssueNotificationL()
   178     {
   178     {
   179     GLX_LOG_INFO("CGlxTvConnectionMonitor::IssueNotificationL");
   179     GLX_LOG_INFO("CGlxTvConnectionMonitor::IssueNotificationL");
       
   180     TBool previousTvState = iTvOutConnectionState;
       
   181     TBool previousHDMIState = iHDMIConnectionState;
       
   182     GLX_LOG_INFO2("previousTvState = %d , previousHDMIState = %d",
       
   183             previousTvState,previousHDMIState);
   180     iTvOutConnectionState = ( iCurrentAccMode.iAccessoryMode == EAccModeTVOut);
   184     iTvOutConnectionState = ( iCurrentAccMode.iAccessoryMode == EAccModeTVOut);
   181     iHDMIConnectionState = ( iCurrentAccMode.iAccessoryMode == EAccModeHDMI);
   185     iHDMIConnectionState = ( iCurrentAccMode.iAccessoryMode == EAccModeHDMI);
   182     iConnectionObserver.HandleTvConnectionStatusChangedL();
   186     // Call Statuschnage only if actually TvState or HDMIState has changed.
       
   187     if ( previousTvState!= iTvOutConnectionState ||
       
   188             previousHDMIState != iHDMIConnectionState)
       
   189         {
       
   190         GLX_LOG_INFO("CGlxTvConnectionMonitor::IssueNotificationL -"
       
   191                 " TvConnectionStatusChanged");
       
   192         iConnectionObserver.HandleTvConnectionStatusChangedL();
       
   193         }
   183     }
   194     }
   184 
   195 
   185 
   196 
   186 
   197 
   187 
   198