javauis/lcdui_akn/lcdui/src/CMIDAppUi.cpp
branchRCL_3
changeset 83 26b2b12093af
parent 77 7cee158cb8cd
--- a/javauis/lcdui_akn/lcdui/src/CMIDAppUi.cpp	Wed Sep 15 12:05:25 2010 +0300
+++ b/javauis/lcdui_akn/lcdui/src/CMIDAppUi.cpp	Wed Oct 13 14:23:59 2010 +0300
@@ -24,10 +24,7 @@
 #include <javaregistryentry.h>
 #include <javaregistry.h>
 #include <javaattribute.h>
-#ifdef RD_JAVA_NGA_ENABLED
-#include <goommonitorsession.h>
-#include <goommonitorplugin.hrh>
-#endif // RD_JAVA_NGA_ENABLED
+
 #include "CMIDAppUi.h"
 // using CMIDApplication API for iApp
 #include "CMIDApplication.h"
@@ -45,7 +42,7 @@
 
 // class CMIDAppUi
 CMIDAppUi::CMIDAppUi() : iCurrentDisplayable(NULL),
-    iPendingOrientationChange(EFalse), iPauseApp(EFalse)
+        iPendingOrientationChange(EFalse), iPauseApp(EFalse)
 {
     mJavaAppUi = java::ui::CoreUiAvkonLcdui::getInstance().getJavaAknAppUi();
     mCoreAppUi = java::ui::CoreUiAvkonLcdui::getInstance().getJavaUiAppUi();
@@ -169,24 +166,14 @@
 
     if (aEvent.Type() == EEventUser)
     {
-        TApaSystemEvent* eventData = reinterpret_cast<TApaSystemEvent*>(aEvent.EventData());
-        if ((*eventData) == EApaSystemEventShutdown)
+        if ((*reinterpret_cast<TApaSystemEvent*>(aEvent.EventData())) == EApaSystemEventShutdown)
         {
-#ifdef RD_JAVA_NGA_ENABLED
-            // Check the reason
-            eventData++;
-            if ((*eventData) == KGoomMemoryLowEvent)
-            {
-                return HandleGoomMemoryLowEventL();
-            }
-#endif // RD_JAVA_NGA_ENABLED    
             // Oom or exit from task-list. Ask the CoreUi to shutdown the MIDlet.
             java::ui::CoreUiAvkonLcdui::getInstance().shutDownRequestFromWindowServer();
         }
     }
 
     // Workaround to send pauseApp with long-press of the Menu key
-    // if no event was send yet
     if (aEvent.Type() == EEventKey)
     {
         if (aEvent.Key()->iScanCode == EStdKeyApplication0
@@ -287,22 +274,6 @@
     iEnv = 0;
 }
 
-#ifdef RD_JAVA_NGA_ENABLED
-TBool CMIDAppUi::HandleGoomMemoryLowEventL()
-{
-    if (iObserver)
-    {
-        iObserver->HandleFreeGraphicsMemory();
-        RGOomMonitorSession session;
-        User::LeaveIfError(session.Connect());
-        session.ThisAppIsNotExiting(CCoeEnv::Static()->RootWin().Identifier());
-        session.Close();
-        return ETrue;
-    }
-    return EFalse;
-}
-#endif // RD_JAVA_NGA_ENABLED
-
 //
 // From MLcduiPlugin
 //