mmsharing/mmshengine/src/musengtelephoneutils.cpp
branchRCL_3
changeset 20 2d2c7d1515f7
parent 16 ce86b6d44a6d
child 21 33a5d2bbf6fc
equal deleted inserted replaced
18:407431f36921 20:2d2c7d1515f7
    91 
    91 
    92 // -----------------------------------------------------------------------------
    92 // -----------------------------------------------------------------------------
    93 //
    93 //
    94 // -----------------------------------------------------------------------------
    94 // -----------------------------------------------------------------------------
    95 //
    95 //
    96 TBool CMusEngTelephoneUtils::AudioRoutingCanBeChanged()
    96 TBool CMusEngTelephoneUtils::AudioRoutingCanBeChanged() const
    97     {
    97     {
    98     MUS_LOG( "mus: [ENGINE]  -> CMusEngTelephoneUtils::AudioRoutingCanBeChanged" )
    98     MUS_LOG( "mus: [ENGINE]  -> CMusEngTelephoneUtils::AudioRoutingCanBeChanged" )
    99     
    99     
   100     TBool retValue = ( iTelephonyAudioRouting->Output() !=
   100     TBool retValue = ( iTelephonyAudioRouting->Output() !=
   101                        CTelephonyAudioRouting::EWiredAudioAccessory &&
   101                        CTelephonyAudioRouting::EWiredAudioAccessory &&
   103                        CTelephonyAudioRouting::ETTY );
   103                        CTelephonyAudioRouting::ETTY );
   104     
   104     
   105     MUS_LOG1( "mus: [ENGINE]  <- CMusEngTelephoneUtils::AudioRoutingCanBeChanged: %d",
   105     MUS_LOG1( "mus: [ENGINE]  <- CMusEngTelephoneUtils::AudioRoutingCanBeChanged: %d",
   106               retValue )
   106               retValue )
   107               
   107               
       
   108     return retValue;
       
   109     }
       
   110 
       
   111 
       
   112 // -----------------------------------------------------------------------------
       
   113 //
       
   114 // -----------------------------------------------------------------------------
       
   115 //
       
   116 TBool CMusEngTelephoneUtils::AudioOutputIsBT() const
       
   117     {
       
   118     MUS_LOG( "mus: [ENGINE]  -> CMusEngTelephoneUtils::AudioOutputIsBT" )
       
   119 	    
       
   120     TBool retValue = ( iTelephonyAudioRouting->Output() ==
       
   121                        CTelephonyAudioRouting::EBTAudioAccessory );
       
   122 	    
       
   123     MUS_LOG1( "mus: [ENGINE]  <- CMusEngTelephoneUtils::AudioOutputIsBT: %d",
       
   124                retValue )
       
   125 	              
   108     return retValue;
   126     return retValue;
   109     }
   127     }
   110 
   128 
   111 
   129 
   112 // -----------------------------------------------------------------------------
   130 // -----------------------------------------------------------------------------