diff -r 000000000000 -r f63038272f30 bluetoothengine/btmac/common/btmchandlerapi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bluetoothengine/btmac/common/btmchandlerapi.h Mon Jan 18 20:28:57 2010 +0200 @@ -0,0 +1,65 @@ +/* +* 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: +* +*/ + + +#ifndef BTMCHANDLERAPI_H +#define BTMCHANDLERAPI_H + +#include "btmcprofileid.h" +#include "btmcobserver.h" + +// forward declarations +class CBtmcProtocol; + +NONSHARABLE_CLASS(CBtmcHandlerApi) : public CBase + { +public: + + IMPORT_C static CBtmcHandlerApi* NewL( + MBtmcObserver& aObserver, TBtmcProfileId aProfile, const TDesC8& aBTDevAddr, TBool aAccessoryInitiated); + + IMPORT_C ~CBtmcHandlerApi(); + + /** + * Handle an AT command from HF or HS unit. + * + */ + IMPORT_C void HandleProtocolDataL(const TDesC8& aData); + + IMPORT_C void HandleNrecCompletedL(TInt aErr); + + IMPORT_C void ActivateRemoteVolumeControl(); + + IMPORT_C void DeActivateRemoteVolumeControl(); + + IMPORT_C TInt GetRemoteSupportedFeature(); + +private: + CBtmcHandlerApi(); + + // 2nd phase construction, called by NewL() + void ConstructL(MBtmcObserver& aObserver, TBtmcProfileId aProfile, const TDesC8& aBTDevAddr, TBool aAccessoryInitiated); + +private: + CBtmcProtocol* iHandler; + }; + + +#endif // BTMCHANDLERAPI_H + +// End of File + \ No newline at end of file