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