--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devsound/sounddevbt/PlatSec/src/Server/AudioServer/MmfBtDevSoundSessionXtnd.h Tue Feb 02 01:56:55 2010 +0200
@@ -0,0 +1,66 @@
+// Copyright (c) 2004-2009 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:
+//
+
+#ifndef __MMFBTDEVSOUNDSESSIONTND_H__
+#define __MMFBTDEVSOUNDSESSIONTND_H__
+
+#include "MmfBtDevSoundSession.h"
+#include "MmfBtDevSoundInfo.h"
+
+/*
+ *
+ * Class Name: CMMFDevSoundSessionXtnd
+ *
+ * This class provides an extended interface for CMMFDevSound - intended
+ * to provide additional calls that are applicable to a particular implementation
+ * This version is built on RMdaDevSound
+ */
+class CMMFDevSoundSessionXtnd; // declared here.
+
+NONSHARABLE_CLASS( CMMFDevSoundSessionXtnd ) : public CMMFDevSoundSession
+ {
+public:
+
+ // Interface for Audio Policy
+ // Sets id for this DevSound instance
+ void SetDevSoundId(TInt aDevSoundId);
+ // Returns info about this DevSound instance
+ TMMFDevSoundInfo DevSoundInfo();
+ // Called by Audio Policy Server when play reqeust is granted
+ void StartPlayDataL();
+ // Called by Audio Policy Server when record reqeust is granted
+ void StartRecordDataL();
+ // Called by Audio Policy Server when play tone reqeust is granted
+ void StartPlayToneL();
+ // Called by Audio Policy Server when play dual tone request is granted
+ void StartPlayDualToneL();
+ // Called by Audio Policy Server when play DTMF reqeust is granted
+ void StartPlayDTMFStringL();
+ // Called by Audio Policy Server when play tone sequence reqeust is granted
+ void StartPlayToneSequenceL();
+ // Called by Audio Policy Server when DevSound instance looses device
+ void SendEvent(const TMMFEvent& aEvent);
+ // Updates the total bytes played from audio device
+ void UpdateBytesPlayed();
+
+ // CMMFHwDevice implementation:
+ TInt FillThisBuffer(CMMFBuffer& aHwBuffer);
+ TInt EmptyThisBuffer(CMMFBuffer& aHwBuffer);
+ TInt DeviceMessage(TDesC8& aMsg);
+ void DeviceStopped();
+ // CMMFHwDevice implementation ends
+ };
+
+#endif // __MMFBTDEVSOUNDSESSIONTND_H__