194 { |
194 { |
195 TRAP_IGNORE( DestroyDataPluginsL() ); |
195 TRAP_IGNORE( DestroyDataPluginsL() ); |
196 |
196 |
197 iManager.Parser().DestroyView( *this ); |
197 iManager.Parser().DestroyView( *this ); |
198 } |
198 } |
199 |
199 delete iBgImage; |
200 Flush(); |
200 iBgImage = NULL; |
|
201 Flush(); |
|
202 delete iBgImagePath; |
|
203 iBgImagePath = NULL; |
201 } |
204 } |
202 |
205 |
203 // ----------------------------------------------------------------------------- |
206 // ----------------------------------------------------------------------------- |
204 // CXnViewData::Plugin() |
207 // CXnViewData::Plugin() |
205 // Finds plugin or view data based on node |
208 // Finds plugin or view data based on node |
269 // ----------------------------------------------------------------------------- |
272 // ----------------------------------------------------------------------------- |
270 // |
273 // |
271 CXnNode* CXnViewData::ViewNode() const |
274 CXnNode* CXnViewData::ViewNode() const |
272 { |
275 { |
273 return iNode->LayoutNode(); |
276 return iNode->LayoutNode(); |
|
277 } |
|
278 |
|
279 // ----------------------------------------------------------------------------- |
|
280 // CXnViewData::SetWallpaperImage |
|
281 // Store background image. Ownership is transferred. |
|
282 // ----------------------------------------------------------------------------- |
|
283 // |
|
284 void CXnViewData::SetWallpaperImage( CFbsBitmap* aBitmap ) |
|
285 { |
|
286 delete iBgImage; |
|
287 iBgImage = aBitmap; |
|
288 } |
|
289 |
|
290 // ----------------------------------------------------------------------------- |
|
291 // CXnViewData::WallpaperImage |
|
292 // Get wallpaper image. |
|
293 // ----------------------------------------------------------------------------- |
|
294 // |
|
295 CFbsBitmap* CXnViewData::WallpaperImage() const |
|
296 { |
|
297 return iBgImage; |
|
298 } |
|
299 |
|
300 // ----------------------------------------------------------------------------- |
|
301 // CXnViewData::SetWallpaperImagePathL |
|
302 // ----------------------------------------------------------------------------- |
|
303 // |
|
304 void CXnViewData::SetWallpaperImagePathL( const TDesC& aFileName ) |
|
305 { |
|
306 delete iBgImagePath; |
|
307 iBgImagePath = NULL; |
|
308 iBgImagePath = aFileName.AllocL(); |
|
309 } |
|
310 |
|
311 // ----------------------------------------------------------------------------- |
|
312 // CXnViewData::WallpaperImagePath |
|
313 // ----------------------------------------------------------------------------- |
|
314 // |
|
315 const TDesC& CXnViewData::WallpaperImagePath() const |
|
316 { |
|
317 if( iBgImagePath ) |
|
318 { |
|
319 return *iBgImagePath; |
|
320 } |
|
321 return KNullDesC; |
274 } |
322 } |
275 |
323 |
276 // ----------------------------------------------------------------------------- |
324 // ----------------------------------------------------------------------------- |
277 // CXnViewData::ResourcesL() |
325 // CXnViewData::ResourcesL() |
278 // Gets this view data's resources |
326 // Gets this view data's resources |