mmsharing/mmshengine/src/musengmcesession.cpp
branchRCL_3
changeset 24 407431f36921
parent 21 ce86b6d44a6d
child 32 73a1feb507fb
equal deleted inserted replaced
21:ce86b6d44a6d 24:407431f36921
   326 // -----------------------------------------------------------------------------
   326 // -----------------------------------------------------------------------------
   327 //
   327 //
   328 EXPORT_C TBool CMusEngMceSession::IsDisplayEnabledL()
   328 EXPORT_C TBool CMusEngMceSession::IsDisplayEnabledL()
   329     {
   329     {
   330     __ASSERT_ALWAYS( iSession, User::Leave( KErrNotReady ) );
   330     __ASSERT_ALWAYS( iSession, User::Leave( KErrNotReady ) );
       
   331     if ( iSession->State() == CMceSession::ETerminated || 
       
   332          iSession->State() == CMceSession::EIdle )
       
   333         {
       
   334         return EFalse;   
       
   335         }
   331     CMceDisplaySink* display = MusEngMceUtils::GetDisplayL( *iSession );
   336     CMceDisplaySink* display = MusEngMceUtils::GetDisplayL( *iSession );
   332     return display->IsEnabled();
   337     return display->IsEnabled();
   333     }
   338     }
   334 
   339 
   335 
   340