os/mm/devsound/devsoundrefplugin/src/platsec/server/AudioServer/MmfDevSoundSessionXtnd.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/devsound/devsoundrefplugin/src/platsec/server/AudioServer/MmfDevSoundSessionXtnd.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,66 @@
1.4 +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef __MMFDEVSOUNDSESSIONTND_H__
1.20 +#define __MMFDEVSOUNDSESSIONTND_H__
1.21 +
1.22 +#include "MmfDevSoundSession.h"
1.23 +#include "MmfDevSoundInfo.h"
1.24 +
1.25 +/*
1.26 + *
1.27 + * Class Name: CMMFDevSoundSessionXtnd
1.28 + *
1.29 + * This class provides an extended interface for CMMFDevSound - intended
1.30 + * to provide additional calls that are applicable to a particular implementation
1.31 + * This version is built on RMdaDevSound
1.32 + */
1.33 +class CMMFDevSoundSessionXtnd; // declared here.
1.34 +
1.35 +NONSHARABLE_CLASS( CMMFDevSoundSessionXtnd ) : public CMMFDevSoundSession
1.36 + {
1.37 +public:
1.38 +
1.39 + // Interface for Audio Policy
1.40 + // Sets id for this DevSound instance
1.41 + void SetDevSoundId(TInt aDevSoundId);
1.42 + // Returns info about this DevSound instance
1.43 + TMMFDevSoundInfo DevSoundInfo();
1.44 + // Called by Audio Policy Server when play reqeust is granted
1.45 + void StartPlayDataL();
1.46 + // Called by Audio Policy Server when record reqeust is granted
1.47 + void StartRecordDataL();
1.48 + // Called by Audio Policy Server when play tone reqeust is granted
1.49 + void StartPlayToneL();
1.50 + // Called by Audio Policy Server when play dual tone request is granted
1.51 + void StartPlayDualToneL();
1.52 + // Called by Audio Policy Server when play DTMF reqeust is granted
1.53 + void StartPlayDTMFStringL();
1.54 + // Called by Audio Policy Server when play tone sequence reqeust is granted
1.55 + void StartPlayToneSequenceL();
1.56 + // Called by Audio Policy Server when DevSound instance looses device
1.57 + void SendEvent(const TMMFEvent& aEvent);
1.58 + // Updates the total bytes played from audio device
1.59 + void UpdateBytesPlayed();
1.60 +
1.61 + // CMMFHwDevice implementation:
1.62 + TInt FillThisBuffer(CMMFBuffer& aHwBuffer);
1.63 + TInt EmptyThisBuffer(CMMFBuffer& aHwBuffer);
1.64 + TInt DeviceMessage(TDesC8& aMsg);
1.65 + void DeviceStopped();
1.66 + // CMMFHwDevice implementation ends
1.67 + };
1.68 +
1.69 +#endif // __MMFDEVSOUNDSESSIONTND_H__