author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 31 Mar 2010 23:38:45 +0300 | |
branch | RCL_3 |
changeset 22 | 2f92ad2dc5db |
parent 0 | a41df078684a |
permissions | -rw-r--r-- |
22
2f92ad2dc5db
Revision: 201013
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
1 |
// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
0 | 2 |
// All rights reserved. |
3 |
// This component and the accompanying materials are made available |
|
4 |
// under the terms of the License "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 |
@internalTechnology |
|
19 |
*/ |
|
20 |
||
21 |
#ifndef CUSBIFACEHANDLER_H |
|
22 |
#define CUSBIFACEHANDLER_H |
|
23 |
||
24 |
class CUsbInterfaceHandler : public CActive |
|
25 |
{ |
|
26 |
public: |
|
22
2f92ad2dc5db
Revision: 201013
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
27 |
static CUsbInterfaceHandler* NewL(RUsbInterface &aInterface, RUsbPipe& aBulkPipeIn); |
2f92ad2dc5db
Revision: 201013
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
28 |
CUsbInterfaceHandler(RUsbInterface &aInterface, RUsbPipe& aBulkPipeIn); |
0 | 29 |
~CUsbInterfaceHandler(); |
22
2f92ad2dc5db
Revision: 201013
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
30 |
|
0 | 31 |
void GetMaxLun(TLun* aReceiveData, const RMessage2& aMessage); |
22
2f92ad2dc5db
Revision: 201013
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
32 |
|
0 | 33 |
private: |
34 |
void RunL(); |
|
35 |
void DoCancel(); |
|
36 |
||
37 |
enum TState |
|
38 |
{ |
|
39 |
ENone, |
|
40 |
EReset, |
|
41 |
EGetMaxLun |
|
42 |
}; |
|
43 |
||
44 |
private: |
|
45 |
TState iState; |
|
46 |
RMessage2 iBotGetMaxLun; |
|
47 |
TLun* ipGetMaxLun; |
|
48 |
||
49 |
RUsbInterface& iInterface; |
|
22
2f92ad2dc5db
Revision: 201013
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
50 |
RUsbPipe& iBulkPipeIn; |
0 | 51 |
TBuf8<1> iBuffer; |
52 |
}; |
|
53 |
||
54 |
#endif // CUSBIFACEHANDLER_H |