equal
deleted
inserted
replaced
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: CBtmMan definition |
14 * Description: CBtmMan definition |
15 * Version : %version: 15.1.7 % |
15 * Version : %version: 15.1.8 % |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 |
19 |
20 #include <btdevice.h> |
20 #include <btdevice.h> |
230 if (!iCmdHandler) |
230 if (!iCmdHandler) |
231 { |
231 { |
232 iCmdHandler = CBtmcHandlerApi::NewL(*this, aProfile, aAddr.Des(), aAccessoryInitiated); |
232 iCmdHandler = CBtmcHandlerApi::NewL(*this, aProfile, aAddr.Des(), aAccessoryInitiated); |
233 } |
233 } |
234 } |
234 } |
235 |
235 |
|
236 |
|
237 void CBtmMan::SetCmdHandlerHspRvcSupported( TBool aSupported ) |
|
238 { |
|
239 if (iCmdHandler) |
|
240 { |
|
241 iCmdHandler->SetHspRvcSupported( aSupported ); |
|
242 } |
|
243 } |
|
244 |
|
245 |
236 void CBtmMan::DeleteCmdHandler() |
246 void CBtmMan::DeleteCmdHandler() |
237 { |
247 { |
238 delete iCmdHandler; |
248 delete iCmdHandler; |
239 iCmdHandler = NULL; |
249 iCmdHandler = NULL; |
240 } |
250 } |
260 |
270 |
261 TBool CBtmMan::IsEdrSupported() const |
271 TBool CBtmMan::IsEdrSupported() const |
262 { |
272 { |
263 return iEdr; |
273 return iEdr; |
264 } |
274 } |
265 |
275 |
|
276 void CBtmMan::SetCmdHandlerRvcSupport(const TBTDevAddr& aAddr) |
|
277 { |
|
278 TRACE_FUNC |
|
279 // Get volume control support status of the HSP from observer |
|
280 TInt sf = Observer().SupportedFeature( aAddr, EHSP ); |
|
281 TRACE_INFO((_L(" HSP support feature: 0x%x"), sf)); |
|
282 iCmdHandler->SetHspRvcSupported( sf & KHspRemoteVolumeControlSupport ); |
|
283 } |
|
284 |
266 void CBtmMan::ConnectToAccessory(const TBTDevAddr& aAddr, TRequestStatus& aStatus) |
285 void CBtmMan::ConnectToAccessory(const TBTDevAddr& aAddr, TRequestStatus& aStatus) |
267 { |
286 { |
268 TRACE_FUNC_ENTRY |
287 TRACE_FUNC_ENTRY |
269 TRACE_INFO_SEG( |
288 TRACE_INFO_SEG( |
270 {TBuf<KBTDevAddrReadable> buf; aAddr.GetReadable(buf); Trace(_L("BT Addr %S"), &buf);}) |
289 {TBuf<KBTDevAddrReadable> buf; aAddr.GetReadable(buf); Trace(_L("BT Addr %S"), &buf);}) |