equal
deleted
inserted
replaced
281 iObservers[i]->HandleSwitchOnL(aSwitchOn); |
281 iObservers[i]->HandleSwitchOnL(aSwitchOn); |
282 } |
282 } |
283 |
283 |
284 void CMIDEnv::HandleForegroundL(TBool aForeground) |
284 void CMIDEnv::HandleForegroundL(TBool aForeground) |
285 { |
285 { |
|
286 #ifdef RD_JAVA_NGA_ENABLED |
|
287 if (aForeground) |
|
288 { |
|
289 iFullOrPartialFg = ETrue; |
|
290 } |
|
291 #endif // RD_JAVA_NGA_ENABLED |
|
292 |
286 for (TInt i = iObservers.Count(); i--;) |
293 for (TInt i = iObservers.Count(); i--;) |
287 { |
294 { |
288 iObservers[i]->HandleForegroundL(aForeground); |
295 iObservers[i]->HandleForegroundL(aForeground); |
289 } |
296 } |
290 if (aForeground && iToolkit && iToolkit->Utils()) |
297 if (aForeground && iToolkit && iToolkit->Utils()) |
301 } |
308 } |
302 if (iToolkit && iToolkit->Utils()) |
309 if (iToolkit && iToolkit->Utils()) |
303 { |
310 { |
304 iToolkit->Utils()->HandleResourceChangedL(); |
311 iToolkit->Utils()->HandleResourceChangedL(); |
305 } |
312 } |
306 |
313 } |
307 } |
314 |
|
315 #ifdef RD_JAVA_NGA_ENABLED |
|
316 void CMIDEnv::HandleFullOrPartialForegroundL(TBool aForeground) |
|
317 { |
|
318 iFullOrPartialFg = aForeground; |
|
319 for (TInt i = iObservers.Count(); i--;) |
|
320 { |
|
321 iObservers[i]->HandleFullOrPartialForegroundL(aForeground); |
|
322 } |
|
323 } |
|
324 |
|
325 void CMIDEnv::HandleFreeGraphicsMemory() |
|
326 { |
|
327 for (TInt i = iObservers.Count(); i--;) |
|
328 { |
|
329 iObservers[i]->HandleFreeGraphicsMemory(); |
|
330 } |
|
331 } |
|
332 |
|
333 TBool CMIDEnv::HasFullOrPartialForeground() const |
|
334 { |
|
335 return iFullOrPartialFg; |
|
336 } |
|
337 #endif //RD_JAVA_NGA_ENABLED |
308 |
338 |
309 TInt CMIDEnv::MidletAttribute(const TDesC& aAttributeName, TPtrC& aAttributeValue) |
339 TInt CMIDEnv::MidletAttribute(const TDesC& aAttributeName, TPtrC& aAttributeValue) |
310 { |
340 { |
311 return iToolkit->MidletAttribute(aAttributeName,aAttributeValue); |
341 return iToolkit->MidletAttribute(aAttributeName,aAttributeValue); |
312 } |
342 } |
538 { |
568 { |
539 // Inform CMIDToolkit about deleting of displayble. This is needed |
569 // Inform CMIDToolkit about deleting of displayble. This is needed |
540 // for prevereting of panic during changing to new Displayable |
570 // for prevereting of panic during changing to new Displayable |
541 iToolkit->DisplayableIsDestructed(aDisplayable); |
571 iToolkit->DisplayableIsDestructed(aDisplayable); |
542 } |
572 } |
|
573 |
|
574 const MMIDDisplayable* CMIDEnv::LastFullscreenDisplayable() const |
|
575 { |
|
576 return iToolkit->LastFullscreenDisplayable(); |
|
577 } |