bthci/hci2implementations/hctls/usb_original/hctl/inc/hctlusboriginalaclout.h
changeset 27 83036355c0f3
equal deleted inserted replaced
4:28479eeba3fb 27:83036355c0f3
       
     1 // Copyright (c) 2007-2010 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 @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef HCTLUSBORIGINALACLOUT_H
       
    22 #define HCTLUSBORIGINALACLOUT_H
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <d32usbdi.h>
       
    26 #include <d32usbtransfers.h>
       
    27 
       
    28 class MHCTLChannelObserver;
       
    29 
       
    30 NONSHARABLE_CLASS(CHCTLUsbOriginalAclOut)
       
    31 	: public CActive
       
    32 	{
       
    33 private:
       
    34 	static const TInt KEndpointNumber = 0x02;
       
    35 	
       
    36 public:
       
    37 	static CHCTLUsbOriginalAclOut* NewL(RUsbInterface& aInterface);
       
    38 	~CHCTLUsbOriginalAclOut();
       
    39 	
       
    40 	TInt Write(const TDesC8& aData);
       
    41 	void SetChannelObserver(MHCTLChannelObserver& aObserver);
       
    42 	
       
    43 private: // from CActive
       
    44 	virtual void RunL();
       
    45 	virtual void DoCancel();
       
    46 	
       
    47 	CHCTLUsbOriginalAclOut(RUsbInterface& aInterface);
       
    48 	void ConstructL();
       
    49 	
       
    50 private:
       
    51 	MHCTLChannelObserver* iChannelObserver;
       
    52 	RUsbInterface& iInterface;
       
    53 	RUsbPipe iPipe;
       
    54 	RUsbBulkTransferDescriptor iTransfer;
       
    55 	};
       
    56 
       
    57 #endif // HCTLUSBORIGINALACLOUT_H