mtptransports/mtpusbtransport/usbdatatypes/inc/tmtpusbcontrolrequestmodfunction.h
equal
deleted
inserted
replaced
|
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 |
|
21 #ifndef TMTPUSBCONTROLREQUESTMODFUNCTION_H |
|
22 #define TMTPUSBCONTROLREQUESTMODFUNCTION_H |
|
23 |
|
24 #include <mtp/tmtptypeflatbase.h> |
|
25 |
|
26 /** |
|
27 Defines the MTP USB device class Microsoft OS Feature Descriptor (MOD) function |
|
28 section dataset. |
|
29 @internalComponent |
|
30 |
|
31 */ |
|
32 class TMTPUsbControlRequestMODFunction : public TMTPTypeFlatBase |
|
33 { |
|
34 |
|
35 public: |
|
36 |
|
37 /** |
|
38 MTP USB MOD function section dataset element identifiers. |
|
39 */ |
|
40 enum TElements |
|
41 { |
|
42 EdwLength, |
|
43 EbcdVersion, |
|
44 EwIndex, |
|
45 EbCount, |
|
46 EReserved1, |
|
47 EReserved2, |
|
48 EReserved3, |
|
49 EReserved4, |
|
50 EReserved5, |
|
51 EReserved6, |
|
52 EReserved7, |
|
53 EbFirstInterfaceNo, |
|
54 EbInterfaceCount, |
|
55 EcompatibleID, |
|
56 EsubCompatibleID, |
|
57 EReserved8, |
|
58 EReserved9, |
|
59 EReserved10, |
|
60 EReserved11, |
|
61 EReserved12, |
|
62 EReserved13, |
|
63 ENumElements |
|
64 }; |
|
65 |
|
66 public: |
|
67 |
|
68 IMPORT_C TMTPUsbControlRequestMODFunction(); |
|
69 |
|
70 public: // From TMTPTypeFlatBase |
|
71 |
|
72 IMPORT_C TUint Type() const; |
|
73 |
|
74 private: // From TMTPTypeFlatBase |
|
75 |
|
76 IMPORT_C const TMTPTypeFlatBase::TElementInfo& ElementInfo(TInt aElementId) const; |
|
77 |
|
78 private: |
|
79 |
|
80 static const TInt KSize = 40; |
|
81 static const TMTPTypeFlatBase::TElementInfo iElementMetaData[]; |
|
82 |
|
83 const TFixedArray<TElementInfo, ENumElements> iElementInfo; |
|
84 TBuf8<KSize> iBuffer; |
|
85 }; |
|
86 |
|
87 #endif // TMTPUSBCONTROLREQUESTMODFUNCTION_H |