0
|
1 |
/*
|
|
2 |
* Copyright (c) {Year(s)} {Copyright owner}.
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* {Name} {Company} ? Initial contribution
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
* {Name} {Company} ? {{Description of contribution}}
|
|
14 |
*
|
|
15 |
* Description:
|
|
16 |
* {{Description of the file}}
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
|
|
20 |
#include <ecom/implementationproxy.h>
|
9
|
21 |
#include "#replace#renderer.h"
|
0
|
22 |
|
|
23 |
// ============================ MEMBER FUNCTIONS ===============================
|
|
24 |
|
|
25 |
// -----------------------------------------------------------------------------
|
|
26 |
// Symbian static 1st phase constructor
|
|
27 |
// -----------------------------------------------------------------------------
|
|
28 |
//
|
9
|
29 |
C#replace#Renderer* C#replace#Renderer::NewL()
|
0
|
30 |
{
|
9
|
31 |
C#replace#Renderer* self = C#replace#Renderer::NewLC();
|
0
|
32 |
CleanupStack::Pop( self );
|
|
33 |
return self;
|
|
34 |
}
|
|
35 |
// -----------------------------------------------------------------------------
|
|
36 |
// Symbian static 1st phase constructor
|
|
37 |
// -----------------------------------------------------------------------------
|
|
38 |
//
|
9
|
39 |
C#replace#Renderer* C#replace#Renderer::NewLC()
|
0
|
40 |
{
|
9
|
41 |
C#replace#Renderer* self = new( ELeave ) C#replace#Renderer();
|
0
|
42 |
CleanupStack::PushL( self );
|
|
43 |
self->ConstructL();
|
|
44 |
return self;
|
|
45 |
}
|
|
46 |
|
|
47 |
// -----------------------------------------------------------------------------
|
|
48 |
// C++ destructor
|
|
49 |
// -----------------------------------------------------------------------------
|
|
50 |
//
|
9
|
51 |
C#replace#Renderer::~C#replace#Renderer()
|
0
|
52 |
{
|
|
53 |
}
|
|
54 |
|
|
55 |
// -----------------------------------------------------------------------------
|
|
56 |
// Handles key events.
|
|
57 |
// -----------------------------------------------------------------------------
|
|
58 |
//
|
9
|
59 |
TKeyResponse C#replace#Renderer::OfferKeyEventL( const TKeyEvent& aKeyEvent,
|
0
|
60 |
TEventCode aType )
|
|
61 |
{
|
|
62 |
}
|
|
63 |
|
|
64 |
// -----------------------------------------------------------------------------
|
|
65 |
// Set window for this control
|
|
66 |
// -----------------------------------------------------------------------------
|
|
67 |
//
|
9
|
68 |
void C#replace#Renderer::SetContainerWindowL( const CCoeControl &aContainer )
|
0
|
69 |
{
|
|
70 |
CCoeControl::SetContainerWindowL( aContainer );
|
|
71 |
}
|
|
72 |
|
|
73 |
// -----------------------------------------------------------------------------
|
|
74 |
// (other items were commented in a header).
|
|
75 |
// -----------------------------------------------------------------------------
|
|
76 |
//
|
9
|
77 |
void C#replace#Renderer::HandlePointerEventL( const TPointerEvent& aPointerEvent )
|
0
|
78 |
{
|
|
79 |
CCoeControl::HandlePointerEventL( aPointerEvent );
|
|
80 |
}
|
|
81 |
|
|
82 |
// -----------------------------------------------------------------------------
|
|
83 |
// Returns the number of component controls
|
|
84 |
// -----------------------------------------------------------------------------
|
|
85 |
//
|
9
|
86 |
TInt C#replace#Renderer::CountComponentControls() const
|
0
|
87 |
{
|
|
88 |
return 0;
|
|
89 |
}
|
|
90 |
|
|
91 |
// -----------------------------------------------------------------------------
|
|
92 |
// Returns the specified control
|
|
93 |
// -----------------------------------------------------------------------------
|
|
94 |
//
|
9
|
95 |
CCoeControl* C#replace#Renderer::ComponentControl( TInt aIndex ) const
|
0
|
96 |
{
|
|
97 |
return NULL;
|
|
98 |
}
|
|
99 |
|
|
100 |
// -----------------------------------------------------------------------------
|
|
101 |
// Skin change notification.
|
|
102 |
// -----------------------------------------------------------------------------
|
|
103 |
//
|
9
|
104 |
void C#replace#Renderer::SkinChanged()
|
0
|
105 |
{
|
|
106 |
}
|
|
107 |
|
|
108 |
// -----------------------------------------------------------------------------
|
|
109 |
// EnterPowerSaveModeL
|
|
110 |
// -----------------------------------------------------------------------------
|
|
111 |
//
|
9
|
112 |
void C#replace#Renderer::EnterPowerSaveModeL()
|
0
|
113 |
{
|
|
114 |
}
|
|
115 |
|
|
116 |
// -----------------------------------------------------------------------------
|
|
117 |
// ExitPowerSaveModeL
|
|
118 |
//
|
|
119 |
// -----------------------------------------------------------------------------
|
|
120 |
//
|
9
|
121 |
void C#replace#Renderer::ExitPowerSaveModeL()
|
0
|
122 |
{
|
|
123 |
}
|
|
124 |
|
|
125 |
// -----------------------------------------------------------------------------
|
|
126 |
// Called if focus changes
|
|
127 |
// -----------------------------------------------------------------------------
|
|
128 |
//
|
9
|
129 |
void C#replace#Renderer::FocusChanged( TDrawNow /*aDrawNow*/ )
|
0
|
130 |
{
|
|
131 |
}
|
|
132 |
|
|
133 |
// -----------------------------------------------------------------------------
|
|
134 |
// Called if position or size changes
|
|
135 |
// -----------------------------------------------------------------------------
|
|
136 |
//
|
9
|
137 |
void C#replace#Renderer::SizeChanged()
|
0
|
138 |
{
|
|
139 |
}
|
|
140 |
|
|
141 |
// -----------------------------------------------------------------------------
|
|
142 |
// Draws the carousel component
|
|
143 |
// -----------------------------------------------------------------------------
|
|
144 |
//
|
9
|
145 |
void C#replace#Renderer::Draw( const TRect& aRect ) const
|
0
|
146 |
{
|
|
147 |
CWindowGc& gc( SystemGc() );
|
|
148 |
gc.DrawEllipse( aRect );
|
|
149 |
}
|
|
150 |
|
|
151 |
// -----------------------------------------------------------------------------
|
|
152 |
// C++ default constructor
|
|
153 |
// -----------------------------------------------------------------------------
|
|
154 |
//
|
9
|
155 |
C#replace#Renderer::C#replace#Renderer()
|
0
|
156 |
{
|
|
157 |
// Do nothing
|
|
158 |
}
|
|
159 |
|
|
160 |
// -----------------------------------------------------------------------------
|
|
161 |
// Symbian 2nd phase constructor can leave.
|
|
162 |
// -----------------------------------------------------------------------------
|
|
163 |
//
|
9
|
164 |
void C#replace#Renderer::ConstructL()
|
0
|
165 |
{
|
|
166 |
}
|
|
167 |
|
|
168 |
// ============================ PUBLIC FUNCTIONS ===============================
|
|
169 |
|
|
170 |
const TImplementationProxy KImplementationTable[] =
|
|
171 |
{
|
|
172 |
#ifdef __EABI__
|
9
|
173 |
IMPLEMENTATION_PROXY_ENTRY( 0x22334455, C#replace#Renderer::NewL )
|
0
|
174 |
#else
|
9
|
175 |
{ { 0x22334455 }, C#replace#Renderer::NewL }
|
0
|
176 |
#endif
|
|
177 |
};
|
|
178 |
|
|
179 |
// -----------------------------------------------------------------------------
|
|
180 |
// Returns the list of implementations provided by the plugin
|
|
181 |
// -----------------------------------------------------------------------------
|
|
182 |
//
|
|
183 |
EXPORT_C const TImplementationProxy* ImplementationGroupProxy(
|
|
184 |
TInt& aTableCount )
|
|
185 |
{
|
|
186 |
aTableCount = sizeof( KImplementationTable ) / sizeof( TImplementationProxy );
|
|
187 |
return KImplementationTable;
|
|
188 |
}
|
|
189 |
|