|
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 /** @file |
|
19 * |
|
20 * The mixin used by the USB Device object to notify all of |
|
21 * it's observers of any state changes that occur |
|
22 * |
|
23 * Copyright (c) 1997-2007 Symbian Ltd. All rights reserved. |
|
24 */ |
|
25 |
|
26 #ifndef __MUSBDEVICENOTIFY_H__ |
|
27 #define __MUSBDEVICENOTIFY_H__ |
|
28 |
|
29 #include <usbstates.h> |
|
30 |
|
31 /** |
|
32 * The MUsbDeviceNotify class |
|
33 * |
|
34 * The mixin used by the USB Device object to notify all of |
|
35 * it's observers of any state changes that occur |
|
36 |
|
37 @publishedPartner |
|
38 @released |
|
39 */ |
|
40 class MUsbDeviceNotify |
|
41 { |
|
42 public: |
|
43 /** |
|
44 * Called when the USB service state has changed |
|
45 * |
|
46 * @param aLastError The last error code detected |
|
47 * @param aOldState The previous service state |
|
48 * @param aNewState The new service state |
|
49 */ |
|
50 virtual void UsbServiceStateChange(TInt aLastError, TUsbServiceState aOldState, TUsbServiceState aNewState) = 0; |
|
51 |
|
52 /** |
|
53 * Called when the USB device state has changed |
|
54 * |
|
55 * @param aLastError The last error code detected |
|
56 * @param aOldState The previous device state |
|
57 * @param aNewState The new device state |
|
58 */ |
|
59 virtual void UsbDeviceStateChange(TInt aLastError, TUsbDeviceState aOldState, TUsbDeviceState aNewState) = 0; |
|
60 }; |
|
61 |
|
62 #endif |
|
63 |