|
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: External rendering plugin wrapper header |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef XNEXTRENDERINGPLUGINWRAPPER_H |
|
19 #define XNEXTRENDERINGPLUGINWRAPPER_H |
|
20 |
|
21 // System includes |
|
22 #include <e32base.h> |
|
23 #include <xnextrenderingpluginadapter.h> |
|
24 |
|
25 // User includes |
|
26 #include "xncontroladapter.h" |
|
27 #include "xnproperty.h" |
|
28 #include "xncomponent.h" |
|
29 #include "xnnodepluginif.h" |
|
30 |
|
31 /** |
|
32 * CXnExtRenderingPluginWrapper class |
|
33 * |
|
34 * |
|
35 * @code |
|
36 * |
|
37 * @endcode |
|
38 * |
|
39 * @lib extrenderingplugin.lib |
|
40 * @since S60 v5.0 |
|
41 */ |
|
42 NONSHARABLE_CLASS( CXnExtRenderingPluginWrapper ) : public CXnControlAdapter |
|
43 { |
|
44 public: // Constructor and destructor |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 */ |
|
48 static CXnExtRenderingPluginWrapper* NewL( |
|
49 CXnNodePluginIf& aNode, CXnExtRenderingPluginAdapter& aAdapter ); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 virtual ~CXnExtRenderingPluginWrapper(); |
|
55 |
|
56 private: // Constructors |
|
57 /** |
|
58 * Constructor |
|
59 */ |
|
60 CXnExtRenderingPluginWrapper( CXnExtRenderingPluginAdapter& aAdapter ); |
|
61 |
|
62 /** |
|
63 * Second phase constructor |
|
64 */ |
|
65 void ConstructL( CXnNodePluginIf& aNode ); |
|
66 |
|
67 private: |
|
68 TInt CountComponentControls() const; |
|
69 |
|
70 CCoeControl* ComponentControl(TInt aIndex) const; |
|
71 |
|
72 void HandleScreenDeviceChangedL(); |
|
73 |
|
74 void MakeVisible(TBool aVisible); |
|
75 |
|
76 void FocusChanged(TDrawNow aDrawNow); |
|
77 |
|
78 void SetContainerWindowL(const CCoeControl& aContainer); |
|
79 |
|
80 void SkinChanged(); |
|
81 |
|
82 void SizeChanged(); |
|
83 |
|
84 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
85 |
|
86 public: // New functions |
|
87 |
|
88 /** |
|
89 * @see CXnControlAdapter |
|
90 */ |
|
91 void DoEnterPowerSaveModeL( TModeEvent aEvent ); |
|
92 |
|
93 /** |
|
94 * @see CXnControlAdapter |
|
95 */ |
|
96 void DoExitPowerSaveModeL( TModeEvent aEvent ); |
|
97 |
|
98 private: // Data |
|
99 |
|
100 /** |
|
101 * Rendering plugin adapter. Own. |
|
102 */ |
|
103 CXnExtRenderingPluginAdapter* iAdapter; |
|
104 |
|
105 /** |
|
106 * Node. Not own. |
|
107 */ |
|
108 CXnNodePluginIf* iNode; |
|
109 }; |
|
110 |
|
111 #endif // XNEXTRENDERINGPLUGINFACTORY_H |
|
112 |
|
113 // End of file |