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