os/mm/devsound/sounddevbt/PlatSec/src/Server/AudioServer/MmfBtDevSoundSessionXtnd.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef __MMFBTDEVSOUNDSESSIONTND_H__
    17 #define __MMFBTDEVSOUNDSESSIONTND_H__
    18 
    19 #include "MmfBtDevSoundSession.h"
    20 #include "MmfBtDevSoundInfo.h"
    21 
    22 /*
    23  *
    24  *	Class Name:	CMMFDevSoundSessionXtnd
    25  *
    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
    29  */
    30 class CMMFDevSoundSessionXtnd;	// declared here.
    31 
    32 NONSHARABLE_CLASS( CMMFDevSoundSessionXtnd ) : public CMMFDevSoundSession
    33 	{
    34 public:
    35 
    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();
    57 
    58 	// CMMFHwDevice implementation:
    59 	TInt FillThisBuffer(CMMFBuffer& aHwBuffer);
    60 	TInt EmptyThisBuffer(CMMFBuffer& aHwBuffer);
    61 	TInt DeviceMessage(TDesC8& aMsg);
    62 	void DeviceStopped();
    63 	// CMMFHwDevice implementation ends
    64 	};
    65 
    66 #endif // __MMFBTDEVSOUNDSESSIONTND_H__