equal
deleted
inserted
replaced
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 |