bluetoothmgmt/bluetoothclientlib/inc/a2dpoptimisation.h
changeset 0 29b1cd4cb562
child 47 a1b8f5cc021e
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 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 /**
       
    17  @file
       
    18  @publishedPartner
       
    19 */
       
    20 
       
    21 #ifndef A2DP_OPTIMISATION_H
       
    22 #define A2DP_OPTIMISATION_H
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <bluetooth/hci/hcitypes.h>
       
    26 
       
    27 class RHCIServerSession;
       
    28 
       
    29 _LIT(KA2dpOptimiserUtilsPanic, "A2dpOptimClient");
       
    30 
       
    31 NONSHARABLE_CLASS(RA2dpOptimiser)
       
    32 /**
       
    33 API used for optimisation related to A2DP streaming
       
    34 */
       
    35 	{
       
    36 public:
       
    37 	enum TA2dpOptimiserUtilsPanic
       
    38 		{
       
    39 		EApiUsedWhenHandleIsNotOpen = 0,
       
    40 		EHandleIsAlreadyOpen = 1,
       
    41 		};
       
    42 
       
    43 	enum TA2dpOptimiserFunctionIds
       
    44 		{
       
    45 		EHCIA2dpOptimiseAcl = 0,
       
    46 		EHCIA2dpRemoveAclOptimisation = 1,
       
    47 		};
       
    48 
       
    49 public:
       
    50 	IMPORT_C RA2dpOptimiser();
       
    51 
       
    52 	IMPORT_C TInt Open();
       
    53 	IMPORT_C void Close();
       
    54 
       
    55 	IMPORT_C void OptimiseAclForAudioStreaming(const TBTDevAddr& aDevAddr, TUint aPeakBandwidth, TUint aAccessLatency);
       
    56 	IMPORT_C void RemoveAclOptimisation(const TBTDevAddr& aDevAddr);
       
    57 
       
    58 private:
       
    59 	// private copy c'tor to prevent shallow copy of iHCIServerSession
       
    60 	RA2dpOptimiser(const RA2dpOptimiser&);
       
    61 	
       
    62 private:
       
    63 	RHCIServerSession* iHCIServerSession;
       
    64 
       
    65 	TUint32 iReserved1; // Padding for possible future "per-copy" state.
       
    66 	};
       
    67 	
       
    68 #endif /* A2DP_OPTIMISATION_H */
       
    69