|
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 * Implements part of UsbMan USB Class Framework. |
|
16 * All USB classes to be managed by UsbMan must derive |
|
17 * from this class. |
|
18 * |
|
19 */ |
|
20 |
|
21 /** |
|
22 @file |
|
23 */ |
|
24 |
|
25 #ifndef CUSBCLASSCONTROLLERPLUGIN_H__ |
|
26 #define CUSBCLASSCONTROLLERPLUGIN_H__ |
|
27 |
|
28 #include <cusbclasscontrollerbase.h> |
|
29 |
|
30 |
|
31 class MUsbClassControllerNotify; |
|
32 |
|
33 class CUsbClassControllerPlugIn : public CUsbClassControllerBase |
|
34 /** Base class for dynamic Class Controllers, implemented as ECOM plugins. |
|
35 |
|
36 @publishedPartner |
|
37 @released |
|
38 */ |
|
39 { |
|
40 public: |
|
41 /** Factory function |
|
42 @param aImplementationId The UID of this implementation. |
|
43 @param aOwner Interface to talk to the server. |
|
44 @return Ownership of a new CUsbClassControllerPlugIn. |
|
45 */ |
|
46 IMPORT_C static CUsbClassControllerPlugIn* NewL(TUid aImplementationId, |
|
47 MUsbClassControllerNotify& aOwner); |
|
48 |
|
49 /** Destructor |
|
50 */ |
|
51 IMPORT_C virtual ~CUsbClassControllerPlugIn(); |
|
52 |
|
53 |
|
54 |
|
55 protected: |
|
56 /** Constructor |
|
57 @param aOwner Interface to talk to the server. |
|
58 @param aStartupPriority The relative priority of this class controller. |
|
59 */ |
|
60 IMPORT_C CUsbClassControllerPlugIn(MUsbClassControllerNotify& aOwner, TInt aStartupPriority); |
|
61 |
|
62 protected: |
|
63 /** |
|
64 UID given to us by ECOM when the instance is created. Used when the |
|
65 instance is destroyed. |
|
66 */ |
|
67 TUid iPrivateEComUID; |
|
68 }; |
|
69 |
|
70 #endif |
|
71 |