os/mm/devsound/sounddevbt/src/A2dpBlueTooth/client/A2dpBTHeadsetAudioIfClient.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/devsound/sounddevbt/src/A2dpBlueTooth/client/A2dpBTHeadsetAudioIfClient.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,66 @@
     1.4 +// Copyright (c) 2005-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 __A2DPBTHEADSETAUDIOIFCLIENT_H__
    1.20 +#define __A2DPBTHEADSETAUDIOIFCLIENT_H__
    1.21 +
    1.22 +#include <e32base.h>
    1.23 +#include <e32std.h>
    1.24 +#include <mmf/server/sounddevice.h>
    1.25 +#include <bttypes.h>
    1.26 +
    1.27 +// Forward declarations.
    1.28 +class TFourCC;
    1.29 +class TRange;
    1.30 +
    1.31 +/**
    1.32 +*@internalTechnology
    1.33 +*/
    1.34 +class RA2dpBTHeadsetAudioInterface : public RMmfSessionBase
    1.35 +	{
    1.36 +public:
    1.37 +	IMPORT_C RA2dpBTHeadsetAudioInterface();
    1.38 +	IMPORT_C TInt Connect();	// Connect to the server
    1.39 +	IMPORT_C void Close();
    1.40 +
    1.41 +	IMPORT_C void Initialize(const TBTDevAddr& aRemoteAddress, TRequestStatus& aStatus);
    1.42 +	IMPORT_C void CancelInitialize();
    1.43 +	IMPORT_C void GetSupportedDataTypesL(RArray<TFourCC>& aSupportedDataTypes) const;
    1.44 +	IMPORT_C void GetSupportedSampleRatesL(RArray<TUint>& aSupportedDiscreteRates, RArray<TRange>& aSupportedRateRanges) const;
    1.45 +	IMPORT_C void GetSupportedChannelsL(RArray<TUint>& aSupportedChannels, TMMFStereoSupport& aStereoSupport) const;
    1.46 +	IMPORT_C TInt SetDataType(const TFourCC& aDataType);
    1.47 +	IMPORT_C TInt SetSampleRate(TUint aSampleRate);
    1.48 +	IMPORT_C TInt SetChannels(TUint aChannels, TMMFStereoSupport aStereoSupport);
    1.49 +	IMPORT_C void OpenDevice(TRequestStatus& aStatus);
    1.50 +	IMPORT_C void CancelOpenDevice();
    1.51 +	IMPORT_C void CloseDevice(TRequestStatus& aStatus);
    1.52 +	IMPORT_C TUint Volume() const;
    1.53 +	IMPORT_C TInt SetVolume(TUint aVolume);
    1.54 +	IMPORT_C void PlayData(const TDesC8& aData, TRequestStatus& aStatus);
    1.55 +	IMPORT_C void CancelPlayData();
    1.56 +	IMPORT_C void FlushBuffer();
    1.57 +	IMPORT_C TUint BytesPlayed() const;
    1.58 +	IMPORT_C void ResetBytesPlayed();
    1.59 +	IMPORT_C void PauseBuffer();
    1.60 +	IMPORT_C void ResumePlaying();
    1.61 +	IMPORT_C void NotifyError(TRequestStatus& aStatus);
    1.62 +	IMPORT_C void CancelNotifyError();
    1.63 +private:
    1.64 +	HBufC*	iBufAddr;
    1.65 +	TPckgBuf<TBTDevAddr>* iPckgBuf;
    1.66 +	};
    1.67 +
    1.68 +
    1.69 +#endif