equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008-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 * The mixin used by the USB OTG/Host objects to notify all of |
|
16 * it's observers of any messages and state changes that occur |
|
17 * |
|
18 */ |
|
19 |
|
20 /** |
|
21 @file |
|
22 */ |
|
23 |
|
24 #ifndef __MUSBOTGHOSTNOTIFYOBSERVER_H__ |
|
25 #define __MUSBOTGHOSTNOTIFYOBSERVER_H__ |
|
26 |
|
27 #include <usb/usbshared.h> |
|
28 |
|
29 /** |
|
30 * The MUsbOtgHostNotifyObserver class |
|
31 * |
|
32 * The mixin used by the USB Otg/Host objects to notify all of |
|
33 * it's observers of any messages and state changes that occur |
|
34 * |
|
35 * @internalTechnology |
|
36 * @released |
|
37 */ |
|
38 class MUsbOtgHostNotifyObserver |
|
39 { |
|
40 public: |
|
41 /** |
|
42 * Called when the USB OTG/Host components reports |
|
43 * new message arrival |
|
44 * |
|
45 * @param aMessage The last message code detected |
|
46 */ |
|
47 virtual void UsbOtgHostMessage(TInt aMessage) = 0; |
|
48 |
|
49 /** |
|
50 * Called when the USB Host state has changed |
|
51 * |
|
52 * @param aDevInfo The last device info |
|
53 */ |
|
54 virtual void UsbHostEvent(TDeviceEventInformation& aDevInfo) = 0; |
|
55 }; |
|
56 |
|
57 #endif |