diff -r 28479eeba3fb -r 83036355c0f3 bthci/hci2implementations/hctls/usb_original/hctl/inc/hctlusboriginalcommand.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bthci/hci2implementations/hctls/usb_original/hctl/inc/hctlusboriginalcommand.h Thu Oct 14 11:30:12 2010 +0100 @@ -0,0 +1,57 @@ +// Copyright (c) 2007-2010 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 +@internalComponent +*/ + +#ifndef HCTLUSBORIGINALCONTROL_H +#define HCTLUSBORIGINALCONTROL_H + +#include +#include + +class MHCTLChannelObserver; + +/** +Control pipe in the spec. defined USB transport is one way. +*/ +NONSHARABLE_CLASS(CHCTLUsbOriginalCommand) + : public CActive + { +public: + static CHCTLUsbOriginalCommand* NewL(RUsbInterface& aInterface); + ~CHCTLUsbOriginalCommand(); + + TInt Write(const TDesC8& aData); + void SetChannelObserver(MHCTLChannelObserver& aObserver); + +private: + CHCTLUsbOriginalCommand(RUsbInterface& aInterface); + +private: // from CActive + virtual void RunL(); + virtual void DoCancel(); + +private: + MHCTLChannelObserver* iChannelObserver; + RUsbInterface& iInterface; + RUsbInterface::TUsbTransferRequestDetails iEp0Details; + TBuf8<255> iRecvData; // TODO test if we can remove this. + }; + +#endif // HCTLUSBORIGINALCONTROL_H +