diff -r 000000000000 -r 29b1cd4cb562 bluetoothmgmt/bluetoothclientlib/inc/a2dpoptimisation.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bluetoothmgmt/bluetoothclientlib/inc/a2dpoptimisation.h Fri Jan 15 08:13:17 2010 +0200 @@ -0,0 +1,69 @@ +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +/** + @file + @publishedPartner +*/ + +#ifndef A2DP_OPTIMISATION_H +#define A2DP_OPTIMISATION_H + +#include +#include + +class RHCIServerSession; + +_LIT(KA2dpOptimiserUtilsPanic, "A2dpOptimClient"); + +NONSHARABLE_CLASS(RA2dpOptimiser) +/** +API used for optimisation related to A2DP streaming +*/ + { +public: + enum TA2dpOptimiserUtilsPanic + { + EApiUsedWhenHandleIsNotOpen = 0, + EHandleIsAlreadyOpen = 1, + }; + + enum TA2dpOptimiserFunctionIds + { + EHCIA2dpOptimiseAcl = 0, + EHCIA2dpRemoveAclOptimisation = 1, + }; + +public: + IMPORT_C RA2dpOptimiser(); + + IMPORT_C TInt Open(); + IMPORT_C void Close(); + + IMPORT_C void OptimiseAclForAudioStreaming(const TBTDevAddr& aDevAddr, TUint aPeakBandwidth, TUint aAccessLatency); + IMPORT_C void RemoveAclOptimisation(const TBTDevAddr& aDevAddr); + +private: + // private copy c'tor to prevent shallow copy of iHCIServerSession + RA2dpOptimiser(const RA2dpOptimiser&); + +private: + RHCIServerSession* iHCIServerSession; + + TUint32 iReserved1; // Padding for possible future "per-copy" state. + }; + +#endif /* A2DP_OPTIMISATION_H */ +