equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2006-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". |
20 #define C_CDUNUSBCONFIG_H |
20 #define C_CDUNUSBCONFIG_H |
21 |
21 |
22 #include <e32property.h> |
22 #include <e32property.h> |
23 #include <usb/acmconfig.h> |
23 #include <usb/acmconfig.h> |
24 #include "DunPlugin.h" |
24 #include "DunPlugin.h" |
25 |
|
26 enum TUsbConfigState |
|
27 { |
|
28 EUsbConfigStateIdle, |
|
29 EUsbConfigStateWaiting |
|
30 }; |
|
31 |
25 |
32 /** |
26 /** |
33 * Notification interface class to report USB ACM configuration change |
27 * Notification interface class to report USB ACM configuration change |
34 * |
28 * |
35 * @lib dunusb.lib |
29 * @lib dunusb.lib |
115 |
109 |
116 /** |
110 /** |
117 * Stops listening for ACM configuration changes |
111 * Stops listening for ACM configuration changes |
118 * |
112 * |
119 * @since S60 3.2 |
113 * @since S60 3.2 |
120 * @return Symbian error code on error, KErrNone otherwise |
114 * @return None |
121 */ |
115 */ |
122 TInt Stop(); |
116 void Stop(); |
123 |
117 |
124 private: |
118 private: |
125 |
119 |
126 CDunUsbConfig( MDunServerCallback* aServer, |
120 CDunUsbConfig( MDunServerCallback* aServer, |
127 MDunUsbConfig* aCallback, |
121 MDunUsbConfig* aCallback, |
173 /** |
167 /** |
174 * Callback to call when notification(s) via MDunUsbConfig to be made |
168 * Callback to call when notification(s) via MDunUsbConfig to be made |
175 */ |
169 */ |
176 MDunUsbConfig* iCallback; |
170 MDunUsbConfig* iCallback; |
177 |
171 |
178 /** |
|
179 * Current state of configuration waiting: active or inactive |
|
180 */ |
|
181 TUsbConfigState iConfigState; |
|
182 |
|
183 /* |
172 /* |
184 * Protocol number of USB ACM to which listening is done |
173 * Protocol number of USB ACM to which listening is done |
185 */ |
174 */ |
186 TUint8 iProtocol; |
175 TUint8 iProtocol; |
187 |
176 |