equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-2009 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". |
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Monitors host events |
|
15 * |
8 * |
16 */ |
9 * Initial Contributors: |
17 |
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Monitors host events |
|
15 * |
|
16 */ |
18 |
17 |
19 #ifndef C_USBHOSTEVENTNOTIFICATIONOBSERVER_H |
18 #ifndef C_USBHOSTEVENTNOTIFICATIONOBSERVER_H |
20 #define C_USBHOSTEVENTNOTIFICATIONOBSERVER_H |
19 #define C_USBHOSTEVENTNOTIFICATIONOBSERVER_H |
21 |
20 |
22 #include <e32base.h> |
21 #include <e32base.h> |
61 /** |
60 /** |
62 * Called when drivers loading failed |
61 * Called when drivers loading failed |
63 * @param aInfo additional information |
62 * @param aInfo additional information |
64 */ |
63 */ |
65 virtual void DriverLoadFailureL(TDeviceEventInformation aInfo) = 0; |
64 virtual void DriverLoadFailureL(TDeviceEventInformation aInfo) = 0; |
66 |
65 |
67 /** |
66 /** |
68 * Called when error happens while observing |
67 * Called when error happens while observing |
69 * @param aError error code |
68 * @param aError error code |
70 */ |
69 */ |
71 virtual void HostEventNotificationErrorL(TInt aError) = 0; |
70 virtual void HostEventNotificationErrorL(TInt aError) = 0; |
72 |
71 |
73 }; |
72 }; |
74 |
73 |
75 /** |
74 /** |
140 private: |
139 private: |
141 // data |
140 // data |
142 |
141 |
143 /** |
142 /** |
144 * The observer reports changes to own observers |
143 * The observer reports changes to own observers |
145 * Owns |
144 * Not owns |
146 */ |
145 */ |
147 RPointerArray<MUsbHostEventNotificationObserver> iObservers; |
146 RPointerArray<MUsbHostEventNotificationObserver> iObservers; |
148 |
147 |
149 /** |
148 /** |
150 * Notifications come from USB |
149 * Notifications come from USB |