diff -r 6a1fe72036e3 -r 0b192a3a05a4 bluetoothengine/btmac/src/btmac/btmman.cpp --- a/bluetoothengine/btmac/src/btmac/btmman.cpp Tue Jan 26 12:06:42 2010 +0200 +++ b/bluetoothengine/btmac/src/btmac/btmman.cpp Tue Feb 02 00:20:42 2010 +0200 @@ -12,7 +12,7 @@ * Contributors: * * Description: CBtmMan definition -* Version : %version: 15.1.7 % +* Version : %version: 15.1.8 % * */ @@ -232,7 +232,17 @@ iCmdHandler = CBtmcHandlerApi::NewL(*this, aProfile, aAddr.Des(), aAccessoryInitiated); } } - + + +void CBtmMan::SetCmdHandlerHspRvcSupported( TBool aSupported ) + { + if (iCmdHandler) + { + iCmdHandler->SetHspRvcSupported( aSupported ); + } + } + + void CBtmMan::DeleteCmdHandler() { delete iCmdHandler; @@ -262,7 +272,16 @@ { return iEdr; } - + +void CBtmMan::SetCmdHandlerRvcSupport(const TBTDevAddr& aAddr) + { + TRACE_FUNC + // Get volume control support status of the HSP from observer + TInt sf = Observer().SupportedFeature( aAddr, EHSP ); + TRACE_INFO((_L(" HSP support feature: 0x%x"), sf)); + iCmdHandler->SetHspRvcSupported( sf & KHspRemoteVolumeControlSupport ); + } + void CBtmMan::ConnectToAccessory(const TBTDevAddr& aAddr, TRequestStatus& aStatus) { TRACE_FUNC_ENTRY