|
1 // Copyright (c) 2006-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 "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 #ifndef CMTPUSBSICCLASSCONTROLLER_H |
|
21 #define CMTPUSBSICCLASSCONTROLLER_H |
|
22 |
|
23 #include <e32std.h> |
|
24 #include <cusbclasscontrollerplugin.h> |
|
25 #include <mtp/rmtpclient.h> |
|
26 |
|
27 #include "mtpdebug.h" |
|
28 |
|
29 class MUsbClassControllerNotify; |
|
30 class TUsbDescriptor; |
|
31 |
|
32 /** |
|
33 Implements the USB MTP Class Controller API |
|
34 @internalComponent |
|
35 */ |
|
36 class CMTPUsbSicClassController : public CUsbClassControllerPlugIn |
|
37 { |
|
38 |
|
39 public: |
|
40 |
|
41 static CMTPUsbSicClassController* NewL(MUsbClassControllerNotify& aOwner); |
|
42 ~CMTPUsbSicClassController(); |
|
43 |
|
44 private: // From CActive. |
|
45 |
|
46 void RunL(); |
|
47 void DoCancel(); |
|
48 TInt RunError(TInt aError); |
|
49 |
|
50 private: // From CUsbClassControllerBase |
|
51 |
|
52 void Start(TRequestStatus& aStatus); |
|
53 void Stop(TRequestStatus& aStatus); |
|
54 |
|
55 void GetDescriptorInfo(TUsbDescriptor& aDescriptorInfo) const; |
|
56 |
|
57 private: |
|
58 |
|
59 CMTPUsbSicClassController(MUsbClassControllerNotify& aOwner); |
|
60 void ConstructL(); |
|
61 |
|
62 protected: |
|
63 |
|
64 /** |
|
65 FLOGGER debug trace member variable. |
|
66 */ |
|
67 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
68 |
|
69 private: |
|
70 |
|
71 RMTPClient iMTPSession; |
|
72 }; |
|
73 |
|
74 #endif // CMTPUSBSICCLASSCONTROLLER_H |
|
75 |