epoc32/include/bluetooth/a2dpoptimisation.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/bluetooth/a2dpoptimisation.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,69 @@
     1.4 +// Copyright (c) 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 +/**
    1.20 + @file
    1.21 + @publishedPartner
    1.22 +*/
    1.23 +
    1.24 +#ifndef A2DP_OPTIMISATION_H
    1.25 +#define A2DP_OPTIMISATION_H
    1.26 +
    1.27 +#include <e32base.h>
    1.28 +#include <bluetooth/hci/hcitypes.h>
    1.29 +
    1.30 +class RHCIServerSession;
    1.31 +
    1.32 +_LIT(KA2dpOptimiserUtilsPanic, "A2dpOptimClient");
    1.33 +
    1.34 +NONSHARABLE_CLASS(RA2dpOptimiser)
    1.35 +/**
    1.36 +API used for optimisation related to A2DP streaming
    1.37 +*/
    1.38 +	{
    1.39 +public:
    1.40 +	enum TA2dpOptimiserUtilsPanic
    1.41 +		{
    1.42 +		EApiUsedWhenHandleIsNotOpen = 0,
    1.43 +		EHandleIsAlreadyOpen = 1,
    1.44 +		};
    1.45 +
    1.46 +	enum TA2dpOptimiserFunctionIds
    1.47 +		{
    1.48 +		EHCIA2dpOptimiseAcl = 0,
    1.49 +		EHCIA2dpRemoveAclOptimisation = 1,
    1.50 +		};
    1.51 +
    1.52 +public:
    1.53 +	IMPORT_C RA2dpOptimiser();
    1.54 +
    1.55 +	IMPORT_C TInt Open();
    1.56 +	IMPORT_C void Close();
    1.57 +
    1.58 +	IMPORT_C void OptimiseAclForAudioStreaming(const TBTDevAddr& aDevAddr, TUint aPeakBandwidth, TUint aAccessLatency);
    1.59 +	IMPORT_C void RemoveAclOptimisation(const TBTDevAddr& aDevAddr);
    1.60 +
    1.61 +private:
    1.62 +	// private copy c'tor to prevent shallow copy of iHCIServerSession
    1.63 +	RA2dpOptimiser(const RA2dpOptimiser&);
    1.64 +	
    1.65 +private:
    1.66 +	RHCIServerSession* iHCIServerSession;
    1.67 +
    1.68 +	TUint32 iReserved1; // Padding for possible future "per-copy" state.
    1.69 +	};
    1.70 +	
    1.71 +#endif /* A2DP_OPTIMISATION_H */
    1.72 +