|
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 * MClassControllerNotify.h |
|
16 * Implements part of the USB Class API Framework |
|
17 * This is the mixin used by the USB classes to notify UsbMan of failures, |
|
18 * and to get an iterator over the set of classes UsbMan owns. |
|
19 * |
|
20 */ |
|
21 |
|
22 /** |
|
23 @file |
|
24 */ |
|
25 |
|
26 #ifndef __MUSBCLASSCONTROLLERNOTIFY_H__ |
|
27 #define __MUSBCLASSCONTROLLERNOTIFY_H__ |
|
28 |
|
29 #include <e32def.h> |
|
30 |
|
31 class CUsbClassControllerIterator; |
|
32 |
|
33 /** The MUsbClassControllerNotify class |
|
34 * |
|
35 * Implements part of the USB Class API Framework. |
|
36 * This is the mixin used by the USB classes to notify UsbMan of any changes |
|
37 * in their state. |
|
38 |
|
39 @publishedPartner |
|
40 @released |
|
41 */ |
|
42 class MUsbClassControllerNotify |
|
43 { |
|
44 public: |
|
45 /** |
|
46 * Creates and returns a new iterator over USB classes. The caller takes |
|
47 * ownership of this iterator. |
|
48 * |
|
49 * @return A new iterator |
|
50 */ |
|
51 virtual CUsbClassControllerIterator* |
|
52 UccnGetClassControllerIteratorL() = 0; |
|
53 |
|
54 /** |
|
55 * Called when a USB class has received an unexpected error and should be |
|
56 * shut down. |
|
57 * |
|
58 * @param aError The error code |
|
59 */ |
|
60 virtual void UccnError(TInt aError) = 0; |
|
61 }; |
|
62 #endif |
|
63 |