1 /** |
1 /** |
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
26 #ifndef __CPERSONALITY_INL__ |
26 #ifndef __CPERSONALITY_INL__ |
27 #define __CPERSONALITY_INL__ |
27 #define __CPERSONALITY_INL__ |
28 |
28 |
29 /** |
29 /** |
30 * @internalComponent |
30 * @internalComponent |
31 * @return personality id |
|
32 */ |
|
33 inline TInt CPersonality::PersonalityId() const |
|
34 { |
|
35 return iId; |
|
36 } |
|
37 |
|
38 /** |
|
39 * @internalComponent |
|
40 * @return supported class uids |
|
41 */ |
|
42 inline const RArray<TUid>& CPersonality::SupportedClasses() const |
|
43 { |
|
44 return iClassUids; |
|
45 } |
|
46 |
|
47 /** |
|
48 * @internalComponent |
|
49 * @return a const reference to device descriptor |
|
50 */ |
|
51 inline const CUsbDevice::TUsbDeviceDescriptor& CPersonality::DeviceDescriptor() const |
|
52 { |
|
53 return iDeviceDescriptor; |
|
54 } |
|
55 |
|
56 /** |
|
57 * @internalComponent |
|
58 * @return a const reference to device descriptor |
|
59 */ |
|
60 inline CUsbDevice::TUsbDeviceDescriptor& CPersonality::DeviceDescriptor() |
|
61 { |
|
62 return iDeviceDescriptor; |
|
63 } |
|
64 |
|
65 /** |
|
66 * @internalComponent |
|
67 * @return a const pointer to manufacturer string |
|
68 */ |
|
69 inline const TDesC* CPersonality::Manufacturer() const |
|
70 { |
|
71 return iManufacturer; |
|
72 } |
|
73 |
|
74 /** |
|
75 * @internalComponent |
|
76 * @return a const pointer to product string |
|
77 */ |
|
78 inline const TDesC* CPersonality::Product() const |
|
79 { |
|
80 return iProduct; |
|
81 } |
|
82 |
|
83 /** |
|
84 * @internalComponent |
|
85 * @return a const pointer to description string |
|
86 */ |
|
87 inline const TDesC* CPersonality::Description() const |
|
88 { |
|
89 return iDescription; |
|
90 } |
|
91 |
|
92 /** |
|
93 * @internalComponent |
|
94 * @return a const pointer to detailed description string |
|
95 */ |
|
96 inline const TDesC* CPersonality::DetailedDescription() const |
|
97 { |
|
98 return iDetailedDescription; |
|
99 } |
|
100 |
|
101 |
|
102 /** |
|
103 * @internalComponent |
|
104 * @return version |
31 * @return version |
105 */ |
32 */ |
106 inline TInt CPersonality::Version() const |
33 inline TInt CPersonality::Version() const |
107 { |
34 { |
108 return iVersion; |
35 return iVersion; |
114 */ |
41 */ |
115 inline TUint32 CPersonality::Property() const |
42 inline TUint32 CPersonality::Property() const |
116 { |
43 { |
117 return iProperty; |
44 return iProperty; |
118 } |
45 } |
|
46 |
|
47 /** |
|
48 * @internalComponent |
|
49 * @return the Device Class information |
|
50 */ |
|
51 inline TUint8 CPersonality::DeviceClass() const |
|
52 { |
|
53 return iDeviceClass; |
|
54 } |
|
55 |
|
56 /** |
|
57 * @internalComponent |
|
58 * @return the Device Sub Class information |
|
59 */ |
|
60 inline TUint8 CPersonality::DeviceSubClass() const |
|
61 { |
|
62 return iDeviceSubClass; |
|
63 } |
|
64 |
|
65 /** |
|
66 * @internalComponent |
|
67 * @return the Device Protocol information |
|
68 */ |
|
69 inline TUint8 CPersonality::DeviceProtocol() const |
|
70 { |
|
71 return iDeviceProtocol; |
|
72 } |
|
73 |
|
74 /** |
|
75 * @internalComponent |
|
76 * @return the Configurations Number information |
|
77 */ |
|
78 inline TUint8 CPersonality::NumConfigurations() const |
|
79 { |
|
80 return iNumConfigurations; |
|
81 } |
|
82 |
|
83 /** |
|
84 * @internalComponent |
|
85 * @return the Product Id information |
|
86 */ |
|
87 inline TUint16 CPersonality::ProductId() const |
|
88 { |
|
89 return iProductId; |
|
90 } |
|
91 |
|
92 /** |
|
93 * @internalComponent |
|
94 * @return the Feature Id information |
|
95 */ |
|
96 inline TInt CPersonality::FeatureId() const |
|
97 { |
|
98 return iFeatureId; |
|
99 } |
|
100 |
|
101 /** |
|
102 * @internalComponent |
|
103 * @return the Feature Id information |
|
104 */ |
|
105 inline TUint16 CPersonality::BcdDevice() const |
|
106 { |
|
107 return iBcdDevice; |
|
108 } |
|
109 |
|
110 /** |
|
111 * @internalComponent |
|
112 * @return personality id |
|
113 */ |
|
114 inline TInt CPersonality::PersonalityId() const |
|
115 { |
|
116 return iPersonalityId; |
|
117 } |
|
118 |
|
119 /** |
|
120 * @internalComponent |
|
121 * @return a const pointer to description string |
|
122 */ |
|
123 inline const TDesC* CPersonality::Description() const |
|
124 { |
|
125 return iDescription; |
|
126 } |
|
127 |
|
128 /** |
|
129 * @internalComponent |
|
130 * @return a const pointer to Personality Configs |
|
131 */ |
|
132 inline const RPointerArray<CPersonalityConfigurations>& CPersonality::PersonalityConfigs() const |
|
133 { |
|
134 return iPersonalityConfigs; |
|
135 } |
|
136 |
|
137 |
|
138 /** |
|
139 * @internalComponent |
|
140 * @return a const to Classes |
|
141 */ |
|
142 inline const RArray<CPersonalityConfigurations::TUsbClasses> & CPersonalityConfigurations::Classes() const |
|
143 { |
|
144 return iClasses; |
|
145 } |
|
146 |
119 #endif // __PERSONALITY_INL__ |
147 #endif // __PERSONALITY_INL__ |
120 |
148 |