os/mm/devsound/sounddevbt/PlatSec/src/Server/AudioServer/MmfBtDevSoundSessionXtnd.h
Update contrib.
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __MMFBTDEVSOUNDSESSIONTND_H__
17 #define __MMFBTDEVSOUNDSESSIONTND_H__
19 #include "MmfBtDevSoundSession.h"
20 #include "MmfBtDevSoundInfo.h"
24 * Class Name: CMMFDevSoundSessionXtnd
26 * This class provides an extended interface for CMMFDevSound - intended
27 * to provide additional calls that are applicable to a particular implementation
28 * This version is built on RMdaDevSound
30 class CMMFDevSoundSessionXtnd; // declared here.
32 NONSHARABLE_CLASS( CMMFDevSoundSessionXtnd ) : public CMMFDevSoundSession
36 // Interface for Audio Policy
37 // Sets id for this DevSound instance
38 void SetDevSoundId(TInt aDevSoundId);
39 // Returns info about this DevSound instance
40 TMMFDevSoundInfo DevSoundInfo();
41 // Called by Audio Policy Server when play reqeust is granted
42 void StartPlayDataL();
43 // Called by Audio Policy Server when record reqeust is granted
44 void StartRecordDataL();
45 // Called by Audio Policy Server when play tone reqeust is granted
46 void StartPlayToneL();
47 // Called by Audio Policy Server when play dual tone request is granted
48 void StartPlayDualToneL();
49 // Called by Audio Policy Server when play DTMF reqeust is granted
50 void StartPlayDTMFStringL();
51 // Called by Audio Policy Server when play tone sequence reqeust is granted
52 void StartPlayToneSequenceL();
53 // Called by Audio Policy Server when DevSound instance looses device
54 void SendEvent(const TMMFEvent& aEvent);
55 // Updates the total bytes played from audio device
56 void UpdateBytesPlayed();
58 // CMMFHwDevice implementation:
59 TInt FillThisBuffer(CMMFBuffer& aHwBuffer);
60 TInt EmptyThisBuffer(CMMFBuffer& aHwBuffer);
61 TInt DeviceMessage(TDesC8& aMsg);
63 // CMMFHwDevice implementation ends
66 #endif // __MMFBTDEVSOUNDSESSIONTND_H__