|
1 /* |
|
2 * Copyright (c) 2002-2004 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: Ecom plugin Factory header. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_ALFECOMPLUGINFACTORY_H |
|
20 #define C_ALFECOMPLUGINFACTORY_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <ecom/implementationinformation.h> // for typedeffed RImplInfoPtrArray |
|
24 #include <alf/ialfinterfacebase.h> |
|
25 |
|
26 namespace Alf |
|
27 { |
|
28 |
|
29 /** |
|
30 * @class CAlfEComPluginFactory alfecompluginfactory.h "alf/alfecompluginfactory.h" |
|
31 * Base class for Ecom plugins. Takes care of ecom housekeeping. |
|
32 * |
|
33 * @lib alfwidgetutils.lib |
|
34 * @since S60 ?S60_version |
|
35 * @status Draft |
|
36 */ |
|
37 class CAlfEComPluginFactory : public CBase, public IAlfInterfaceBase |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Factory method to create plugin for given interface |
|
43 * @param aInterfaceUid UID of interface being queried/created. |
|
44 * @param aImplKey Implementation Key |
|
45 * @return An ecom plugin factory. |
|
46 */ |
|
47 IMPORT_C static CAlfEComPluginFactory* createPluginFactory( |
|
48 TUid aInterfaceUid,const char* aImplKey); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 IMPORT_C virtual ~CAlfEComPluginFactory(); |
|
54 |
|
55 public: |
|
56 /** |
|
57 * List available interface implementations. |
|
58 * @since Series 60 3.2 |
|
59 * @param aInterfaceUid: Interface Uid |
|
60 * @param aImplInfoArray: Place holder which gets populated |
|
61 * after function call |
|
62 */ |
|
63 IMPORT_C static void getImplementationsL( |
|
64 TUid aInterfaceUid, |
|
65 RImplInfoPtrArray& aImplInfoArray); |
|
66 |
|
67 /** |
|
68 * List available interface implementations. |
|
69 * @since Series 60 3.2 |
|
70 * @param aInterfaceUid: Interface Uid |
|
71 * @param aImplKey Implementation Key |
|
72 * @param aImplInfoArray: Place holder which gets populated after |
|
73 * function call |
|
74 */ |
|
75 IMPORT_C static void getImplementationsL(TUid aInterfaceUid, |
|
76 const char* aImplKey, |
|
77 RImplInfoPtrArray& aImplInfoArray); |
|
78 |
|
79 protected: |
|
80 |
|
81 /** |
|
82 * C++ default constructor. |
|
83 */ |
|
84 IMPORT_C CAlfEComPluginFactory(); |
|
85 |
|
86 private: // Data |
|
87 // Ecom instance release key |
|
88 TUid mDtorKey; |
|
89 }; |
|
90 } |
|
91 |
|
92 #endif |
|
93 |
|
94 // End of File |