bluetoothengine/btaudioman/expinc/BTAccObserver.h
changeset 0 f63038272f30
child 2 0b192a3a05a4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bluetoothengine/btaudioman/expinc/BTAccObserver.h	Mon Jan 18 20:28:57 2010 +0200
@@ -0,0 +1,98 @@
+/*
+* Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*                 Inteface used by Plugins for call-back to Accessory Server
+*
+*/
+
+
+#ifndef BTACC_OBSERVER_H
+#define BTACC_OBSERVER_H
+
+#include <e32def.h> // TInt
+#include <btaccTypes.h>
+
+// FORWARD DECLARATION
+class TBTDevAddr;
+
+// DATA
+
+// CLASS DECLaRATION        
+class MBTAccObserver
+    {
+public:
+
+    
+    /** 
+    Called when an incoming response from a remote is ready to be picked up by 
+    RemCon.
+    @param aAddr The address the response came from.
+    @return Error. If KErrNone, RemCon is committing to collecting the message 
+    using GetResponse. If non-KErrNone, the message will be dropped by the 
+    bearer.
+    */
+    virtual void NewAccessory(const TBTDevAddr& aAddr, TProfiles aType) = 0;    
+    
+    /** 
+    Called when an incoming response from a remote is ready to be picked up by 
+    RemCon.
+    @param aAddr The address the response came from.
+    @return Error. If KErrNone, RemCon is committing to collecting the message 
+    using GetResponse. If non-KErrNone, the message will be dropped by the 
+    bearer.
+    */
+    virtual void AccessoryDisconnected(const TBTDevAddr& aAddr, TProfiles aType) = 0;
+    
+    /** 
+    Called when an incoming response from a remote is ready to be picked up by 
+    RemCon.
+    @param aAddr The address the response came from.
+    @return Error. If KErrNone, RemCon is committing to collecting the message 
+    using GetResponse. If non-KErrNone, the message will be dropped by the 
+    bearer.
+    */
+    virtual void RemoteAudioOpened(const TBTDevAddr& aAddr, TProfiles  aType) = 0;
+    
+    /** 
+    Called when an incoming response from a remote is ready to be picked up by 
+    RemCon.
+    @param aAddr The address the response came from.
+    @return Error. If KErrNone, RemCon is committing to collecting the message 
+    using GetResponse. If non-KErrNone, the message will be dropped by the 
+    bearer.
+    */
+    virtual void RemoteAudioClosed(const TBTDevAddr& aAddr, TProfiles  aType) = 0;
+    
+    /**
+    * Requests Accessory Framework or Dos to disable NREC
+    * @param aBDAddress             BT hardware address of the accessory.
+    * @return                       None.
+    */
+    virtual TInt DisableNREC(const TBTDevAddr& aAddr) = 0; 
+    
+    /** 
+    * Called when a remote should be temporarily taken out of use. 
+	* @param aAddr The address of the remote.
+	*/
+	virtual void AccessoryTemporarilyUnavailable(const TBTDevAddr& aAddr, TProfiles aType) = 0;
+    
+    
+    virtual TInt ConnectionStatus(const TBTDevAddr& aAddr) = 0;
+    
+    virtual TBool IsAvrcpVolCTSupported() = 0;
+    virtual TBool IsAbsoluteVolumeSupported(const TBTDevAddr& aAddr) = 0;
+    
+    };
+
+#endif // BTACC_OBSERVER_H