bluetoothengine/btaudioman/src/basrvaccman.cpp
changeset 2 0b192a3a05a4
parent 0 f63038272f30
child 6 6a29d5ad0713
--- a/bluetoothengine/btaudioman/src/basrvaccman.cpp	Tue Jan 26 12:06:42 2010 +0200
+++ b/bluetoothengine/btaudioman/src/basrvaccman.cpp	Tue Feb 02 00:20:42 2010 +0200
@@ -12,7 +12,7 @@
 * Contributors:
 *
 * Description:  Implementation of an accessory management.
-*  Version     : %version:  14.1.7 %
+*  Version     : %version:  14.1.8 %
 *
 */
 
@@ -651,6 +651,22 @@
     return 0;
 	}
 
+TInt CBasrvAccMan::SupportedFeature( const TBTDevAddr& aAddr, TProfiles aProfile ) const
+    {
+    TRACE_INFO_SEG(
+        {
+        TBuf<12> buf;
+        aAddr.GetReadable(buf);
+        Trace(_L("CBasrvAccMan::SupportedFeature '%S'  profile %d"), &buf, aProfile );
+        });
+    TInt idx = FindAcc(aAddr);
+    if (idx >= 0)
+        {
+        return iAccs[idx]->SupportedFeature(aProfile );
+        }
+    return 0;
+    }
+
 void CBasrvAccMan::RequestCompletedL(CBasrvActive& aActive)
     {
     TRACE_FUNC
@@ -779,7 +795,7 @@
         }    
     }
 
-TInt CBasrvAccMan::FindAcc(const TBTDevAddr& aRemote)
+TInt CBasrvAccMan::FindAcc(const TBTDevAddr& aRemote) const
     {
     TInt count = iAccs.Count();
     for (TInt i = 0; i < count; i++)