--- a/javauis/lcdui_akn/javalcdui/src/CMIDEnv.cpp Thu Jul 15 18:31:06 2010 +0300
+++ b/javauis/lcdui_akn/javalcdui/src/CMIDEnv.cpp Thu Aug 19 09:48:13 2010 +0300
@@ -283,6 +283,13 @@
void CMIDEnv::HandleForegroundL(TBool aForeground)
{
+#ifdef RD_JAVA_NGA_ENABLED
+ if (aForeground)
+ {
+ iFullOrPartialFg = ETrue;
+ }
+#endif // RD_JAVA_NGA_ENABLED
+
for (TInt i = iObservers.Count(); i--;)
{
iObservers[i]->HandleForegroundL(aForeground);
@@ -303,9 +310,32 @@
{
iToolkit->Utils()->HandleResourceChangedL();
}
+}
+#ifdef RD_JAVA_NGA_ENABLED
+void CMIDEnv::HandleFullOrPartialForegroundL(TBool aForeground)
+{
+ iFullOrPartialFg = aForeground;
+ for (TInt i = iObservers.Count(); i--;)
+ {
+ iObservers[i]->HandleFullOrPartialForegroundL(aForeground);
+ }
}
+void CMIDEnv::HandleFreeGraphicsMemory()
+{
+ for (TInt i = iObservers.Count(); i--;)
+ {
+ iObservers[i]->HandleFreeGraphicsMemory();
+ }
+}
+
+TBool CMIDEnv::HasFullOrPartialForeground() const
+{
+ return iFullOrPartialFg;
+}
+#endif //RD_JAVA_NGA_ENABLED
+
TInt CMIDEnv::MidletAttribute(const TDesC& aAttributeName, TPtrC& aAttributeValue)
{
return iToolkit->MidletAttribute(aAttributeName,aAttributeValue);
@@ -540,3 +570,8 @@
// for prevereting of panic during changing to new Displayable
iToolkit->DisplayableIsDestructed(aDisplayable);
}
+
+const MMIDDisplayable* CMIDEnv::LastFullscreenDisplayable() const
+{
+ return iToolkit->LastFullscreenDisplayable();
+}