|
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: Factory for creating CXnNPPlugin -component |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _XNNPPLUGINFACTORY_H |
|
20 #define _XNNPPLUGINFACTORY_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <ecom/implementationproxy.h> |
|
24 #include "xncomponentfactory.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CXnComponent; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * @ingroup group_xnnppluginfactory |
|
33 * |
|
34 * Layout Area UI factory interface for creating UI representations of the layout areas. |
|
35 * This class is wrapper for containing CBitmap |
|
36 * |
|
37 * @lib xn3nppluginfactory.lib |
|
38 * @since Series 60 3.1 |
|
39 */ |
|
40 // inheritance order must be this, despite codescanner warnings |
|
41 class CXnNPPluginFactory : public MXnComponentFactory, public CBase |
|
42 { |
|
43 public: // Data types |
|
44 |
|
45 public: // Constructors and destructor |
|
46 |
|
47 /** |
|
48 * Two-phased constructor. |
|
49 */ |
|
50 static CXnNPPluginFactory* NewL(); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 virtual ~CXnNPPluginFactory(); |
|
56 |
|
57 public: // Functions from base classes |
|
58 /** |
|
59 * Creates the Xuikon component for text component. |
|
60 * @param aNode Corresponding DOM-node |
|
61 * @param aTargetComponent Pointer reference to the component to be created. |
|
62 */ |
|
63 virtual TXnComponentFactoryResponse MakeXnComponentL( |
|
64 CXnNodePluginIf& aNode, |
|
65 CXnComponent*& aTargetComponent ); |
|
66 /** |
|
67 * Creates the control adapter for text component. |
|
68 * @param aNode Corresponding DOM-node |
|
69 * @param aParent Parent of the adapter, which is created here. |
|
70 * @return Created control adapter. |
|
71 */ |
|
72 virtual CXnControlAdapter* MakeXnControlAdapterL( |
|
73 CXnNodePluginIf& aNode, |
|
74 CXnControlAdapter* aParent = NULL ); |
|
75 private: |
|
76 /** |
|
77 * C++ default constructor. |
|
78 */ |
|
79 CXnNPPluginFactory(); |
|
80 |
|
81 /** |
|
82 * By default Symbian 2nd phase constructor is private. |
|
83 */ |
|
84 void ConstructL(); |
|
85 |
|
86 }; |
|
87 |
|
88 // Exported factory function required by ECOM-framework |
|
89 IMPORT_C const TImplementationProxy* ImplementationGroupProxy( TInt& aTableCount ); |
|
90 |
|
91 #endif // _XNNPPLUGINFACTORY_H |
|
92 |
|
93 // End of File |