|
1 /* |
|
2 * Copyright (c) 2002-2006 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef _XNMENUFACTORY_H |
|
21 #define _XNMENUFACTORY_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "xncomponentfactory.h" |
|
25 #include <e32base.h> |
|
26 #include <ecom/ecom.h> |
|
27 #include <ecom/implementationproxy.h> |
|
28 |
|
29 |
|
30 |
|
31 // CONSTANTS |
|
32 _LIT8(KMenu, "menubar"); |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * @ingroup group_xnmenufactory |
|
38 * Layout Area UI factory interface for creating UI representations of the layout areas. |
|
39 * This class is wrapper for containing menu |
|
40 * |
|
41 * @lib xn3menufactory.dll |
|
42 * @since S60 3.1 |
|
43 */ |
|
44 // inheritance order must be this, despite codescanner warnings |
|
45 class CXnMenuFactory : public MXnComponentFactory, public CBase |
|
46 { |
|
47 public: // Constructors and destructor |
|
48 |
|
49 /** |
|
50 * Two-phased constructor. |
|
51 */ |
|
52 static CXnMenuFactory* NewL(); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~CXnMenuFactory(); |
|
58 |
|
59 |
|
60 public: // Functions from base classes |
|
61 |
|
62 |
|
63 /** |
|
64 * From MXnComponentFactory Interface for creating Ui control component. |
|
65 * @since Series 60 3.1 |
|
66 * @param aNode Component's node. |
|
67 * @param aTargetComponent Created component is set here. |
|
68 * @return EXnFactoryResponseComponentConstructed if component created. |
|
69 */ |
|
70 TXnComponentFactoryResponse MakeXnComponentL( |
|
71 CXnNodePluginIf& aNode, |
|
72 CXnComponent*& aTargetComponent |
|
73 ); |
|
74 /** |
|
75 * From MXnComponentFactory Interface for creating Ui control adapter. |
|
76 * @since Series 60 3.1 |
|
77 * @param aNode Component's node. |
|
78 * @param aParent Parent of the adapter, which is created here. |
|
79 * @return Created control adapter. |
|
80 */ |
|
81 CXnControlAdapter* MakeXnControlAdapterL( |
|
82 CXnNodePluginIf& aNode, |
|
83 CXnControlAdapter* aParent |
|
84 ); |
|
85 |
|
86 private: |
|
87 |
|
88 /** |
|
89 * 2nd phase constructor. |
|
90 */ |
|
91 void ConstructL(); |
|
92 |
|
93 /** |
|
94 * C++ default constructor. |
|
95 */ |
|
96 CXnMenuFactory(); |
|
97 |
|
98 private: // Data |
|
99 // Reserved pointer for future extension |
|
100 }; |
|
101 |
|
102 // Exported factory function required by ECOM-framework |
|
103 IMPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount); |
|
104 |
|
105 #endif // _XNMENUFACTORY_H |
|
106 |
|
107 // End of File |