javauis/lcdui_akn/javalcdui/src/CMIDEnv.cpp
branchRCL_3
changeset 77 7cee158cb8cd
parent 66 2455ef1f5bbc
child 83 26b2b12093af
--- a/javauis/lcdui_akn/javalcdui/src/CMIDEnv.cpp	Tue Sep 14 21:06:50 2010 +0300
+++ b/javauis/lcdui_akn/javalcdui/src/CMIDEnv.cpp	Wed Sep 15 12:05:25 2010 +0300
@@ -58,7 +58,13 @@
                                      LcduiMidletAttributeValues::KUIEnhCanvasBackground);
 #ifdef RD_JAVA_NGA_ENABLED
     InitHardwareStatusL();
+
+    iVideoOverlayEnabled = MidletAttributeContainsVal(
+                                    LcduiMidletAttributes::KAttribUIEnhancement,
+                                    LcduiMidletAttributeValues::KUIEnhVideoOverlay);
 #endif // RD_JAVA_NGA_ENABLED
+    
+    iMMAPILock.CreateLocal();
 }
 
 CMIDEnv::~CMIDEnv()
@@ -71,6 +77,7 @@
     delete iKeyTranslator;
     iObservers.Close();
     iCanvasData.iLock.Close();
+    iMMAPILock.Close();
 }
 
 void CMIDEnv::SetUtils(MMIDUtils* aUtils)
@@ -312,6 +319,16 @@
     }
 }
 
+TBool CMIDEnv::VideoOverlayEnabled() const
+{
+    return iVideoOverlayEnabled;
+}
+
+RCriticalSection& CMIDEnv::GetMMAPILock()
+{
+    return iMMAPILock;
+}
+
 #ifdef RD_JAVA_NGA_ENABLED
 void CMIDEnv::HandleFullOrPartialForegroundL(TBool aForeground)
 {