mmsharing/mmshengine/src/musengtelephoneutils.cpp
branchRCL_3
changeset 30 2d2c7d1515f7
parent 21 ce86b6d44a6d
child 31 33a5d2bbf6fc
--- a/mmsharing/mmshengine/src/musengtelephoneutils.cpp	Mon Jun 21 15:36:50 2010 +0300
+++ b/mmsharing/mmshengine/src/musengtelephoneutils.cpp	Thu Jul 15 18:35:08 2010 +0300
@@ -93,7 +93,7 @@
 //
 // -----------------------------------------------------------------------------
 //
-TBool CMusEngTelephoneUtils::AudioRoutingCanBeChanged()
+TBool CMusEngTelephoneUtils::AudioRoutingCanBeChanged() const
     {
     MUS_LOG( "mus: [ENGINE]  -> CMusEngTelephoneUtils::AudioRoutingCanBeChanged" )
     
@@ -113,6 +113,24 @@
 //
 // -----------------------------------------------------------------------------
 //
+TBool CMusEngTelephoneUtils::AudioOutputIsBT() const
+    {
+    MUS_LOG( "mus: [ENGINE]  -> CMusEngTelephoneUtils::AudioOutputIsBT" )
+	    
+    TBool retValue = ( iTelephonyAudioRouting->Output() ==
+                       CTelephonyAudioRouting::EBTAudioAccessory );
+	    
+    MUS_LOG1( "mus: [ENGINE]  <- CMusEngTelephoneUtils::AudioOutputIsBT: %d",
+               retValue )
+	              
+    return retValue;
+    }
+
+
+// -----------------------------------------------------------------------------
+//
+// -----------------------------------------------------------------------------
+//
 void CMusEngTelephoneUtils::LoudspeakerL( TBool aEnable, TBool aShowDialog )
     {
     MUS_LOG1( "mus: [ENGINE]  -> CMusEngTelephoneUtils::LoudspeakerL(%d)",