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