1 /* |
|
2 * Copyright (c) 2007 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: View Widget factory plugin header. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef ALFVIEWWIDGETFACTORYPLUGIN_H |
|
20 #define ALFVIEWWIDGETFACTORYPLUGIN_H |
|
21 |
|
22 #include <alf/ialffactoryplugin.h> |
|
23 |
|
24 namespace Alf |
|
25 { |
|
26 |
|
27 /** |
|
28 * AlfViewWidgetFactoryPlugin is a widget factory plugin implementation |
|
29 * that can be used to create view widgets. |
|
30 * |
|
31 * Can be used to create view widgets and associated products. |
|
32 */ |
|
33 class AlfViewWidgetFactoryPlugin : public IAlfFactoryPlugin |
|
34 { |
|
35 public: |
|
36 // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Default Symbian constructor to create the factory plugin. |
|
40 */ |
|
41 static AlfViewWidgetFactoryPlugin* newL(); |
|
42 |
|
43 // From base class IAlfPluginFactory |
|
44 |
|
45 /** |
|
46 * Create view widget factory product. |
|
47 * @since Series 60 5.0 |
|
48 * @param aProduct Product to create. |
|
49 * @param aInitData Initialization data for product |
|
50 * @return Instance or NULL |
|
51 */ |
|
52 IAlfInterfaceBase* createProduct( const char* aProduct, void* aInitData ); |
|
53 |
|
54 /** |
|
55 * Count available products this factory can produce. |
|
56 * |
|
57 * @since S60 5.0 |
|
58 * @return Product count |
|
59 */ |
|
60 int productCount() const; |
|
61 |
|
62 /** |
|
63 * Fetch product info by index |
|
64 * |
|
65 * @param aIndex List index |
|
66 * @since S60 5.0 |
|
67 * @return Descriptor describing product |
|
68 */ |
|
69 const char* productInfo(int aIndex) const; |
|
70 |
|
71 // From base class IAlfInterfaceBase |
|
72 |
|
73 /** |
|
74 * Creates interface based on the given type. |
|
75 * |
|
76 * @since Series 60 5.0 |
|
77 * @param aType Interface type to create. |
|
78 * @return Requested interface. |
|
79 */ |
|
80 IAlfInterfaceBase* makeInterface(const IfId& aType); |
|
81 |
|
82 }; |
|
83 |
|
84 } // Namespace Alf |
|
85 |
|
86 #endif // ALFVIEWWIDGETFACTORYPLUGIN_H |
|
87 |
|