0
|
1 |
// Copyright (c) 2008-2009 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 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:
|
|
27 |
CUsbInterfaceHandler(RUsbInterface &aInterface);
|
|
28 |
~CUsbInterfaceHandler();
|
|
29 |
void GetMaxLun(TLun* aReceiveData, const RMessage2& aMessage);
|
|
30 |
static CUsbInterfaceHandler* NewL(RUsbInterface &aInterface);
|
|
31 |
|
|
32 |
private:
|
|
33 |
void RunL();
|
|
34 |
void Reset();
|
|
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;
|
|
50 |
TBuf8<1> iBuffer;
|
|
51 |
};
|
|
52 |
|
|
53 |
#endif // CUSBIFACEHANDLER_H
|