equal
deleted
inserted
replaced
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // System includes |
18 // System includes |
19 #include <StringLoader.h> |
19 #include <StringLoader.h> |
20 #include <ainativeui.rsg> |
20 #include <AiNativeUi.rsg> |
21 #include <gulicon.h> |
21 #include <gulicon.h> |
22 |
22 |
23 // User includes |
23 // User includes |
24 #include <hscontentpublisher.h> |
24 #include <hscontentpublisher.h> |
25 #include <hspublisherinfo.h> |
25 #include <hspublisherinfo.h> |
103 |
103 |
104 break; |
104 break; |
105 } |
105 } |
106 default: |
106 default: |
107 { |
107 { |
108 __PRINTS( "XAI: Rendering title pane > different content - leave"); |
|
109 User::Leave( KErrNotFound ); |
108 User::Leave( KErrNotFound ); |
110 break; |
109 break; |
111 } |
110 } |
112 }; |
111 }; |
113 } |
112 } |
114 else |
113 else |
115 { |
114 { |
116 __PRINTS( "XAI: Rendering title pane > Uid mismatch - leave"); |
|
117 User::Leave( KErrNotFound ); |
115 User::Leave( KErrNotFound ); |
118 } |
116 } |
119 } |
117 } |
120 |
118 |
121 // ---------------------------------------------------------------------------- |
119 // ---------------------------------------------------------------------------- |
150 // problem passing KErrNotFound |
148 // problem passing KErrNotFound |
151 iStatusPanel.SetTitlePaneBitmapL( bitmapHandle, maskHandle ); |
149 iStatusPanel.SetTitlePaneBitmapL( bitmapHandle, maskHandle ); |
152 // We're publishing bitmap -> set text as invalid |
150 // We're publishing bitmap -> set text as invalid |
153 iStatusPanel.SetTitlePaneTextL( KNullDesC ); |
151 iStatusPanel.SetTitlePaneTextL( KNullDesC ); |
154 iStatusPanel.RenderTitlePaneL(); |
152 iStatusPanel.RenderTitlePaneL(); |
155 __PRINTS("XAI: Rendering title pane - done"); |
153 __PRINTS("XAI: Rendering title pane - done"); |
156 } |
154 } |
157 break; |
155 break; |
158 } |
156 } |
159 default: |
157 default: |
160 { |
158 { |
161 __PRINTS( "XAI: Rendering title pane > different content - leave"); |
|
162 User::Leave( KErrNotFound ); |
159 User::Leave( KErrNotFound ); |
163 break; |
160 break; |
164 } |
161 } |
165 }; |
162 }; |
166 } |
163 } |
167 else |
164 else |
168 { |
165 { |
169 __PRINTS( "XAI: Rendering title pane > Uid mismatch - leave"); |
|
170 User::Leave( KErrNotFound ); |
166 User::Leave( KErrNotFound ); |
171 } |
167 } |
172 } |
168 } |
173 |
169 |
174 // ---------------------------------------------------------------------------- |
170 // ---------------------------------------------------------------------------- |
177 // ---------------------------------------------------------------------------- |
173 // ---------------------------------------------------------------------------- |
178 // |
174 // |
179 void CAiTitlePaneRenderer::DoPublishL( CHsContentPublisher& aPlugin, |
175 void CAiTitlePaneRenderer::DoPublishL( CHsContentPublisher& aPlugin, |
180 TInt aContent, TInt aResource, TInt /*aIndex*/ ) |
176 TInt aContent, TInt aResource, TInt /*aIndex*/ ) |
181 { |
177 { |
182 __PRINT(__DBG_FORMAT("XAI: CAiTitlePaneRenderer::DoPublishL - aContent %d"), aContent ); |
|
183 |
|
184 const THsPublisherInfo& info( aPlugin.PublisherInfo() ); |
178 const THsPublisherInfo& info( aPlugin.PublisherInfo() ); |
185 |
179 |
186 if( info.Uid() == KDeviceStatusPluginUid ) |
180 if( info.Uid() == KDeviceStatusPluginUid ) |
187 { |
181 { |
188 switch( aContent ) |
182 switch( aContent ) |
194 // We're publishing text -> set bitmap as invalid |
188 // We're publishing text -> set bitmap as invalid |
195 iStatusPanel.SetTitlePaneBitmapL( KErrNotFound, KErrNotFound ); |
189 iStatusPanel.SetTitlePaneBitmapL( KErrNotFound, KErrNotFound ); |
196 iStatusPanel.RenderTitlePaneL(); |
190 iStatusPanel.RenderTitlePaneL(); |
197 |
191 |
198 CleanupStack::PopAndDestroy(text); //text |
192 CleanupStack::PopAndDestroy(text); //text |
199 __PRINTS("XAI: Rendering title pane - done"); |
193 break; |
200 break; |
194 } |
201 } |
195 default: |
202 default: |
196 { |
203 { |
|
204 __PRINTS( "XAI: Rendering title pane > different content - leave"); |
|
205 User::Leave( KErrNotFound ); |
197 User::Leave( KErrNotFound ); |
206 break; |
198 break; |
207 } |
199 } |
208 }; |
200 }; |
209 } |
201 } |
210 else |
202 else |
211 { |
203 { |
212 __PRINTS( "XAI: Rendering title pane > Uid mismatch - leave"); |
|
213 User::Leave( KErrNotFound ); |
204 User::Leave( KErrNotFound ); |
214 } |
205 } |
215 } |
206 } |
216 |
207 |
217 // ---------------------------------------------------------------------------- |
208 // ---------------------------------------------------------------------------- |
220 // ---------------------------------------------------------------------------- |
211 // ---------------------------------------------------------------------------- |
221 // |
212 // |
222 void CAiTitlePaneRenderer::DoCleanL( CHsContentPublisher& aPlugin, |
213 void CAiTitlePaneRenderer::DoCleanL( CHsContentPublisher& aPlugin, |
223 TInt aContent ) |
214 TInt aContent ) |
224 { |
215 { |
225 __PRINT(__DBG_FORMAT("XAI: Clean title pane - aContent %d"), aContent ); |
216 __PRINT(__DBG_FORMAT("XAI: Clean title pane - %d"), aContent ); |
226 |
217 |
227 const THsPublisherInfo& info( aPlugin.PublisherInfo() ); |
218 const THsPublisherInfo& info( aPlugin.PublisherInfo() ); |
228 |
219 |
229 if( info.Uid() == KDeviceStatusPluginUid ) |
220 if( info.Uid() == KDeviceStatusPluginUid ) |
230 { |
221 { |
240 break; |
231 break; |
241 } |
232 } |
242 |
233 |
243 default: |
234 default: |
244 { |
235 { |
245 __PRINTS( "XAI: clean > different content - leave"); |
236 User::Leave( KErrNotFound ); |
246 User::Leave( KErrNotFound ); |
237 break; |
247 break; |
238 } |
248 } |
239 }; |
249 }; |
240 } |
250 } |
241 else |
251 else |
242 { |
252 { |
|
253 __PRINTS( "XAI: clean > Uid mismatch - leave"); |
|
254 User::Leave( KErrNotFound ); |
243 User::Leave( KErrNotFound ); |
255 } |
244 } |
256 } |
245 } |
257 |
246 |
258 // ---------------------------------------------------------------------------- |
247 // ---------------------------------------------------------------------------- |