usbmgmt/usbmgr/device/classdrivers/acm/classimplementation/ecacm/inc/ActiveReadOneOrMoreReader.h
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __ACTIVEREADONEORMOREREADER_H__ |
|
19 #define __ACTIVEREADONEORMOREREADER_H__ |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <d32usbc.h> |
|
23 |
|
24 class RDevUsbcClient; |
|
25 class MReadOneOrMoreObserver; |
|
26 |
|
27 NONSHARABLE_CLASS(CActiveReadOneOrMoreReader) : public CActive |
|
28 /** |
|
29 * Active object to post ReadOneOrMore requests on the LDD. |
|
30 */ |
|
31 { |
|
32 public: |
|
33 static CActiveReadOneOrMoreReader* NewL(MReadOneOrMoreObserver& aParent, |
|
34 RDevUsbcClient& aLdd, TEndpointNumber aEndpoint); |
|
35 ~CActiveReadOneOrMoreReader(); |
|
36 |
|
37 public: |
|
38 void ReadOneOrMore(TDes8& aDes, TInt aLength); |
|
39 |
|
40 private: |
|
41 CActiveReadOneOrMoreReader(MReadOneOrMoreObserver& aParent, |
|
42 RDevUsbcClient& aLdd, TEndpointNumber aEndpoint); |
|
43 |
|
44 private: // from CActive |
|
45 virtual void DoCancel(); |
|
46 virtual void RunL(); |
|
47 |
|
48 private: // unowned |
|
49 MReadOneOrMoreObserver& iParent; |
|
50 RDevUsbcClient& iLdd; |
|
51 |
|
52 private: // owned |
|
53 TEndpointNumber iEndpoint; |
|
54 }; |
|
55 |
|
56 #endif // __ACTIVEREADONEORMOREREADER_H__ |