equal
deleted
inserted
replaced
|
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 HCTLUSBORIGINALCONTROL_H |
|
22 #define HCTLUSBORIGINALCONTROL_H |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <d32usbdi.h> |
|
26 |
|
27 class MHCTLChannelObserver; |
|
28 |
|
29 /** |
|
30 Control pipe in the spec. defined USB transport is one way. |
|
31 */ |
|
32 NONSHARABLE_CLASS(CHCTLUsbOriginalCommand) |
|
33 : public CActive |
|
34 { |
|
35 public: |
|
36 static CHCTLUsbOriginalCommand* NewL(RUsbInterface& aInterface); |
|
37 ~CHCTLUsbOriginalCommand(); |
|
38 |
|
39 TInt Write(const TDesC8& aData); |
|
40 void SetChannelObserver(MHCTLChannelObserver& aObserver); |
|
41 |
|
42 private: |
|
43 CHCTLUsbOriginalCommand(RUsbInterface& aInterface); |
|
44 |
|
45 private: // from CActive |
|
46 virtual void RunL(); |
|
47 virtual void DoCancel(); |
|
48 |
|
49 private: |
|
50 MHCTLChannelObserver* iChannelObserver; |
|
51 RUsbInterface& iInterface; |
|
52 RUsbInterface::TUsbTransferRequestDetails iEp0Details; |
|
53 TBuf8<255> iRecvData; // TODO test if we can remove this. |
|
54 }; |
|
55 |
|
56 #endif // HCTLUSBORIGINALCONTROL_H |
|
57 |