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